Changeset 7716 for trunk/psphot/src/psphotReadout.c
- Timestamp:
- Jun 27, 2006, 6:12:57 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r7638 r7716 11 11 // XXX does this need to invoke I/O? 12 12 // XXX move this input the psphotImageLoop level? 13 if (!pmReadout SetMaskWeight (readout)) {14 return false;13 if (!pmReadoutGenerateMaskWeight (readout)) { 14 return false; 15 15 } 16 16 17 17 // I have a valid mask, now mask in the analysis region of interest 18 psphotMaskReadout (readout, recipe); 18 psphotMaskReadout (readout, recipe); 19 19 20 20 // run a single-model test if desired … … 38 38 // faint sources not classified? 39 39 if (!psphotRoughClass (sources, recipe)) { 40 psFree (peaks);41 psFree (sources);42 psLogMsg ("psphot", 3, "failed to find a valid PSF clump for image");43 pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL");44 pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");45 return false;40 psFree (peaks); 41 psFree (sources); 42 psLogMsg ("psphot", 3, "failed to find a valid PSF clump for image"); 43 pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL"); 44 pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND"); 45 return false; 46 46 } 47 47 … … 73 73 // measure aperture photometry corrections 74 74 if (!psphotApResid (readout, sources, recipe, psf)) { 75 psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");76 return false;75 psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections"); 76 return false; 77 77 } 78 78 … … 89 89 psphotSourceFreePixels (sources); 90 90 91 // save the results of the analysis 91 // save the results of the analysis 92 92 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY, "psphot sources", sources); 93 93 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.HEADER", PS_DATA_METADATA, "header stats", header);
Note:
See TracChangeset
for help on using the changeset viewer.
