- Timestamp:
- Sep 7, 2010, 9:16:10 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphot/src/psphotExtendedSourceFits.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823
-
branches/eam_branches/ipp-20100823/psphot/src/psphotExtendedSourceFits.c
r29015 r29124 200 200 } 201 201 psFree(job); 202 }202 } 203 203 } 204 204 psFree (cellGroups); … … 270 270 // set the radius based on the footprint (also sets the mask pixels) 271 271 if (!psphotSetRadiusFootprint(&radius, readout, source, markVal, 1.0)) { 272 fprintf (stderr, "skipping (1) %f, %f\n", source->peak->xf, source->peak->yf); 272 273 psFree (fitOptions) 273 274 return false; … … 280 281 // XXX save the psf-based moments for output 281 282 if (!pmSourceMoments (source, radius, 0.0, 0.0, maskVal)) { 283 fprintf (stderr, "skipping (2) %f, %f\n", source->peak->xf, source->peak->yf); 282 284 // subtract the best fit from the object, leave local sky 283 285 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); … … 289 291 psImage *modelFluxStart = psMemIncrRefCounter (source->modelFlux); 290 292 if (!modelFluxStart) { 291 // XXX raise an error of some kind? 292 continue; 293 pmSourceCacheModel (source, maskVal); 294 modelFluxStart = psMemIncrRefCounter (source->modelFlux); 295 if (!modelFluxStart) { 296 fprintf (stderr, "skipping (3) %f, %f\n", source->peak->xf, source->peak->yf); 297 // XXX raise an error of some kind? 298 continue; 299 } 293 300 } 294 301 295 302 if (savePics) { 296 303 psphotSaveImage (NULL, readout->image, "image.xp.fits"); … … 317 324 float SNlim = psMetadataLookupF32 (&status, model, "SNLIM_VALUE"); 318 325 assert (status); 326 327 // fprintf (stderr, "xfit: %f, %f : %f\n", source->peak->xf, source->peak->yf, source->peak->SN); 319 328 320 329 // limit selection to some SN limit … … 449 458 psFree (fitOptions); 450 459 460 // fprintf (stderr, "xfit : tried %ld objects\n", sources->n); 461 451 462 // change the value of a scalar on the array (wrap this and put it in psArray.h) 452 463 scalar = job->args->data[7];
Note:
See TracChangeset
for help on using the changeset viewer.
