Changeset 21183 for trunk/psphot/src/psphotReplaceUnfit.c
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReplaceUnfit.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReplaceUnfit.c
r20453 r21183 2 2 3 3 // replace the flux for sources which failed 4 bool psphotReplaceUnfitSources (psArray *sources, ps MaskType maskVal) {4 bool psphotReplaceUnfitSources (psArray *sources, psImageMaskType maskVal) { 5 5 6 6 pmSource *source; … … 31 31 32 32 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 33 ps MaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels33 psImageMaskType maskVal = psMetadataLookupImageMask(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels 34 34 assert (maskVal); 35 35 … … 55 55 56 56 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 57 ps MaskType maskVal = psMetadataLookupU8(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels57 psImageMaskType maskVal = psMetadataLookupImageMask(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels 58 58 assert (maskVal); 59 59 … … 72 72 73 73 // add source, if the source has been subtracted; do not modify state 74 bool psphotAddWithTest (pmSource *source, bool useState, ps MaskType maskVal) {74 bool psphotAddWithTest (pmSource *source, bool useState, psImageMaskType maskVal) { 75 75 76 76 // what is current state? (true : add; false : sub) … … 83 83 84 84 // sub source, if the source has been added; do not modify state 85 bool psphotSubWithTest (pmSource *source, bool useState, ps MaskType maskVal) {85 bool psphotSubWithTest (pmSource *source, bool useState, psImageMaskType maskVal) { 86 86 87 87 // what is current state? (true : sub; false : add) … … 94 94 95 95 // add or sub source to match recorded state: supply current state as true (add) or false (sub) 96 bool psphotSetState (pmSource *source, bool curState, ps MaskType maskVal) {96 bool psphotSetState (pmSource *source, bool curState, psImageMaskType maskVal) { 97 97 98 98 // what is desired state? (true : add; false : sub)
Note:
See TracChangeset
for help on using the changeset viewer.
