IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12451


Ignore:
Timestamp:
Mar 15, 2007, 1:36:14 PM (19 years ago)
Author:
eugene
Message:

added test for fitted mean, making clipSigma default to 1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotImageMedian.c

    r12436 r12451  
    6363    }
    6464
    65     psMetadataConfigPrint (stderr, recipe);
    66 
    6765    // optionally set the sigma clipping
    6866    stats->clipSigma = psMetadataLookupF32 (&status, recipe, "SKY_CLIP_SIGMA");
    6967    if (!status) {
    70         stats->clipSigma = 1.0;
     68        if ((stats->options & PS_STAT_FITTED_MEAN) || (stats->options & PS_STAT_FITTED_MEAN_V2)) {
     69            stats->clipSigma = 1.0;
     70        } else {
     71            stats->clipSigma = 3.0;
     72        }
    7173    }
    7274
     
    166168                continue;
    167169            }
    168 
    169170            psImage *submask = psImageSubset (mask, region);
    170171
     
    177178            // XXX psImageBackground will probably be renamed psImageStats
    178179            // XXX don't bother trying if there are no valid pixels...
    179             if (psImageBackground(stats, subset, submask, 0xff, rng)) {
     180
     181            if (psImageBackground(stats, subset, submask, 0xff, rng)) {
    180182                if (stats->options & PS_STAT_ROBUST_QUARTILE) {
    181183                    modelData[iy][ix] = stats->robustMedian;
Note: See TracChangeset for help on using the changeset viewer.