Changeset 18555 for trunk/psphot/src/psphotMagnitudes.c
- Timestamp:
- Jul 15, 2008, 10:25:50 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotMagnitudes.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotMagnitudes.c
r16820 r18555 8 8 psTimerStart ("psphot"); 9 9 10 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)11 psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels10 // bit-masks to test for good/bad pixels 11 psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); 12 12 assert (maskVal); 13 13 14 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 15 psMaskType mark = psMetadataLookupU8(&status, recipe, "MASK.MARK"); // Mask value for bad pixels 16 assert (mark); 14 // bit-mask to mark pixels not used in analysis 15 psMaskType markVal = psMetadataLookupU8(&status, recipe, "MARK.PSPHOT"); 16 assert (markVal); 17 18 // maskVal is used to test for rejected pixels, and must include markVal 19 maskVal |= markVal; 17 20 18 21 pmSourceMagnitudesInit (recipe); … … 35 38 for (int i = 0; i < sources->n; i++) { 36 39 pmSource *source = (pmSource *) sources->data[i]; 37 status = pmSourceMagnitudes (source, psf, photMode, maskVal , mark);40 status = pmSourceMagnitudes (source, psf, photMode, maskVal); 38 41 if (status) Nap ++; 39 42
Note:
See TracChangeset
for help on using the changeset viewer.
