IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:31:38 AM (14 years ago)
Author:
eugene
Message:

re-enable MODEL_VAR option for linear photometry fit

Location:
trunk/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • trunk/psModules/src/objects/pmPSFtryMakePSF.c

    r30044 r34085  
    231231        // XXX we are using the same stats structure on each pass: do we need to re-init it?
    232232        // XXX we hardwire this to SAMPLE stats above (psphotChoosePSF.c), hardwire here instead?
    233         psStatsOptions meanOption = psStatsMeanOption(psf->psfTrendStats->options);
    234         psStatsOptions stdevOption = psStatsStdevOption(psf->psfTrendStats->options);
    235 
     233     
    236234        pmTrend2D *trend = NULL;
    237         float mean, stdev;
    238235
    239236        // XXX we are using the same stats structure on each pass: do we need to re-init it?
     
    249246            return true;
    250247        }
     248
     249# if (PS_TRACE_ON)
     250        float mean, stdev;
     251        psStatsOptions meanOption = psStatsMeanOption(psf->psfTrendStats->options);
     252        psStatsOptions stdevOption = psStatsStdevOption(psf->psfTrendStats->options);
    251253        mean = psStatsGetValue (trend->stats, meanOption);
    252254        stdev = psStatsGetValue (trend->stats, stdevOption);
    253255        psTrace ("psModules.objects", 4, "clipped E0 : %f +/- %f keeping %ld of %ld\n", mean, stdev, psf->psfTrendStats->clippedNvalues, e0->n);
     256# endif
     257
    254258        if (psf->psfTrendMode == PM_TREND_MAP) psImageMapCleanup (trend->map);
    255259        pmSourceVisualPSFModelResid (trend, x, y, e0, srcMask);
     
    264268            return true;
    265269        }
     270# if (PS_TRACE_ON)
    266271        mean = psStatsGetValue (trend->stats, meanOption);
    267272        stdev = psStatsGetValue (trend->stats, stdevOption);
    268273        psTrace ("psModules.objects", 4, "clipped E1 : %f +/- %f keeping %ld of %ld\n", mean, stdev, psf->psfTrendStats->clippedNvalues, e1->n);
     274# endif
    269275        if (psf->psfTrendMode == PM_TREND_MAP) psImageMapCleanup (trend->map);
    270276        pmSourceVisualPSFModelResid (trend, x, y, e1, srcMask);
     
    279285            return true;
    280286        }
     287# if (PS_TRACE_ON)
    281288        mean = psStatsGetValue (trend->stats, meanOption);
    282289        stdev = psStatsGetValue (trend->stats, stdevOption);
    283290        psTrace ("psModules.objects", 4, "clipped E2 : %f +/- %f keeping %ld of %ld\n", mean, stdev, psf->psfTrendStats->clippedNvalues, e2->n);
     291# endif
    284292        if (psf->psfTrendMode == PM_TREND_MAP) psImageMapCleanup (trend->map);
    285293        pmSourceVisualPSFModelResid (trend, x, y, e2, srcMask);
Note: See TracChangeset for help on using the changeset viewer.