IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 29, 2006, 5:27:19 PM (19 years ago)
Author:
magnier
Message:

setting the stats for clipping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPSFtry.c

    r10853 r10859  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-12-29 18:31:11 $
     7 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-12-30 03:27:19 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    208208
    209209    // use 3hi/3lo sigma clipping on the chisq fit
    210     psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV);
     210    psStats *stats = psStatsAlloc (PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);
    211211    stats->clipSigma = 3.0;
    212212    stats->clipIter = 3;
     
    214214    // linear clipped fit of chisq trend vs flux
    215215    bool result = psVectorClipFitPolynomial1D(psfTry->psf->ChiTrend, stats, mask, 1, chisq, NULL, flux);
    216     psLogMsg ("pmPSFtry", 4, "chisq vs flux fit: %f +/- %f\n", stats->sampleMedian, stats->sampleStdev);
     216    psLogMsg ("pmPSFtry", 4, "chisq vs flux fit: %f +/- %f\n", stats->robustMedian, stats->robustStdev);
    217217
    218218    psFree (flux);
     
    262262
    263263    // use 3hi/1lo sigma clipping on the r2rflux vs metric fit
    264     psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV);
     264    psStats *stats = psStatsAlloc (PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);
    265265    stats->min = 1.0;
    266266    stats->max = 3.0;
     
    363363    // mask is currently updated for each pass. this is inconsistent?
    364364
    365     psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_STDEV);
     365    psStats *stats = psStatsAlloc (PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);
    366366
    367367    // skip the unfitted parameters (X, Y, Io, Sky)
Note: See TracChangeset for help on using the changeset viewer.