Changeset 19881 for trunk/psphot/src/psphotBlendFit.c
- Timestamp:
- Oct 3, 2008, 11:00:18 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotBlendFit.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotBlendFit.c
r19869 r19881 55 55 56 56 // limit selection to some SN limit 57 // XXX this should use peak? 58 if (source->moments == NULL) continue; 59 if (source->moments->SN < FIT_SN_LIM) continue; 57 if (source->peak->SN < FIT_SN_LIM) continue; 60 58 61 59 // XXX this should use peak? 62 if (source-> moments->x< AnalysisRegion.x0) continue;63 if (source-> moments->y< AnalysisRegion.y0) continue;64 if (source-> moments->x> AnalysisRegion.x1) continue;65 if (source-> moments->y> AnalysisRegion.y1) continue;60 if (source->peak->xf < AnalysisRegion.x0) continue; 61 if (source->peak->yf < AnalysisRegion.y0) continue; 62 if (source->peak->xf > AnalysisRegion.x1) continue; 63 if (source->peak->yf > AnalysisRegion.y1) continue; 66 64 67 65 // if model is NULL, we don't have a starting guess … … 95 93 if (psphotFitBlob (readout, source, sources, psf, maskVal, markVal)) { 96 94 source->type = PM_SOURCE_TYPE_EXTENDED; 97 psTrace ("psphot", 5, "source at %7.1f, %7.1f is ext", source-> moments->x, source->moments->y);95 psTrace ("psphot", 5, "source at %7.1f, %7.1f is ext", source->peak->xf, source->peak->yf); 98 96 Next ++; 99 97 continue; … … 102 100 if (psphotFitBlend (readout, source, psf, maskVal, markVal)) { 103 101 source->type = PM_SOURCE_TYPE_STAR; 104 psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source-> moments->x, source->moments->y);102 psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->peak->xf, source->peak->yf); 105 103 Npsf ++; 106 104 continue; … … 108 106 } 109 107 110 psTrace ("psphot", 5, "source at %7.1f, %7.1f failed", source-> moments->x, source->moments->y);108 psTrace ("psphot", 5, "source at %7.1f, %7.1f failed", source->peak->xf, source->peak->yf); 111 109 Nfail ++; 112 110
Note:
See TracChangeset
for help on using the changeset viewer.
