Changeset 25755 for trunk/psphot/src/psphotImageLoop.c
- Timestamp:
- Oct 2, 2009, 3:12:47 PM (17 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphotImageLoop.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src
- Property svn:ignore
-
old new 18 18 psphotVersionDefinitions.h 19 19 psphotMomentsStudy 20 psphotPetrosianStudy
-
- Property svn:ignore
-
trunk/psphot/src/psphotImageLoop.c
r23957 r25755 67 67 68 68 // Update the header 69 { 70 pmHDU *hdu = pmHDUGetHighest(input->fpa, chip, cell); 71 if (hdu && hdu != lastHDU) { 72 psphotVersionHeaderFull(hdu->header); 73 lastHDU = hdu; 74 } 69 pmHDU *hdu = pmHDUGetHighest(input->fpa, chip, cell); 70 if (hdu && hdu != lastHDU) { 71 psphotVersionHeaderFull(hdu->header); 72 lastHDU = hdu; 75 73 } 76 74 77 psImageMaskType maskSat = pmConfigMaskGet("SAT", config); // Mask value for saturated pixels 78 if (!pmReadoutMaskNonfinite(readout, maskSat)) { 79 psError(psErrorCodeLast(), false, "Unable to mask non-finite pixels."); 80 psFree(view); 81 return false; 82 } 75 // if an external mask is supplied, ensure that NAN pixels are also masked 76 if (readout->mask) { 77 psImageMaskType maskSat = pmConfigMaskGet("SAT", config); // Mask value for saturated pixels 78 if (!pmReadoutMaskNonfinite(readout, maskSat)) { 79 psError(psErrorCodeLast(), false, "Unable to mask non-finite pixels."); 80 psFree(view); 81 return false; 82 } 83 } 83 84 84 85 // run the actual photometry analysis on this chip/cell/readout
Note:
See TracChangeset
for help on using the changeset viewer.
