- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotImageLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/psphot
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/psphot merged eligible /branches/eam_branches/stackphot.20100406/psphot 27622-27655 /branches/pap_delete/psphot 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/psphot/src
- Property svn:ignore
-
old new 18 18 psphotVersionDefinitions.h 19 19 psphotMomentsStudy 20 psphotPetrosianStudy 21 psphotForced 22 psphotMakePSF 23 psphotStack
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/psphot/src/psphotImageLoop.c
r23957 r27840 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 … … 90 91 } 91 92 92 status = true; 93 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL"); 94 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV"); 95 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND"); 96 if (!status) { 97 psError(PSPHOT_ERR_PROG, false, "trouble dropping internal files"); 98 psFree (view); 99 return false; 100 } 93 // drop all versions of the internal files 94 status = true; 95 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL"); 96 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV"); 97 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND"); 98 if (!status) { 99 psError(PSPHOT_ERR_PROG, false, "trouble dropping internal files"); 100 psFree (view); 101 return false; 102 } 101 103 } 102 103 104 // save output which is saved at the chip level 104 105 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed output for Chip in psphot.");
Note:
See TracChangeset
for help on using the changeset viewer.
