Changeset 10859 for trunk/psModules/src/objects/pmPSFtry.c
- Timestamp:
- Dec 29, 2006, 5:27:19 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSFtry.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSFtry.c
r10853 r10859 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.3 2$ $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 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 208 208 209 209 // 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); 211 211 stats->clipSigma = 3.0; 212 212 stats->clipIter = 3; … … 214 214 // linear clipped fit of chisq trend vs flux 215 215 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); 217 217 218 218 psFree (flux); … … 262 262 263 263 // 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); 265 265 stats->min = 1.0; 266 266 stats->max = 3.0; … … 363 363 // mask is currently updated for each pass. this is inconsistent? 364 364 365 psStats *stats = psStatsAlloc (PS_STAT_ SAMPLE_MEAN | PS_STAT_SAMPLE_STDEV);365 psStats *stats = psStatsAlloc (PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV); 366 366 367 367 // skip the unfitted parameters (X, Y, Io, Sky)
Note:
See TracChangeset
for help on using the changeset viewer.
