IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2009, 11:16:52 AM (17 years ago)
Author:
eugene
Message:

add some additional psf model visualization, adjustments to existing visuals; allow independent aperture and fit radii; return to psfMag - apMag for psf fit metric; use psf fit metric to test 2D order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psModules/src/objects/pmPSFtryMakePSF.c

    r25476 r25496  
    184184    // we run 'clipIter' cycles clipping in each of x and y, with only one iteration each.
    185185    // 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++) {
    187191        // XXX we are using the same stats structure on each pass: do we need to re-init it?
    188192        // XXX we hardwire this to SAMPLE stats above (psphotChoosePSF.c), hardwire here instead?
     
    203207        psTrace ("psModules.objects", 4, "clipped E0 : %f +/- %f keeping %ld of %ld\n", mean, stdev, psf->psfTrendStats->clippedNvalues, e0->n);
    204208        if (psf->psfTrendMode == PM_TREND_MAP) psImageMapCleanup (trend->map);
    205         // pmSourceVisualPSFModelResid (trend, x, y, e0, srcMask);
     209        pmSourceVisualPSFModelResid (trend, x, y, e0, srcMask);
    206210
    207211        trend = psf->params->data[PM_PAR_E1];
     
    212216        psTrace ("psModules.objects", 4, "clipped E1 : %f +/- %f keeping %ld of %ld\n", mean, stdev, psf->psfTrendStats->clippedNvalues, e1->n);
    213217        if (psf->psfTrendMode == PM_TREND_MAP) psImageMapCleanup (trend->map);
    214         // pmSourceVisualPSFModelResid (trend, x, y, e1, srcMask);
     218        pmSourceVisualPSFModelResid (trend, x, y, e1, srcMask);
    215219
    216220        trend = psf->params->data[PM_PAR_E2];
     
    221225        psTrace ("psModules.objects", 4, "clipped E2 : %f +/- %f keeping %ld of %ld\n", mean, stdev, psf->psfTrendStats->clippedNvalues, e2->n);
    222226        if (psf->psfTrendMode == PM_TREND_MAP) psImageMapCleanup (trend->map);
    223         // pmSourceVisualPSFModelResid (trend, x, y, e2, srcMask);
     227        pmSourceVisualPSFModelResid (trend, x, y, e2, srcMask);
    224228
    225229        if (!status) {
     
    228232        }
    229233    }
     234    psf->psfTrendStats->clipIter = nIter;
    230235
    231236    // test dump of the psf parameters
Note: See TracChangeset for help on using the changeset viewer.