IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23498


Ignore:
Timestamp:
Mar 24, 2009, 11:05:42 AM (17 years ago)
Author:
Paul Price
Message:

Updating mask bits. Renamed BAD --> LOW to more simply conveys the intent; removed the RANGE mask keyword since it was originally intended as an alias for SAT|LOW (for non-linear pixels, SAT is suitable); renamed BAD.WARP and POOR.WARP --> CONV.BAD and CONV.POOR, since they are used for convolution/interpolation, not just warping; added SUSPECT, intended for the pixels that have been modified by burntool --- we would like to use them if possible, but will quickly throw them away if they don't behave as they ought (similar to CONV.POOR).

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/recipes/masks.16bit.config

    r23466 r23498  
    88
    99# Mask values which represent features of the detector
    10 DETECTOR        U8      0x0001          # Something is wrong with the detector
    11 FLAT            U8      0x0002          # Pixel doesn't flat-field properly
    12 DARK            U8      0x0004          # Pixel doesn't dark-subtract properly
    13 BLANK           U8      0x0008          # Pixel doesn't contain valid data
    14 CTE             U8      0x0010          # Pixel has poor cte
     10DETECTOR        U16     0x0001          # Something is wrong with the detector
     11FLAT            U16     0x0002          # Pixel doesn't flat-field properly
     12DARK            U16     0x0004          # Pixel doesn't dark-subtract properly
     13BLANK           U16     0x0008          # Pixel doesn't contain valid data
     14CTE             U16     0x0010          # Pixel has poor Charge Transfer Efficiency
    1515
    1616# Mask values which represent invalid signal ranges
    17 RANGE           U8      0x0020          # Pixel is out-of-range of linearity
    18 SAT             U8      0x0040          # Pixel is saturated
    19 BAD             U8      0x0080          # Pixel is low (can we rename this 'LOW'?)
     17SAT             U16     0x0020          # Pixel is saturated or non-linear
     18LOW             U16     0x0040          # Pixel is low
     19SUSPECT         U16     0x0080          # Pixel is suspected of being bad
    2020
    2121# Mask values which represent non-astronomical structures
    22 CR              U8      0x0100          # Pixel contains a cosmic ray
    23 SPIKE           U8      0x0200          # Pixel contains a diffraction spike
    24 GHOST           U8      0x0400          # Pixel contains an optical ghost
    25 STREAK          U8      0x0800          # Pixel contains a streak
    26 STARCORE        U8      0x1000          # Pixel contains a streak
     22CR              U16     0x0100          # Pixel contains a cosmic ray
     23SPIKE           U16     0x0200          # Pixel contains a diffraction spike
     24GHOST           U16     0x0400          # Pixel contains an optical ghost
     25STREAK          U16     0x0800          # Pixel contains a streak
     26STARCORE        U16     0x1000          # Pixel contains a bright star core
    2727
    2828# Mask values which identify pixels badly affected by convolutions and interpolations
    29 BAD.WARP        U8      0x2000          # Pixel is bad after convolution with a bad pixel
    30 POOR.WARP       U8      0x4000          # Pixel is poor after convolution with a bad pixel
     29CONV.BAD        U16     0x2000          # Pixel is bad after convolution with a bad pixel
     30CONV.POOR       U16     0x4000          # Pixel is poor after convolution with a bad pixel
    3131
     32# Spare value for temporary marking
     33# MARK          U16     0x8000          # Pixel is temporarily marked
  • trunk/ippconfig/recipes/ppStack.config

    r23212 r23498  
    55COMBINE.SYS     F32     0.08            # Relative systematic error in combination
    66COMBINE.DISCARD F32     0.2             # Discard fraction for Olympic weighted mean
    7 MASK.VAL        STR     MASK.VALUE,BAD.WARP     # Mask value of input bad pixels
     7MASK.VAL        STR     MASK.VALUE,CONV.BAD     # Mask value of input bad pixels
    88MASK.BAD        STR     BLANK           # Mask value to give bad pixels
    9 MASK.POOR       STR     POOR.WARP       # Mask value to give poor pixels
     9MASK.POOR       STR     CONV.POOR       # Mask value to give poor pixels
    1010POOR.FRACTION   F32     0.01            # Maximum fraction of bad variance for poor pixels
    1111THRESHOLD.MASK  F32     0.5             # Threshold for mask deconvolution (0..1)
  • trunk/ippconfig/recipes/ppSub.config

    r23237 r23498  
    1515
    1616# EAM : we now ignore these: BAD.WARP is always bad, POOR.WARP is always defined
    17 MASK.IN         STR     MASK.VALUE,BAD.WARP     # Mask value for input
    18 MASK.BAD        STR     BLANK           # Mask value to give bad pixels
    19 MASK.POOR       STR     POOR.WARP       # Mask value to give poor pixels
     17MASK.IN         STR     MASK.VALUE,CONV.BAD     # Mask value for input
     18MASK.BAD        STR     CONV.BAD        # Mask value to give bad pixels
     19MASK.POOR       STR     CONV.POOR       # Mask value to give poor pixels
    2020
    2121POOR.FRACTION   F32     0.10            # Maximum fraction of bad weight for poor pixels
  • trunk/psModules/src/config/pmConfigMask.c

    r23476 r23498  
    1010
    1111static pmConfigMaskInfo masks[] = {
    12     { "DETECTOR",  NULL,       0x00, true  },   // Something is wrong with the detector
    13     { "FLAT",      "DETECTOR", 0x01, true  },   // Pixel doesn't flat-field properly
    14     { "DARK",      "DETECTOR", 0x01, true  },   // Pixel doesn't dark-subtract properly
    15     { "BLANK",     "DETECTOR", 0x01, true  },   // Pixel doesn't contain valid data
    16     { "CTE",       "DETECTOR", 0x01, true  },   // Pixel has poor CTE
    17     { "RANGE",     NULL,       0x00, true  },   // Pixel is out-of-range of linearity
    18     { "SAT",       "RANGE",    0x01, true  },   // Pixel is saturated
    19     { "BAD",       "RANGE",    0x01, true  },   // Pixel is low
    20     { "CR",        NULL,       0x01, true  },   // Pixel contains a cosmic ray
    21     { "SPIKE",     NULL,       0x01, true  },   // Pixel contains a diffraction spike
    22     { "GHOST",     NULL,       0x01, true  },   // Pixel contains an optical ghost
    23     { "STREAK",    NULL,       0x01, true  },   // Pixel contains streak data
    24     { "STARCORE",  NULL,       0x01, true  },   // Pixel contains a bright star core
    25     { "BAD.WARP",  NULL,       0x01, true  },   // Pixel is bad after convolution with a bad pixel
    26     { "POOR.WARP", NULL,       0x02, false },   // Pixel is poor after convolution with a bad pixel
    27     // "LOW"  Pixel is low
    28     // "CONV" Pixel is bad after convolution with a bad pixel
     12    // Features of the detector
     13    { "DETECTOR",  NULL,       0x01, true  }, // Something is wrong with the detector
     14    { "FLAT",      "DETECTOR", 0x01, true  }, // Pixel doesn't flat-field properly
     15    { "DARK",      "DETECTOR", 0x01, true  }, // Pixel doesn't dark-subtract properly
     16    { "BLANK",     "DETECTOR", 0x01, true  }, // Pixel doesn't contain valid data
     17    { "CTE",       "DETECTOR", 0x01, true  }, // Pixel has poor CTE
     18    // Invalid signal ranges
     19    { "SAT",       NULL,       0x02, true  }, // Pixel is saturated or non-linear
     20    { "LOW",       "SAT",      0x02, true  }, // Pixel is low
     21    { "SUSPECT",   NULL,       0x04, false }, // Pixel is suspected of being bad
     22    // Non-astronomical structures
     23    { "CR",        NULL,       0x08, true  }, // Pixel contains a cosmic ray
     24    { "SPIKE",     NULL,       0x08, true  }, // Pixel contains a diffraction spike
     25    { "GHOST",     NULL,       0x08, true  }, // Pixel contains an optical ghost
     26    { "STREAK",    NULL,       0x08, true  }, // Pixel contains streak data
     27    { "STARCORE",  NULL,       0x08, true  }, // Pixel contains a bright star core
     28    // Effects of convolution and interpolation
     29    { "CONV.BAD",  NULL,       0x02, true  }, // Pixel is bad after convolution with a bad pixel
     30    { "CONV.POOR", NULL,       0x04, false }, // Pixel is poor after convolution with a bad pixel
    2931};
    3032
Note: See TracChangeset for help on using the changeset viewer.