Changeset 25698
- Timestamp:
- Sep 30, 2009, 2:36:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotApResid.c
r25651 r25698 190 190 source->modelPSF->params->data.F32[PM_PAR_7]); 191 191 # endif 192 if (!isfinite(source->psfMag)) psAbort ("nan in psfMag"); 193 if (!isfinite(source->errMag)) psAbort ("nan in errMag"); 194 if (!isfinite(source->apMag)) psAbort ("nan in apMag"); 195 if (!isfinite(model->params->data.F32[PM_PAR_XPOS])) psAbort ("nan in xPos"); 196 if (!isfinite(model->params->data.F32[PM_PAR_YPOS])) psAbort ("nan in yPos"); 197 192 198 psVectorAppend (mag, source->psfMag); 193 199 psVectorAppend (dMag,source->errMag); … … 241 247 } 242 248 249 // apply ApTrend results 250 // float xc = 0.5*readout->image->numCols + readout->image->col0 + 0.5; 251 // float yc = 0.5*readout->image->numRows + readout->image->row0 + 0.5; 252 // float ApResid = pmTrend2DEval (psf->ApTrend, xc, yc); // ap-fit at chip center 253 // if (!isfinite(ApResid)) psAbort("nan apresid @ center"); 254 243 255 // store the minimum errorFloor and best ApTrend to keep 244 256 if (errorFloor < errorFloorMin) { … … 320 332 psFree (apTrend); 321 333 return NULL; 334 } 335 if (apTrend->mode == PM_TREND_MAP) { 336 // p_psImagePrint (2, apTrend->map->map, "ApTrend Before"); // XXX TEST: 337 psImageMapRepair (apTrend->map->map); 338 // p_psImagePrint (2, apTrend->map->map, "ApTrend After"); // XXX TEST: 322 339 } 323 340
Note:
See TracChangeset
for help on using the changeset viewer.
