Changeset 18555 for trunk/psphot/src/psphotParseCamera.c
- Timestamp:
- Jul 15, 2008, 10:25:50 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotParseCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotParseCamera.c
r13528 r18555 17 17 // if MASK or WEIGHT was supplied on command line, bind files to 'load' 18 18 // the mask and weight will be mosaicked with the image 19 pmFPAfile BindFromArgs (&status, load, config, "PSPHOT.MASK","MASK");19 pmFPAfile *mask = pmFPAfileBindFromArgs (&status, load, config, "PSPHOT.MASK", "MASK"); 20 20 if (!status) { 21 21 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 22 22 return NULL; 23 23 } 24 24 if (mask) { 25 // XXX need to load the mask bit names from one of the headers 26 // this grabs the first available hdu : no guarantee that it will be valid, though 27 pmHDU *hdu = pmHDUGetFirst (mask->fpa); 28 if (!hdu) { 29 psError(PS_ERR_IO, true, "no valid HDU for PSPHOT.MASK"); 30 return NULL; 31 } 32 // XXX should this be done in pmFPAfileIO.c read functions? 33 if (!pmConfigMaskReadHeader (config, hdu->header)) { 34 psError(PS_ERR_IO, false, "error in mask bits"); 35 return NULL; 36 } 37 } 38 if (!psphotSetMaskBits (config)) { 39 psError (PS_ERR_UNKNOWN, false, "failed to set mask bit values"); 40 return NULL; 41 } 42 25 43 pmFPAfileBindFromArgs (&status, load, config, "PSPHOT.WEIGHT", "WEIGHT"); 26 44 if (!status) {
Note:
See TracChangeset
for help on using the changeset viewer.
