Changeset 24485 for trunk/ppImage/src/ppImageParseCamera.c
- Timestamp:
- Jun 18, 2009, 10:42:06 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageParseCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageParseCamera.c
r23411 r24485 25 25 // otherwise they revert to the config information 26 26 // not all input or output images are used in a given recipe 27 if (options->doNoiseMap) { 28 if (!ppImageDefineFile(config, input->fpa, "PPIMAGE.NOISEMAP", "NOISEMAP", 29 PM_FPA_FILE_IMAGE, PM_DETREND_TYPE_BIAS /* NOISEMAP */)) { 30 psError(PS_ERR_IO, false, "Can't find a noise map image source"); 31 psFree(options); 32 return NULL; 33 } 34 } 27 35 if (options->doBias) { 28 36 if (!ppImageDefineFile(config, input->fpa, "PPIMAGE.BIAS", "BIAS", … … 48 56 return NULL; 49 57 } 50 51 #if 052 // I think this is now done automatically in the pmFPAfileDefine and pmFPAfileIOChecks -- PAP.53 54 // XXX have ppImageDefineFile return the pmFPAfile?55 pmFPAfile *mask = psMetadataLookupPtr(&status, config->files, "PPIMAGE.MASK");56 psAssert(mask, "Just defined the mask!");57 58 // Need to read the names of bit masks from the mask header and set them in the59 // recipe. If we are loading this from the detrend db, this action will happen60 // when the file is resolved.61 if (!mask->detrend) {62 // XXX need to load the mask bit names from one of the headers63 // this grabs the first available hdu : no guarantee that it will be valid, though64 pmHDU *hdu = pmHDUGetFirst(mask->fpa);65 if (!hdu) {66 psError(PS_ERR_IO, true, "no valid HDU for PPIMAGE.INPUT.MASK");67 return NULL;68 }69 // XXX is this consistent with the pmConfigMaskReadHeader call above?70 if (!pmConfigMaskReadHeader(config, hdu->header)) {71 psError(PS_ERR_IO, false, "error in mask bits");72 return NULL;73 }74 }75 #endif76 58 } 77 59 if (options->doShutter) {
Note:
See TracChangeset
for help on using the changeset viewer.
