Changeset 6918 for trunk/psphot/src/psphotApResid.c
- Timestamp:
- Apr 19, 2006, 5:03:11 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotApResid.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotApResid.c
r6866 r6918 20 20 // measure the aperture loss as a function of radius for PSF 21 21 float REF_RADIUS = psMetadataLookupF32 (&status, recipe, "PSF_REF_RADIUS"); 22 psf->growth = pmGrowthCurveAlloc (3.0, 50.0, REF_RADIUS);22 psf->growth = pmGrowthCurveAlloc (3.0, 100.0, REF_RADIUS); 23 23 psphotGrowthCurve (readout, psf); 24 24 … … 86 86 // 3hi/1lo sigma clipping on the rflux vs metric fit 87 87 psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV); 88 stats->min = 3.0;88 stats->min = 2.0; 89 89 stats->max = 3.0; 90 90 … … 215 215 216 216 // measure scatter for sources with dMag < 0.01 (S/N = 100) 217 int Nkeep = 0; 217 218 psStats *residStats = psStatsAlloc (PS_STAT_SAMPLE_STDEV); 218 219 for (int i = 0; i < dMag->n; i++) { 219 220 if (dMag->data.F64[i] > 0.01) { 220 221 mask->data.U8[i] |= 0x02; 221 } 222 } 223 if (! mask->data.U8[i]) Nkeep ++; 222 224 } 223 225 residStats = psVectorStats (residStats, resid, NULL, mask, 0x03); … … 241 243 242 244 psLogMsg ("psphot.apresid", 3, "measure full-frame aperture residual: %f sec\n", psTimerMark ("psphot")); 243 psLogMsg ("psphot.apresid", 4, "aperture residual: %f +/- %f : %f bias, %f skysat\n", psf->ApResid, psf->dApResid, psf->skyBias, psf->skySat); 245 psLogMsg ("psphot.apresid", 4, "aperture residual: %f +/- %f : %f bias, %f skysat (%d of %d used)\n", 246 psf->ApResid, psf->dApResid, psf->skyBias, psf->skySat, Nkeep, Npsf); 244 247 psLogMsg ("psphot.apresid", 4, "apresid trends: %f %f %f %f %f\n", 245 248 1e3*psf->ApTrend->coeff[1][0][0][0],
Note:
See TracChangeset
for help on using the changeset viewer.
