Changeset 21366 for trunk/psphot/src/psphotMaskReadout.c
- Timestamp:
- Feb 5, 2009, 5:03:33 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotMaskReadout.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotMaskReadout.c
r21183 r21366 1 1 # include "psphotInternal.h" 2 2 3 // generate mask and weight if not defined, additional mask for restricted subregion4 bool psphotSetMaskAnd Weight(pmConfig *config, pmReadout *readout, psMetadata *recipe) {3 // generate mask and variance if not defined, additional mask for restricted subregion 4 bool psphotSetMaskAndVariance (pmConfig *config, pmReadout *readout, psMetadata *recipe) { 5 5 6 6 bool status; … … 15 15 psMetadataAddImageMask (recipe, PS_LIST_TAIL, "MASK.BAD", PS_META_REPLACE, "user-defined mask", maskBad); 16 16 17 // generate mask & weightimages if they don't already exit17 // generate mask & variance images if they don't already exit 18 18 if (!readout->mask) { 19 19 if (!pmReadoutGenerateMask(readout, maskSat, maskBad)) { … … 22 22 } 23 23 } 24 if (!readout-> weight) {25 if (!pmReadoutGenerate Weight(readout, true)) {26 psError (PSPHOT_ERR_CONFIG, false, "trouble creating weight");24 if (!readout->variance) { 25 if (!pmReadoutGenerateVariance(readout, true)) { 26 psError (PSPHOT_ERR_CONFIG, false, "trouble creating variance"); 27 27 return false; 28 28 } … … 49 49 psphotSaveImage (NULL, readout->image, "image.fits"); 50 50 psphotSaveImage (NULL, readout->mask, "mask.fits"); 51 psphotSaveImage (NULL, readout-> weight, "weight.fits");51 psphotSaveImage (NULL, readout->variance, "variance.fits"); 52 52 } 53 53
Note:
See TracChangeset
for help on using the changeset viewer.
