Changeset 18555 for trunk/psphot/src/psphotApResid.c
- Timestamp:
- Jul 15, 2008, 10:25:50 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotApResid.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotApResid.c
r17288 r18555 25 25 } 26 26 27 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)28 psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels27 // bit-masks to test for good/bad pixels 28 psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); 29 29 assert (maskVal); 30 30 31 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 32 psMaskType mark = psMetadataLookupU8(&status, recipe, "MASK.MARK"); // Mask value for bad pixels 33 assert (mark); 31 // bit-mask to mark pixels not used in analysis 32 psMaskType markVal = psMetadataLookupU8(&status, recipe, "MARK.PSPHOT"); 33 assert (markVal); 34 35 // maskVal is used to test for rejected pixels, and must include markVal 36 maskVal |= markVal; 34 37 35 38 // S/N limit to perform full non-linear fits … … 65 68 psf->growth = pmGrowthCurveAlloc (PSF_FIT_PAD, 100.0, REF_RADIUS); 66 69 67 if (!pmGrowthCurveGenerate (readout, psf, IGNORE_GROWTH, maskVal, mark )) {70 if (!pmGrowthCurveGenerate (readout, psf, IGNORE_GROWTH, maskVal, markVal)) { 68 71 psError(PSPHOT_ERR_APERTURE, false, "Fitting aperture corrections"); 69 72 psFree(psf->growth); psf->growth = NULL; … … 92 95 // get growth-corrected, apTrend-uncorrected magnitudes in scaled apertures 93 96 // will fail if below S/N threshold or model is missing 94 if (!pmSourceMagnitudes (source, psf, photMode, maskVal , mark)) {97 if (!pmSourceMagnitudes (source, psf, photMode, maskVal)) { 95 98 Nskip ++; 96 99 psTrace ("psphot", 3, "skip : bad source mag");
Note:
See TracChangeset
for help on using the changeset viewer.
