Changeset 5952 for trunk/psphot/src/psphotApResid.c
- Timestamp:
- Jan 9, 2006, 8:40:35 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotApResid.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotApResid.c
r5837 r5952 59 59 stats->clipIter = 3; 60 60 61 // first clip out objects which are too far from the median 62 stats->clipIter = 1; 63 maskToConstant (psf->ApTrend); 64 psf->ApTrend = psVectorClipFitPolynomial3D (psf->ApTrend, stats, mask, PSFTRY_MASK_ALL, apResid, NULL, xPos, yPos, rflux); 65 66 // next, fit just SkyBias and clip out objects which are too far from the median 67 stats->clipIter = 2; 68 maskToSkyBias (psf->ApTrend); 69 psf->ApTrend = psVectorClipFitPolynomial3D (psf->ApTrend, stats, mask, PSFTRY_MASK_ALL, apResid, NULL, xPos, yPos, rflux); 70 71 // finally, fit x, y, SkyBias and clip out objects which are too far from the median 72 stats->clipIter = 2; 73 maskToDefault (psf->ApTrend); 74 psf->ApTrend = psVectorClipFitPolynomial3D (psf->ApTrend, stats, mask, PSFTRY_MASK_ALL, apResid, NULL, xPos, yPos, rflux); 75 61 76 // linear clipped fit of apResid to rflux, xPos, yPos 77 # if (0) 62 78 psf->ApTrend = psVectorClipFitPolynomial3D (psf->ApTrend, stats, mask, PSFTRY_MASK_ALL, apResid, NULL, xPos, yPos, rflux); 63 79 psf->skyBias = psf->ApTrend->coeff[0][0][1] / (M_PI * PS_SQR(RADIUS)); … … 65 81 psf->dApResid = stats->sampleStdev; 66 82 psf->ApTrend->coeff[0][0][1] = 0; 83 # endif 67 84 68 85 /*
Note:
See TracChangeset
for help on using the changeset viewer.
