- Timestamp:
- Dec 20, 2010, 2:30:45 PM (16 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppImage/src/ppImageOptions.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/ppImage/src/ppImageOptions.c
r29833 r30118 216 216 217 217 // for these images, even if not required otherwise 218 options->doMaskBuild = psMetadataLookupBool(NULL, recipe, "MASK.BUILD");219 options->doMaskSat = psMetadataLookupBool(NULL, recipe, "MASK.SATURATED");220 options->doMaskLow = psMetadataLookupBool(NULL, recipe, "MASK.LOW");221 options->doMaskBurntool = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL");218 options->doMaskBuild = psMetadataLookupBool(NULL, recipe, "MASK.BUILD"); 219 options->doMaskSat = psMetadataLookupBool(NULL, recipe, "MASK.SATURATED"); 220 options->doMaskLow = psMetadataLookupBool(NULL, recipe, "MASK.LOW"); 221 options->doMaskBurntool = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL"); 222 222 options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD"); 223 223 … … 301 301 options->checkCTE = psMetadataLookupBool(NULL, recipe, "CHECK.CTE"); 302 302 303 // even if not requested explicitly, if any of these are set, build an internal mask and variance: 304 if (options->doNoiseMap || options->doBias || options->doOverscan || options->doDark || options->doShutter || options->doFlat || 305 options->doPhotom) { 303 /* doMaskBuild : there are some cases where we require a mask, so we force doMaskBuild to be set even if the user specified 'FALSE' 304 * 305 * doPhotom : a mask is required because it is used to mark the locations of stars 306 * 307 * doNoiseMap : no reason this needs to trigger a mask? 308 * doBias : no reason this needs to trigger a mask? 309 * doOverscan : no reason this needs to trigger a mask? 310 * doDark : no reason this needs to trigger a mask? 311 * doShutter : no reason this needs to trigger a mask? 312 * doFlat : no reason this needs to trigger a mask? 313 */ 314 315 // if the variance image is requested, build it (if not supplied) 316 if (options->BaseVarianceFITS || options->ChipVarianceFITS) { 317 options->doVarianceBuild = true; 318 } 319 // photometry and noisemap both require a variance image 320 if (options->doNoiseMap || options->doPhotom) { 321 options->doVarianceBuild = true; 322 } 323 324 // we need a mask if we are going to apply these things: 325 if (options->doMaskSat || options->doMaskLow || options->doMaskBurntool || options->doMaskStats) { 306 326 options->doMaskBuild = true; 307 options->doVarianceBuild = true; 308 } else if (options->doMask || options->doBG) { 327 } 328 // photometry, mask, and background all require a mask image 329 if (options->doMask || options->doBG || options->doPhotom) { 309 330 options->doMaskBuild = true; 310 331 }
Note:
See TracChangeset
for help on using the changeset viewer.
