Changeset 30030
- Timestamp:
- Dec 14, 2010, 9:04:16 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205/psphot/src
- Files:
-
- 2 edited
-
psphotApResid.c (modified) (1 diff)
-
psphotMakeFluxScale.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psphot/src/psphotApResid.c
r29936 r30030 378 378 379 379 // XXX test for errors here 380 if (!pmTrend2DFit (apTrend, mask, 0xff, xPos, yPos, apResid, dMagSoft)) { 380 bool goodFit = false; 381 if (!pmTrend2DFit (&goodFit, apTrend, mask, 0xff, xPos, yPos, apResid, dMagSoft)) { 382 // XXX this is probably a real error, and I should exit 383 psWarning("Failed to fit trend for %d x %d map", Nx, Ny); 384 psFree (apTrend); 385 return NULL; 386 } 387 if (!goodFit) { 381 388 psWarning("Failed to fit trend for %d x %d map", Nx, Ny); 382 389 psFree (apTrend); -
branches/eam_branches/ipp-20101205/psphot/src/psphotMakeFluxScale.c
r25755 r30030 55 55 fPts->n = Npts; 56 56 57 if (!pmTrend2DFit (trend, NULL, 0xff, xPts, yPts, fPts, NULL)) { 57 // XXX we should allow the spatial sampling to decrease if the fit fails 58 bool goodFit = false; 59 if (!pmTrend2DFit (&goodFit, trend, NULL, 0xff, xPts, yPts, fPts, NULL)) { 58 60 psError(PS_ERR_UNKNOWN, false, "Unable to fit trend"); 61 success = false; 62 goto DONE; 63 } 64 if (!goodFit) { 65 psError(PS_ERR_UNKNOWN, false, "poor fit to flux-scale trend"); 59 66 success = false; 60 67 goto DONE;
Note:
See TracChangeset
for help on using the changeset viewer.
