Changeset 13609
- Timestamp:
- Jun 3, 2007, 4:28:50 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r13593 r13609 6 6 7 7 // select the current recipe 8 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);8 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE); 9 9 if (!recipe) { 10 10 psError(PSPHOT_ERR_CONFIG, false, "missing recipe %s", PSPHOT_RECIPE); … … 24 24 25 25 // generate mask & weight images if they don't already exit 26 if ((!readout->mask && !pmReadoutGenerateMask(readout, pmConfigMask("SAT", config), 27 pmConfigMask("BAD", config))) || 28 (!readout->weight && !pmReadoutGenerateWeight(readout, true))) { 29 psError (PSPHOT_ERR_CONFIG, false, "trouble creating mask and/or weight"); 30 return false; 26 psMaskType satMask = pmConfigMask("SAT", config); 27 psMaskType badMask = pmConfigMask("BAD", config); 28 if (!readout->mask) { 29 if (!pmReadoutGenerateMask(readout, satMask, badMask)) { 30 psError (PSPHOT_ERR_CONFIG, false, "trouble creating mask"); 31 return false; 32 } 33 } 34 if (!readout->weight) { 35 if (!pmReadoutGenerateWeight(readout, true)) { 36 psError (PSPHOT_ERR_CONFIG, false, "trouble creating weight"); 37 return false; 38 } 31 39 } 32 40
Note:
See TracChangeset
for help on using the changeset viewer.
