Changeset 9519
- Timestamp:
- Oct 12, 2006, 11:48:41 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r9270 r9519 40 40 41 41 if (!strcasecmp (breakPt, "PEAKS")) { 42 psphotReadoutCleanup (config, readout, recipe, NULL, sources);42 if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false; 43 43 return true; 44 44 } … … 57 57 } 58 58 if (!strcasecmp (breakPt, "MOMENTS")) { 59 psphotReadoutCleanup (config, readout, recipe, NULL, sources);59 if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false; 60 60 return true; 61 61 } … … 64 64 pmPSF *psf = psphotChoosePSF (readout, sources, recipe); 65 65 if (!strcasecmp (breakPt, "PSFMODEL")) { 66 psphotReadoutCleanup (config, readout, recipe, psf, sources);66 if (!psphotReadoutCleanup (config, readout, recipe, psf, sources)) return false; 67 67 return true; 68 68 } … … 71 71 psphotEnsemblePSF (readout, sources, recipe, psf, FALSE); 72 72 if (!strcasecmp (breakPt, "ENSEMBLE")) { 73 psphotReadoutCleanup (config, readout, recipe, psf, sources);73 if (!psphotReadoutCleanup (config, readout, recipe, psf, sources)) return false; 74 74 return true; 75 75 } … … 94 94 psTrace ("psphotReadout", 4, "failure on psphotApResid"); 95 95 psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections"); 96 psphotReadoutCleanup (config, readout, recipe, psf, sources);97 96 return false; 98 97 } … … 109 108 110 109 // create the exported-metadata and free local data 111 psphotReadoutCleanup (config, readout, recipe, psf, sources);110 if (!psphotReadoutCleanup (config, readout, recipe, psf, sources)) return false; 112 111 return true; 113 112 } … … 117 116 // use the psf-model to measure FWHM stats 118 117 if (psf) { 119 psphotPSFstats (readout, recipe, psf); 120 } else { 121 psphotMomentsStats (readout, recipe, sources); 118 if (!psphotPSFstats (readout, recipe, psf)) { 119 psError(PS_ERR_IO, true, "Failed to measure PSF shape parameters"); 120 return false; 121 } 122 } else if (sources) { 123 if (!psphotMomentsStats (readout, recipe, sources)) { 124 psError(PS_ERR_IO, true, "Failed to measure Moment shape parameters"); 125 return false; 126 } 122 127 } 123 128
Note:
See TracChangeset
for help on using the changeset viewer.
