Changeset 13429
- Timestamp:
- May 18, 2007, 4:26:17 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r13225 r13429 196 196 if (!psphotMakeResiduals (try->sources, recipe, try->psf)) { 197 197 psError(PSPHOT_ERR_PSF, false, "Unable to construct residual table for PSF"); 198 psFree (models); 198 199 return NULL; 199 200 } … … 244 245 245 246 psEllipseAxes axes1 = psEllipseShapeToAxes (shape, 20.0); 246 psEllipseAxes axes2 = psEllipsePolToAxes (pol, 0.1); 247 psEllipseAxes axes2; 248 (void)psEllipsePolToAxes(pol, 0.1, &axes2); 247 249 psEllipsePol pol2 = psEllipseAxesToPol (axes1); 248 250 … … 275 277 psFree (models); 276 278 277 if (!psphotPSFstats (readout, recipe, psf)) psAbort("cannot measure PSF shape terms"); 279 if (!psphotPSFstats (readout, recipe, psf)) { 280 psError(PSPHOT_ERR_PSF, false, "cannot measure PSF shape terms"); 281 psFree(psf); 282 return NULL; 283 } 278 284 279 285 modelName = pmModelGetType (psf->type); … … 308 314 // construct a PSF model at this coordinate 309 315 pmModel *modelPSF = pmModelFromPSF (modelEXT, psf); 310 PS_ASSERT_PTR_NON_NULL(modelPSF, false); 316 if (modelPSF == NULL) { 317 psError(PSPHOT_ERR_PSF, false, "Failed to estimate PSF model at image centre"); 318 psFree(modelEXT); 319 return false; 320 } 311 321 312 322 // get the correct model-radius function
Note:
See TracChangeset
for help on using the changeset viewer.
