Changeset 24118 for trunk/ppMerge/src/ppMergeLoop.c
- Timestamp:
- May 8, 2009, 2:03:29 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeLoop.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeLoop.c
r23609 r24118 36 36 bool mdok; ///< Status of MD lookup 37 37 bool haveMasks = psMetadataLookupBool(&mdok, arguments, "INPUTS.MASKS"); // Do we have masks? 38 bool useMasks = psMetadataLookupBool(&mdok, arguments, "INPUTS.MASKS.USE"); // Do we have masks? 38 39 bool haveVariances = psMetadataLookupBool(&mdok, arguments, "INPUTS.VARIANCES"); // Do we have variances? 39 40 … … 73 74 74 75 pmCombineParams *combination = pmCombineParamsAlloc(combineStat); ///< Combination parameters 75 combination->maskVal = maskVal;76 combination->maskVal = useMasks ? maskVal : 0; 76 77 combination->blank = pmConfigMaskGet("BLANK", config); 77 78 combination->nKeep = nKeep; … … 149 150 } 150 151 pmCell *outCell; ///< Cell of interest 152 153 // XXX TEST : force a single loop 154 // outCell = pmFPAviewNextCell(view, outFPA, 1); { 155 151 156 while ((outCell = pmFPAviewNextCell(view, outFPA, 1))) { 152 157 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { … … 232 237 psAssert (fileGroups->n > 0, "no valid file groups defined"); 233 238 fileGroup = fileGroups->data[0]; 234 if (!pmShutterCorrectionGeneratePrepare(outRO, pattern, fileGroup->readouts, maskVal)) {239 if (!pmShutterCorrectionGeneratePrepare(outRO, pattern, fileGroup->readouts, combination->maskVal)) { 235 240 goto ERROR; 236 241 } … … 427 432 psImageMaskType cteMaskValue = pmConfigMaskGet(cteMaskName, config); 428 433 434 if (0) { 435 psFits *fits = NULL; 436 fits = psFitsOpen ("combine.fits", "w"); 437 psFitsWriteImage (fits, NULL, outRO->image, 0, NULL); 438 psFitsClose (fits); 439 440 fits = psFitsOpen ("inmask.fits", "w"); 441 psFitsWriteImage (fits, NULL, outRO->mask, 0, NULL); 442 psFitsClose (fits); 443 } 444 429 445 psF32 **outputImage = outRO->image->data.F32; 430 446 psImageMaskType **outputMask = outRO->mask->data.PS_TYPE_IMAGE_MASK_DATA; … … 436 452 } 437 453 } 454 455 if (0) { 456 psFits *fits = NULL; 457 fits = psFitsOpen ("otmask.fits", "w"); 458 psFitsWriteImage (fits, NULL, outRO->mask, 0, NULL); 459 psFitsClose (fits); 460 } 461 438 462 } 439 463
Note:
See TracChangeset
for help on using the changeset viewer.
