Changeset 18555 for trunk/psphot/src/psphotSourceStats.c
- Timestamp:
- Jul 15, 2008, 10:25:50 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSourceStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSourceStats.c
r18241 r18555 9 9 psTimerStart ("psphot"); 10 10 11 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)12 psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels11 // bit-masks to test for good/bad pixels 12 psMaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); 13 13 assert (maskVal); 14 14 15 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 16 psMaskType mark = psMetadataLookupU8(&status, recipe, "MASK.MARK"); // Mask value for bad pixels 17 assert (mark); 15 // bit-mask to mark pixels not used in analysis 16 psMaskType markVal = psMetadataLookupU8(&status, recipe, "MARK.PSPHOT"); 17 assert (markVal); 18 19 // maskVal is used to test for rejected pixels, and must include markVal 20 maskVal |= markVal; 18 21 19 22 // determine properties (sky, moments) of initial sources … … 67 70 // measure a local sky value 68 71 // the local sky is now ignored; kept here for reference only 69 status = pmSourceLocalSky (source, PS_STAT_SAMPLE_MEDIAN, INNER, maskVal, mark );72 status = pmSourceLocalSky (source, PS_STAT_SAMPLE_MEDIAN, INNER, maskVal, markVal); 70 73 if (!status) { 71 74 psFree (source); … … 77 80 // measure the local sky variance (needed if noise is not sqrt(signal)) 78 81 // XXX EAM : this should use ROBUST not SAMPLE median, but it is broken 79 status = pmSourceLocalSkyVariance (source, PS_STAT_SAMPLE_MEDIAN, INNER, maskVal, mark );82 status = pmSourceLocalSkyVariance (source, PS_STAT_SAMPLE_MEDIAN, INNER, maskVal, markVal); 80 83 if (!status) { 81 84 psFree (source);
Note:
See TracChangeset
for help on using the changeset viewer.
