Changeset 13831
- Timestamp:
- Jun 14, 2007, 8:57:32 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadoutCleanup.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadoutCleanup.c
r13529 r13831 5 5 // case, or if the fail on the stats measurement, do we return false 6 6 bool psphotReadoutCleanup (pmConfig *config, pmReadout *readout, psMetadata *recipe, pmPSF *psf, psArray *sources) { 7 8 // remove internal pmFPAfiles, if created 9 bool status = true; 10 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL"); 11 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV"); 12 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND"); 13 if (!status) { 14 psError(PSPHOT_ERR_PROG, false, "trouble dropping internal files"); 15 return false; 16 } 7 17 8 18 if (psErrorCodeLast() == PSPHOT_ERR_DATA) { … … 14 24 // use the psf-model to measure FWHM stats 15 25 if (psf) { 16 // don't call psphotPSFstats unless we have a valid pdf17 // if it fails, there is probably a programming error18 26 if (!psphotPSFstats (readout, recipe, psf)) { 19 27 psError(PSPHOT_ERR_PROG, false, "Failed to measure PSF shape parameters"); … … 21 29 } 22 30 } 31 // otherwise, use the source moments to measure FWHM stats 23 32 if (!psf && sources) { 24 33 if (!psphotMomentsStats (readout, recipe, sources)) { … … 45 54 } 46 55 47 // remove internal pmFPAfiles, if created48 pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL");49 pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV");50 pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");51 52 56 if (psErrorCodeLast() != PS_ERR_NONE) { 53 57 psErrorStackPrint(stderr, "unexpected remaining errors");
Note:
See TracChangeset
for help on using the changeset viewer.
