Changeset 10271
- Timestamp:
- Nov 28, 2006, 5:08:57 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r10266 r10271 14 14 // XXX does this need to invoke I/O? 15 15 // XXX move this input the psphotImageLoop level? 16 if (!pmReadoutGenerateMaskWeight (readout )) {16 if (!pmReadoutGenerateMaskWeight (readout, true)) { 17 17 return false; 18 18 } … … 25 25 26 26 if (psTraceGetLevel("psphot") > 5) { 27 psphotSaveImage (NULL, readout->image, "image.fits");28 psphotSaveImage (NULL, readout->mask, "mask.fits");29 psphotSaveImage (NULL, readout->weight, "weight.fits");27 psphotSaveImage (NULL, readout->image, "image.fits"); 28 psphotSaveImage (NULL, readout->mask, "mask.fits"); 29 psphotSaveImage (NULL, readout->weight, "weight.fits"); 30 30 } 31 31 … … 54 54 55 55 if (!strcasecmp (breakPt, "PEAKS")) { 56 if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;57 return true;56 if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false; 57 return true; 58 58 } 59 59 … … 71 71 } 72 72 if (!strcasecmp (breakPt, "MOMENTS")) { 73 if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false;74 return true;73 if (!psphotReadoutCleanup (config, readout, recipe, NULL, sources)) return false; 74 return true; 75 75 } 76 76 … … 86 86 87 87 if (!strcasecmp (breakPt, "PSFMODEL")) { 88 if (!psphotReadoutCleanup (config, readout, recipe, psf, sources)) return false;89 return true;88 if (!psphotReadoutCleanup (config, readout, recipe, psf, sources)) return false; 89 return true; 90 90 } 91 91 … … 95 95 psphotEnsemblePSF (readout, sources, recipe, psf, FALSE); 96 96 if (!strcasecmp (breakPt, "ENSEMBLE")) { 97 goto finish;97 goto finish; 98 98 } 99 99 … … 122 122 // measure aperture photometry corrections 123 123 if (!psphotApResid (readout, sources, recipe, psf)) { 124 psTrace ("psphot", 4, "failure on psphotApResid"); 124 psTrace ("psphot", 4, "failure on psphotApResid"); 125 125 psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections"); 126 126 return false; … … 146 146 // use the psf-model to measure FWHM stats 147 147 if (psf) { 148 if (!psphotPSFstats (readout, recipe, psf)) {149 psError(PS_ERR_IO, true, "Failed to measure PSF shape parameters");150 return false;151 }148 if (!psphotPSFstats (readout, recipe, psf)) { 149 psError(PS_ERR_IO, true, "Failed to measure PSF shape parameters"); 150 return false; 151 } 152 152 } else if (sources) { 153 if (!psphotMomentsStats (readout, recipe, sources)) {154 psError(PS_ERR_IO, true, "Failed to measure Moment shape parameters");155 return false;156 }153 if (!psphotMomentsStats (readout, recipe, sources)) { 154 psError(PS_ERR_IO, true, "Failed to measure Moment shape parameters"); 155 return false; 156 } 157 157 } 158 158
Note:
See TracChangeset
for help on using the changeset viewer.
