Changeset 28484 for branches/pap/psphot/src/psphotReadout.c
- Timestamp:
- Jun 24, 2010, 2:59:09 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psphot
- Property svn:mergeinfo changed
/branches/czw_branch/20100519/psphot (added) merged: 28164,28304
- Property svn:mergeinfo changed
-
branches/pap/psphot/src/psphotReadout.c
r28013 r28484 45 45 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 46 46 } 47 47 48 if (!psphotSubtractBackground (config, view, "PSPHOT.INPUT")) { 48 49 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); … … 93 94 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 94 95 } 96 95 97 // if we were not supplied a PSF model, determine the IQ stats here (detections->newSources) 96 98 if (!psphotImageQuality (config, view, "PSPHOT.INPUT")) { // pass 1 … … 208 210 209 211 // calculate source magnitudes 210 psphotMagnitudes(config, view, "PSPHOT.INPUT"); // pass 1 (detections->allSources) 211 212 if (!psphotMagnitudes(config, view, "PSPHOT.INPUT")) { // pass 1 (detections->allSources) 213 psErrorStackPrint(stderr, "Unable to do magnitudes."); 214 psErrorClear(); 215 } 212 216 if (!psphotEfficiency(config, view, "PSPHOT.INPUT")) { // pass 1 213 217 psErrorStackPrint(stderr, "Unable to determine detection efficiencies from fake sources"); … … 219 223 220 224 // replace background in residual image 221 psphotSkyReplace (config, view, "PSPHOT.INPUT"); // pass 1 222 225 if (!psphotSkyReplace (config, view, "PSPHOT.INPUT")) { // pass 1 226 psErrorStackPrint(stderr, "Unable to replace sky"); 227 psErrorClear(); 228 229 /* psLogMsg("psphot", 3, "failed on psphotSkyReplace"); */ 230 /* return(psphotReadoutCleanup(config, view, "PSPHOT.INPUT")); */ 231 } 223 232 // drop the references to the image pixels held by each source 224 psphotSourceFreePixels (config, view, "PSPHOT.INPUT"); // pass 1 225 233 if (!psphotSourceFreePixels (config, view, "PSPHOT.INPUT")) { // pass 1 234 psErrorStackPrint(stderr, "Unable to free source pixels"); 235 psErrorClear(); 236 237 /* psLogMsg ("psphot", 3, "failed on psphotSourceFreePixels"); */ 238 /* return(psphotReadoutCleanup(config, view, "PSPHOT.INPUT")); */ 239 } 226 240 // create the exported-metadata and free local data 227 241 return psphotReadoutCleanup(config, view, "PSPHOT.INPUT");
Note:
See TracChangeset
for help on using the changeset viewer.
