Changeset 13035 for trunk/psphot/src/psphotBlendFit.c
- Timestamp:
- Apr 25, 2007, 3:35:50 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotBlendFit.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotBlendFit.c
r13006 r13035 43 43 44 44 // limit selection to some SN limit 45 // XXX this should use peak? 45 46 if (source->moments == NULL) continue; 46 47 if (source->moments->SN < FIT_SN_LIM) continue; 47 48 49 // XXX this should use peak? 48 50 if (source->moments->x < AnalysisRegion.x0) continue; 49 51 if (source->moments->y < AnalysisRegion.y0) continue; … … 65 67 // replace object in image 66 68 if (source->mode & PM_SOURCE_MODE_SUBTRACTED) { 67 pm ModelAdd (source->pixels, source->mask, source->modelPSF, false, false);69 pmSourceAdd (source, PM_MODEL_OP_FULL); 68 70 } 69 71 Nfit ++; 70 72 71 73 // try fitting PSFs, then try extended sources 74 // these functions subtract the resulting fitted source (XXX and update the modelFlux?) 72 75 if (psphotFitBlend (readout, source, psf)) { 73 76 psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y); … … 84 87 Nfail ++; 85 88 86 // re-subtract PSF for object, leave local sky 87 pmModelSub (source->pixels, source->mask, source->modelPSF, false, false); 89 // re-subtract the object, leave local sky 90 pmSourceCacheModel (source); 91 pmSourceSub (source, PM_MODEL_OP_FULL); 88 92 source->mode |= PM_SOURCE_MODE_SUBTRACTED; 89 93 source->mode |= PM_SOURCE_MODE_TEMPSUB;
Note:
See TracChangeset
for help on using the changeset viewer.
