- Timestamp:
- Sep 23, 2009, 11:16:52 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psModules/src/objects/pmPSFtryMakePSF.c
r25476 r25496 184 184 // we run 'clipIter' cycles clipping in each of x and y, with only one iteration each. 185 185 // This way, the parameters masked by one of the fits will be applied to the others 186 for (int i = 0; i < psf->psfTrendStats->clipIter; i++) { 186 // NOTE : trend->stats (below) points to the same data as psfTrendStats; set the value to 1 187 // to limit the iteration within the loop 188 int nIter = psf->psfTrendStats->clipIter; 189 psf->psfTrendStats->clipIter = 1; 190 for (int i = 0; i < nIter; i++) { 187 191 // XXX we are using the same stats structure on each pass: do we need to re-init it? 188 192 // XXX we hardwire this to SAMPLE stats above (psphotChoosePSF.c), hardwire here instead? … … 203 207 psTrace ("psModules.objects", 4, "clipped E0 : %f +/- %f keeping %ld of %ld\n", mean, stdev, psf->psfTrendStats->clippedNvalues, e0->n); 204 208 if (psf->psfTrendMode == PM_TREND_MAP) psImageMapCleanup (trend->map); 205 //pmSourceVisualPSFModelResid (trend, x, y, e0, srcMask);209 pmSourceVisualPSFModelResid (trend, x, y, e0, srcMask); 206 210 207 211 trend = psf->params->data[PM_PAR_E1]; … … 212 216 psTrace ("psModules.objects", 4, "clipped E1 : %f +/- %f keeping %ld of %ld\n", mean, stdev, psf->psfTrendStats->clippedNvalues, e1->n); 213 217 if (psf->psfTrendMode == PM_TREND_MAP) psImageMapCleanup (trend->map); 214 //pmSourceVisualPSFModelResid (trend, x, y, e1, srcMask);218 pmSourceVisualPSFModelResid (trend, x, y, e1, srcMask); 215 219 216 220 trend = psf->params->data[PM_PAR_E2]; … … 221 225 psTrace ("psModules.objects", 4, "clipped E2 : %f +/- %f keeping %ld of %ld\n", mean, stdev, psf->psfTrendStats->clippedNvalues, e2->n); 222 226 if (psf->psfTrendMode == PM_TREND_MAP) psImageMapCleanup (trend->map); 223 //pmSourceVisualPSFModelResid (trend, x, y, e2, srcMask);227 pmSourceVisualPSFModelResid (trend, x, y, e2, srcMask); 224 228 225 229 if (!status) { … … 228 232 } 229 233 } 234 psf->psfTrendStats->clipIter = nIter; 230 235 231 236 // test dump of the psf parameters
Note:
See TracChangeset
for help on using the changeset viewer.
