Changeset 14223
- Timestamp:
- Jul 16, 2007, 10:20:28 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
ippconfig/recipes/ppImage.config (modified) (1 diff)
-
ppImage/src/ppImage.h (modified) (1 diff)
-
ppImage/src/ppImageDetrendReadout.c (modified) (2 diffs)
-
ppImage/src/ppImageOptions.c (modified) (4 diffs)
-
ppImage/src/ppImageParseCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/ppImage.config
r14215 r14223 12 12 MASK BOOL FALSE # Mask bad pixels 13 13 MASK.VALUE STR SAT,BAD # Mask pixels with these attributes 14 MASK.BUILD BOOL FALSE # Build internal mask image 15 WEIGHT.BUILD BOOL FALSE # Build internal weight image 14 16 FRINGE BOOL FALSE # Fringe subtraction 15 17 PHOTOM BOOL FALSE # Source identification and photometry -
trunk/ppImage/src/ppImage.h
r14209 r14223 22 22 typedef struct { 23 23 // actions which ppImage should perform 24 bool doMaskBuild; // Build internal mask 25 bool doWeightBuild; // Build internal mask 24 26 bool doMask; // Mask bad pixels 25 27 bool doNonLin; // Non-linearity correction -
trunk/ppImage/src/ppImageDetrendReadout.c
r14000 r14223 16 16 17 17 // Masking on the basis of pixel value needs to be done before anything else, so the values are pristine. 18 if (options->doMask || options->doShutter || options->doFlat || options->doPhotom) {18 if (options->doMaskBuild) { 19 19 pmReadoutGenerateMask(input, options->satMask, options->badMask); 20 20 } … … 51 51 52 52 // Weight on the basis of pixel value needs to be done after the overscan has been subtracted 53 if (options->do Mask || options->doShutter || options->doFlat || options->doPhotom) {53 if (options->doWeightBuild) { 54 54 // create the target mask and weight images 55 55 pmReadoutGenerateWeight(input, true); -
trunk/ppImage/src/ppImageOptions.c
r14209 r14223 18 18 19 19 // actions which ppImage should perform 20 options->doMaskBuild = false; // Build internal mask 21 options->doWeightBuild = false; // Build internal weight 20 22 options->doMask = false; // Mask bad pixels 21 23 options->doNonLin = false; // Non-linearity correction … … 180 182 } 181 183 184 // for these images, even if not required otherwise 185 options->doMaskBuild = psMetadataLookupBool(NULL, recipe, "MASK.BUILD"); 186 options->doWeightBuild = psMetadataLookupBool(NULL, recipe, "WEIGHT.BUILD"); 187 182 188 // Mask recipe options 183 189 options->doMask = psMetadataLookupBool(NULL, recipe, "MASK"); … … 190 196 options->flatMask = pmConfigMask("FLAT", config); 191 197 options->blankMask = pmConfigMask("BLANK", config); 198 // XXX should it be an error for these to not exist? 192 199 193 200 options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS"); … … 225 232 } 226 233 234 // even if not requested explicitly, if any of these are set, build an internal mask and weight: 235 if (options->doMask || options->doShutter || options->doFlat || options->doPhotom) { 236 options->doMaskBuild = true; 237 options->doWeightBuild = true; 238 } 239 227 240 options->BaseFITS = psMetadataLookupBool(NULL, recipe, "BASE.FITS"); 228 241 options->BaseMaskFITS = psMetadataLookupBool(NULL, recipe, "BASE.MASK.FITS"); -
trunk/ppImage/src/ppImageParseCamera.c
r14211 r14223 385 385 386 386 // Turn off mask and weight output if we're not doing anything interesting 387 bool noMask = (!options->doMask && !options->doShutter && !options->doFlat && !options->doPhotom); 388 if (noMask && outMask->save) { 387 if (!options->doMaskBuild && outMask->save) { 389 388 psWarning("output mask image (BASE.MASK.FITS) requested, but not generated: skipping.\n"); 390 389 outMask->save = false; 391 390 } 392 if ( noMask&& outWeight->save) {391 if (!options->doWeightBuild && outWeight->save) { 393 392 psWarning("output weight image (BASE.WEIGHT.FITS) requested, but not generated: skipping.\n"); 394 393 outWeight->save = false; 395 394 } 396 if ( noMask&& chipMask->save) {395 if (!options->doMaskBuild && chipMask->save) { 397 396 psWarning("output mask image (CHIP.MASK.FITS) requested, but not generated: skipping.\n"); 398 397 chipMask->save = false; 399 398 } 400 if ( noMask&& chipWeight->save) {399 if (!options->doWeightBuild && chipWeight->save) { 401 400 psWarning("output weight image (CHIP.WEIGHT.FITS) requested, but not generated: skipping.\n"); 402 401 chipWeight->save = false;
Note:
See TracChangeset
for help on using the changeset viewer.
