Changeset 5802 for trunk/psphot/src/psphotEvalPSF.c
- Timestamp:
- Dec 17, 2005, 10:26:59 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotEvalPSF.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotEvalPSF.c
r5772 r5802 94 94 95 95 // if the object has a fitted peak below 0, the fit did not converge cleanly 96 if (model->params->data.F32[1] < 0) {96 if (model->params->data.F32[1] <= 0) { 97 97 source->mode |= PM_SOURCE_FAIL; 98 98 return false; … … 125 125 if (keep) return true; 126 126 127 // this source is not a star, unflag as PSFSTAR 128 // XXX : if this object was used to build the PSF, this flag should 129 // be set even if the object is not a star... 127 // this source is not a star, warn if it was a PSFSTAR 130 128 if (source->mode & PM_SOURCE_PSFSTAR) { 131 source->mode &= ~PM_SOURCE_PSFSTAR; 132 psLogMsg ("psphot", 5, "PSFSTAR demoted based on fit quality\n"); 129 psphotSaveImage (NULL, source->pixels, "failpx.fits"); 130 psphotSaveImage (NULL, source->mask, "failmk.fits"); 131 psphotSaveImage (NULL, source->weight, "failwt.fits"); 132 psLogMsg ("psphot", 5, "PSFSTAR demoted based on fit quality (%f, %f : %f %f %f %f)\n", 133 model->params->data.F32[2], model->params->data.F32[3], nSx, nSy, SN, Chi); 133 134 } 134 135
Note:
See TracChangeset
for help on using the changeset viewer.
