Changeset 21216
- Timestamp:
- Jan 28, 2009, 5:11:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090128/ppImage/src/ppImageSetMaskBits.c
r18556 r21216 7 7 bool ppImageSetMaskBits (pmConfig *config, ppImageOptions *options) { 8 8 9 if (!pmConfigMaskSetBits (&options->maskValue, &options->markValue, config)) {10 psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values");11 return false;9 if (!pmConfigMaskSetBits(&options->maskValue, &options->markValue, config)) { 10 psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values"); 11 return false; 12 12 } 13 13 … … 15 15 16 16 // mask for non-linear flat corrections 17 options->flatMask = pmConfigMaskGet("FLAT", config); 17 options->flatMask = pmConfigMaskGet("FLAT", config); 18 18 psAssert (options->flatMask, "flat mask not set"); 19 19 20 20 // mask for non-existent data (default to DETECTOR if not defined) 21 options->blankMask = pmConfigMaskGet("BLANK", config); 21 options->blankMask = pmConfigMaskGet("BLANK", config); 22 22 psAssert (options->blankMask, "blank mask not set"); 23 23 … … 25 25 options->satMask = pmConfigMaskGet("SAT", config); 26 26 psAssert (options->satMask, "sat mask not set"); 27 27 28 28 // mask for below-range data (default to RANGE if not defined) 29 29 options->badMask = pmConfigMaskGet("BAD", config); … … 38 38 39 39 // set maskValue and markValue in the psphot recipe 40 psMetadataAddU8 (recipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", options->maskValue); 41 psMetadataAddU8 (recipe, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "user-defined mask", options->markValue); 40 psMetadataAddImageMask(recipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", 41 options->maskValue); 42 psMetadataAddImageMask(recipe, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "user-defined mask", 43 options->markValue); 42 44 43 45 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
