Changeset 27330 for trunk/psModules/src/objects/pmPSFtryModel.c
- Timestamp:
- Mar 18, 2010, 1:04:34 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSFtryModel.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSFtryModel.c
r26260 r27330 78 78 } 79 79 80 // this is a bit tricky, because we have two cases (MAP vs POLY), and they have a different 81 // definition for 'order' (order_MAP = order_POLY + 1). in addition, we have a 80 // this is a bit tricky, because we have two cases (MAP vs POLY), and they have a different 81 // definition for 'order' (order_MAP = order_POLY + 1). in addition, we have a 82 82 // user-specified MAX order, which we should respect, regardless of the mode 83 83 … … 93 93 int orderMin = 0; 94 94 if (options->psfTrendMode == PM_TREND_MAP) { 95 MaxOrderForStars ++;96 orderMin ++;95 MaxOrderForStars ++; 96 orderMin ++; 97 97 } 98 98 orderMax = PS_MIN (orderMax, MaxOrderForStars); … … 204 204 psStatsGetValue(stats, meanStat), psStatsGetValue(stats, stdevStat)); 205 205 206 psFree(flux);207 psFree(mask);208 psFree(chisq);209 210 206 if (!result) { 211 207 psError(PS_ERR_UNKNOWN, false, "Failed to fit psf->ChiTrend"); 212 208 psFree(psfTry); 213 return NULL; 214 } 215 } 209 psFree(flux); 210 psFree(mask); 211 psFree(chisq); 212 return NULL; 213 } 214 } 215 216 psFree(flux); 217 psFree(mask); 218 psFree(chisq); 216 219 217 220 for (int i = 0; i < psfTry->psf->ChiTrend->nX + 1; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
