Changeset 20003
- Timestamp:
- Oct 8, 2008, 11:55:25 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotMakeFluxScale.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotMakeFluxScale.c
r18854 r20003 29 29 float y = psImageBinningGetFineY (trend->map->binning, iy + 0.5); 30 30 31 float fitSum = 0; 32 31 33 // create normalized model object at xc,yc 32 34 pmModel *model = pmModelFromPSFforXY (psf, x, y, 1.0); 33 35 if (!model) { 34 psError(PS_ERR_UNKNOWN, false, "Unable to generate model for grid point %d,%d", ix, iy); 35 success = false; 36 goto DONE; 37 } 38 39 // measure the fitMag for this model 40 float fitSum = model->modelFlux (model->params); 41 assert (fitSum > 0); 42 assert (isfinite(fitSum)); 36 psTrace ("psphot", 3, "Unable to generate model for grid point %d,%d", ix, iy); 37 fitSum = NAN; 38 } else { 39 // measure the fitMag for this model 40 fitSum = model->modelFlux (model->params); 41 assert (fitSum > 0); 42 assert (isfinite(fitSum)); 43 } 43 44 44 45 xPts->data.F32[Npts] = x;
Note:
See TracChangeset
for help on using the changeset viewer.
