Changeset 13422
- Timestamp:
- May 18, 2007, 4:02:09 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSFtry.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSFtry.c
r13077 r13422 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.3 8$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 4-28 01:32:05$7 * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-05-18 14:02:09 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 116 116 if (source->modelEXT == NULL) { 117 117 psError(PS_ERR_UNKNOWN, false, "failed to build model"); 118 psFree(psfTry); 118 119 return NULL; 119 120 } … … 138 139 if (!pmPSFFromPSFtry (psfTry, applyWeights)) { 139 140 psError(PS_ERR_UNKNOWN, false, "failed to construct a psf model from collection of sources"); 141 psFree(psfTry); 140 142 return NULL; 141 143 } … … 152 154 // set shape for this model based on PSF 153 155 source->modelPSF = pmModelFromPSF (source->modelEXT, psfTry->psf); 156 if (source->modelPSF == NULL) { 157 continue; 158 } 154 159 source->modelPSF->radiusFit = RADIUS; 155 160 … … 272 277 if (!result) { 273 278 psError(PS_ERR_UNKNOWN, false, "Failed to fit clipped poly"); 279 280 psFree(poly); 281 psFree(r2rflux); 282 psFree(stats); 283 274 284 return false; 275 285 }
Note:
See TracChangeset
for help on using the changeset viewer.
