- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ppSub/src
- Property svn:ignore
-
old new 13 13 ppSubErrorCodes.c 14 14 ppSubVersionDefinitions.h 15 ppSubConvolve
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/ppSub/src/ppSubSetMasks.c
r23740 r27840 28 28 psImageMaskType maskValue, markValue; // Mask values 29 29 if (!pmConfigMaskSetBits(&maskValue, &markValue, config)) { 30 psError(P S_ERR_UNKNOWN, false, "Unable to determine mask value.");30 psError(PPSUB_ERR_CONFIG, false, "Unable to determine mask value."); 31 31 return false; 32 32 } 33 33 34 34 // Set the mask bits needed by psphot (in psphot recipe) 35 psphotSetMaskRecipe (config, maskValue, markValue);35 psphotSetMaskRecipe(config, maskValue, markValue); 36 36 37 37 // Look up recipe values … … 79 79 // Mask the NAN values 80 80 if (!pmReadoutMaskNonfinite(inRO, satValue)) { 81 psError(P S_ERR_UNKNOWN, false, "Unable to mask non-finite pixels in input.");81 psError(PPSUB_ERR_DATA, false, "Unable to mask non-finite pixels in input."); 82 82 return false; 83 83 } 84 84 if (!pmReadoutMaskNonfinite(refRO, satValue)) { 85 psError(P S_ERR_UNKNOWN, false, "Unable to mask non-finite pixels in reference.");85 psError(PPSUB_ERR_DATA, false, "Unable to mask non-finite pixels in reference."); 86 86 return false; 87 87 } … … 94 94 psImageInterpolateMode interpMode = psImageInterpolateModeFromString(interpModeStr); // Interp 95 95 if (interpMode == PS_INTERPOLATE_NONE) { 96 psError(P S_ERR_BAD_PARAMETER_VALUE, false, "Unknown interpolation mode: %s", interpModeStr);96 psError(PPSUB_ERR_CONFIG, false, "Unknown interpolation mode: %s", interpModeStr); 97 97 return false; 98 98 } … … 104 104 // Interpolate over bad pixels, so the bad pixels don't explode 105 105 if (!pmReadoutInterpolateBadPixels(inRO, maskVal, interpMode, poorFrac, maskPoor, maskBad)) { 106 psError(P S_ERR_UNKNOWN, false, "Unable to interpolate bad pixels for input image.");106 psError(PPSUB_ERR_DATA, false, "Unable to interpolate bad pixels for input image."); 107 107 return false; 108 108 } 109 109 if (!pmReadoutInterpolateBadPixels(refRO, maskVal, interpMode, poorFrac, maskPoor, maskBad)) { 110 psError(P S_ERR_UNKNOWN, false, "Unable to interpolate bad pixels for reference image.");110 psError(PPSUB_ERR_DATA, false, "Unable to interpolate bad pixels for reference image."); 111 111 return false; 112 112 }
Note:
See TracChangeset
for help on using the changeset viewer.
