Changeset 31673 for trunk/psphot/src/psphotExtendedSourceFits.c
- Timestamp:
- Jun 22, 2011, 12:54:41 AM (15 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotExtendedSourceFits.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20110505/psphot (added) merged: 31522,31546,31576,31609-31610,31628,31658
- Property svn:mergeinfo changed
-
trunk/psphot/src/psphotExtendedSourceFits.c
r31452 r31673 268 268 float radius; 269 269 psScalar *scalar = NULL; 270 pmMoments psfMoments; 270 271 271 272 // arguments: readout, sources, models, region, psfSize, maskVal, markVal … … 333 334 // this uses the footprint to judge both radius and aperture? 334 335 // XXX save the psf-based moments for output 336 psfMoments = *source->moments; 335 337 if (!pmSourceMoments (source, radius, 0.0, 0.0, 0.0, maskVal)) { 338 // subtract the best fit from the object, leave local sky 336 339 fprintf (stderr, "skipping (2) %f, %f\n", source->peak->xf, source->peak->yf); 337 // subtract the best fit from the object, leave local sky340 *source->moments = psfMoments; 338 341 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 339 342 // XXX raise an error flag of some kind … … 348 351 if (!modelFluxStart) { 349 352 fprintf (stderr, "skipping (3) %f, %f\n", source->peak->xf, source->peak->yf); 353 *source->moments = psfMoments; 350 354 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 351 355 // XXX raise an error of some kind? … … 467 471 source->modelFlux = modelFluxStart; 468 472 473 *source->moments = psfMoments; 469 474 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 470 475 … … 492 497 source->modelFlux = psMemIncrRefCounter (modelFluxes->data[minModel]); 493 498 499 // replace the original moments 500 *source->moments = psfMoments; 501 494 502 // subtract the best fit from the object, leave local sky 495 503 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
Note:
See TracChangeset
for help on using the changeset viewer.
