Changeset 4574 for trunk/psphot/src/apply_psf_model.c
- Timestamp:
- Jul 16, 2005, 6:02:29 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/apply_psf_model.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/apply_psf_model.c
r4421 r4574 65 65 status = pmSourceFitModel (source, model, true); 66 66 psImageKeepCircle (source->mask, x, y, model->radius, AND, 0x7f); 67 if (!status) continue; 67 if (!status || (model->params->data.F32[1] < 0)) { 68 // if the fit fails, we need to change the classification 69 psLogMsg ("psphot", 3, "PSF fit failed for %f, %f (%d iterations)\n", x, y, model->nIter); 70 source->type = PS_SOURCE_OTHER; // better choice? 71 continue; 72 } 68 73 69 74 source->modelPSF = model; … … 71 76 Nfit ++; 72 77 73 mark_psf_source (source, shapeNsigma );78 mark_psf_source (source, shapeNsigma, SATURATE); 74 79 if (subtract_psf_source (source)) { 75 80 Nsub ++;
Note:
See TracChangeset
for help on using the changeset viewer.
