IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19440


Ignore:
Timestamp:
Sep 9, 2008, 2:10:40 PM (18 years ago)
Author:
Paul Price
Message:

Masking is complicated. We can't just choose whatever we want in this
file because masks currently exist that define their own values, and
things are set up so that these values are copied, rather than proper
values set. In the long term, I'd like to revamp the mask system so
that each file or FPA has its own definition of what bits mean what.
In the mean time, I'm setting the values that are defined in the GPC1
mask file that we already have, and filling in around that.

File:
1 edited

Legend:

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

    r19135 r19440  
    11### Recipe specifying values for various mask concepts
    22
    3 # this file defines bit values for various abstract mask concepts.  It
    4 # is not necessary for all bit values to be unique.  Note that there
    5 # are two main classes: detector-intrinsic and detector-extrinsic
    6 # effects.  The former will default to DETECTOR and the latter to
    7 # RANGE if those values are not specifed
     3# This file defines bit values for various abstract mask concepts.  It
     4# is not necessary for all bit values to be unique.
    85
    96# Note that it is necessary to leave at least a single unassigned bit
    107# for internal marking (or ppImage will complain)
    118
    12 # these mask values are used for detector intrinsic effects
    13 # BLANK and FLAT will be set to DETECTOR if not specified
    14 DETECTOR        U8      0x01            # Generic detector-intrinsic defect
    15 BLANK           U8      0x01            # The pixel is blank or has no (valid) data
    16 DARK            U8      0x02            # The pixel is not correctable for dark current
    17 FLAT            U8      0x02            # The pixel is non-positive in the flat-field
    189
    19 # these mask values are used for detector extrinsic effects
    20 # SAT and BAD will be set to RANGE if not specified
    21 RANGE           U8      0x04            # The pixel is out of range in the image of interest
    22 SAT             U8      0x04            # The pixel is saturated in the image of interest
    23 BAD             U8      0x08            # The pixel is low in the image of interest
     10# The following values are TEMPORARY, to be used only until we can get
     11# the masking situation sorted out (PAP, 2008-09-09)
     12# The following values are constrained by the fact that the GPC1 mask values are set:
     13DETECTOR        U8      0x02            # Something is wrong with the detector =2
     14FLAT            U8      0x04            # Pixel doesn't flat-field properly =4
     15DARK            U8      0x40            # Pixel doesn't dark-subtract properly =64
     16# Filling in the rest with whatever makes some sense
     17BLANK           U8      0x01            # Pixel doesn't contain valid data
     18RANGE           U8      0x01            # Pixel is out-of-range of linearity
     19SAT             U8      0x01            # Pixel is saturated
     20BAD             U8      0x01            # Pixel is low
     21POOR.WARP       U8      0x08            # Pixel is poor after convolution with a bad pixel
     22BAD.WARP        U8      0x10            # Pixel is bad after convolution with a bad pixel
     23CR              U8      0x20            # Pixel contains a cosmic ray
     24GHOST           U8      0x20            # Pixel contains an optical ghost
    2425
    25 GHOST           U8      0x08            # The pixel is probably part of a ghost
    26 CR              U8      0x10            # The pixel is probably a CR
    2726
    28 BAD.WARP        U8      0x20            # The pixel is low in the image of interest
    29 POOR.WARP       U8      0x40            # The pixel is low in the image of interest
    30 
    31 # 9 total distinct concepts in here
    32 # we need one bit for MARK
     27###### The following values are what I'm aiming to have in the long term (PAP, 2008-09-09)
     28###
     29#### Detector-intrinsic; these will default to DETECTOR
     30###DETECTOR     U8      0x01            # Something is wrong with the detector
     31###DARK         U8      0x02            # Pixel doesn't dark-subtract properly
     32###FLAT         U8      0x01            # Pixel doesn't flat-field properly
     33###BLANK        U8      0x01            # Pixel doesn't contain valid data
     34###
     35#### Detector-extrinsic; these will default to RANGE
     36###RANGE        U8      0x04            # Pixel is out-of-range of linearity
     37###SAT          U8      0x04            # Pixel is saturated
     38###LOW          U8      0x04            # Pixel is low
     39###
     40#### Convolution: pixels that touched a bad pixel
     41###POOR         U8      0x08            # Pixel is poor after convolution with a bad pixel
     42###CONV         U8      0x10            # Pixel is bad after convolution with a bad pixel
     43###
     44#### Objects: real signal that should be ignored
     45###CR           U8      0x20            # Pixel contains a cosmic ray
     46###GHOST        U8      0x40            # Pixel contains an optical ghost
     47###
     48####MARK                U8      0x80            # RESERVED for MARK
Note: See TracChangeset for help on using the changeset viewer.