Changeset 12957 for branches/eam_02_branch/psphot/src/psphotBlendFit.c
- Timestamp:
- Apr 22, 2007, 5:39:10 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_02_branch/psphot/src/psphotBlendFit.c
r12955 r12957 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 // XXX we will need to remove the existing source->modelFlux if we do 68 // a non-linear fit 69 // pmSourceSub (!NORM, -) 70 pmModelAdd (source->pixels, source->mask, source->modelPSF, PM_MODEL_ADD_FULL); 69 pmSourceAdd (source, PM_MODEL_OP_FULL); 71 70 } 72 71 Nfit ++; 73 72 74 73 // try fitting PSFs, then try extended sources 74 // these functions subtract the resulting fitted source (XXX and update the modelFlux?) 75 75 if (psphotFitBlend (readout, source, psf)) { 76 76 psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y); … … 87 87 Nfail ++; 88 88 89 // re-subtract PSF forobject, leave local sky90 pm ModelSub (source->pixels, source->mask, source->modelPSF, PM_MODEL_ADD_FULL);89 // re-subtract the object, leave local sky 90 pmSourceSub (source, PM_MODEL_OP_FULL); 91 91 source->mode |= PM_SOURCE_MODE_SUBTRACTED; 92 92 source->mode |= PM_SOURCE_MODE_TEMPSUB;
Note:
See TracChangeset
for help on using the changeset viewer.
