Changeset 11189
- Timestamp:
- Jan 19, 2007, 12:18:21 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r10801 r11189 14 14 // check if a PSF model is supplied by the user 15 15 psf = psMetadataLookupPtr (NULL, readout->analysis, "PSPHOT.PSF"); 16 if (psf != NULL) return psf; 16 if (psf != NULL) { 17 if (!psphotPSFstats (readout, recipe, psf)) psAbort ("psphotChoosePSF", "cannot measure PSF shape terms"); 18 return psf; 19 } 17 20 18 21 // examine PSF sources in S/N order (brightest first) … … 244 247 psFree (models); 245 248 246 psMetadataAdd (recipe, PS_LIST_TAIL, "NPSFSTAR", PS_DATA_S32 | PS_META_REPLACE, "number of stars used to make PSF", psf->nPSFstars);249 if (!psphotPSFstats (readout, recipe, psf)) psAbort ("psphotChoosePSF", "cannot measure PSF shape terms"); 247 250 248 251 modelName = pmModelGetType (psf->type); … … 295 298 psMetadataAdd (recipe, PS_LIST_TAIL, "FWHM_Y", PS_DATA_F32 | PS_META_REPLACE, "PSF FWHM Minor axis", FWHM_Y); 296 299 psMetadataAdd (recipe, PS_LIST_TAIL, "ANGLE", PS_DATA_F32 | PS_META_REPLACE, "PSF angle", axes.theta); 300 psMetadataAdd (recipe, PS_LIST_TAIL, "NPSFSTAR", PS_DATA_S32 | PS_META_REPLACE, "number of stars used to make PSF", psf->nPSFstars); 297 301 298 302 psFree (modelEXT);
Note:
See TracChangeset
for help on using the changeset viewer.
