- Timestamp:
- Jul 29, 2010, 2:36:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/psphot/src/psphotExtendedSourceFits.c
r28687 r28782 39 39 int NplainPass = 0; 40 40 bool savePics = false; 41 float radius; 41 42 42 43 // find the currently selected readout … … 164 165 Next ++; 165 166 167 // set the radius based on the footprint (also sets the mask pixels) 168 if (!psphotSetRadiusFootprint(&radius, readout, source, markVal, 1.0)) return false; 169 170 // XXX note that this changes the source moments that are published... 171 // recalculate the source moments using the larger extended-source moments radius 172 // at this stage, skip Gaussian windowing, and do not clip pixels by S/N 173 // this uses the footprint to judge both radius and aperture? 174 // XXX save the psf-based moments for output 175 if (!pmSourceMoments (source, radius, 0.0, 0.0, maskVal)) { 176 // subtract the best fit from the object, leave local sky 177 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 178 // XXX raise an error of some kind 179 continue; 180 } 181 166 182 // save the modelFlux here in case we need to subtract it (for failure) 167 183 psImage *modelFluxStart = psMemIncrRefCounter (source->modelFlux); … … 242 258 243 259 // test for fit quality / result 260 modelFit->fitRadius = radius; 244 261 psArrayAdd (source->modelFits, 4, modelFit); 245 262
Note:
See TracChangeset
for help on using the changeset viewer.
