Changeset 29552 for trunk/ppStack/src/ppStackMatch.c
- Timestamp:
- Oct 25, 2010, 3:22:33 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackMatch.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackMatch.c
r28253 r29552 68 68 69 69 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 70 psMetadataAdd U8(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad);70 psMetadataAddImageMask(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad); 71 71 72 72 psImage *binned = psphotModelBackgroundReadoutNoFile(ro, config); // Binned background model … … 153 153 int threads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads 154 154 155 if (!pmReadoutMaskNonfinite(readout, maskVal)) { 155 // Replaced pmReadoutMaskNonfinite with pmReadoutMaskInvalid (tests for already masked pixels) 156 if (!pmReadoutMaskInvalid(readout, maskVal, maskBad)) { 156 157 psError(psErrorCodeLast(), false, "Unable to mask non-finite pixels in readout."); 157 158 return false; … … 319 320 } 320 321 } else { 322 // we need to register the FWHM values for use downstream 323 pmSubtractionSetFWHMs(options->inputSeeing->data.F32[index], options->targetSeeing); 324 321 325 // Scale the input parameters 322 326 psVector *widthsCopy = psVectorCopy(NULL, widths, PS_TYPE_F32); // Copy of kernel widths 323 if (scale && !pmSubtractionParamsScale(&size, &footprint, widthsCopy, 324 options->inputSeeing->data.F32[index], 325 options->targetSeeing, scaleRef, scaleMin, scaleMax)) { 327 if (scale && !pmSubtractionParamsScale(&size, &footprint, widthsCopy, scaleRef, scaleMin, scaleMax)) { 326 328 psError(psErrorCodeLast(), false, "Unable to scale kernel parameters"); 327 329 psFree(fake);
Note:
See TracChangeset
for help on using the changeset viewer.
