Changeset 16820 for trunk/psphot/src/psphotBlendFit.c
- Timestamp:
- Mar 4, 2008, 3:10:25 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotBlendFit.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotBlendFit.c
r15800 r16820 2 2 3 3 // XXX I don't like this name 4 bool psphotBlendFit (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf , psMaskType maskVal) {4 bool psphotBlendFit (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf) { 5 5 6 6 int Nfit = 0; … … 11 11 12 12 psTimerStart ("psphot"); 13 14 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 15 psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels 16 assert (maskVal); 13 17 14 18 // source analysis is done in S/N order (brightest first) … … 73 77 // try fitting PSFs, then try extended sources 74 78 // these functions subtract the resulting fitted source (XXX and update the modelFlux?) 75 // XXX consider conditions under which the source has EXT fit 79 // XXX re-consider conditions under which the source has EXT fit: 80 // I should try EXT if the source size measurement says it is large 76 81 if (psphotFitBlend (readout, source, psf, maskVal)) { 77 82 psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y); … … 92 97 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 93 98 source->mode |= PM_SOURCE_MODE_SUBTRACTED; 94 source->mode |= PM_SOURCE_MODE_TEMPSUB; 99 } 100 101 if (psTraceGetLevel("psphot") >= 6) { 102 psphotSaveImage (NULL, readout->image, "image.v2.fits"); 95 103 } 96 104
Note:
See TracChangeset
for help on using the changeset viewer.
