Changeset 10853
- Timestamp:
- Dec 29, 2006, 8:31:11 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSFtry.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSFtry.c
r10378 r10853 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-12- 01 19:27:38$7 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-12-29 18:31:11 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 213 213 214 214 // linear clipped fit of chisq trend vs flux 215 psfTry->psf->ChiTrend= psVectorClipFitPolynomial1D(psfTry->psf->ChiTrend, stats, mask, 1, chisq, NULL, flux);215 bool result = psVectorClipFitPolynomial1D(psfTry->psf->ChiTrend, stats, mask, 1, chisq, NULL, flux); 216 216 psLogMsg ("pmPSFtry", 4, "chisq vs flux fit: %f +/- %f\n", stats->sampleMedian, stats->sampleStdev); 217 217 … … 221 221 psFree (chisq); 222 222 223 if ( psfTry->psf->ChiTrend == NULL) {223 if (!result) { 224 224 psError(PS_ERR_UNKNOWN, false, "Failed to fit psf->ChiTrend"); 225 225 psFree(psfTry); … … 274 274 poly->mask[1] = 1; 275 275 276 poly= psVectorClipFitPolynomial1D (poly, stats, psfTry->mask, PSFTRY_MASK_ALL, psfTry->metric, psfTry->metricErr, r2rflux);277 if ( poly == NULL) {276 bool result = psVectorClipFitPolynomial1D (poly, stats, psfTry->mask, PSFTRY_MASK_ALL, psfTry->metric, psfTry->metricErr, r2rflux); 277 if (!result) { 278 278 psError(PS_ERR_UNKNOWN, false, "Failed to fit clipped poly"); 279 279 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
