### Recipe specifying values for various mask concepts

# this file defines bit values for various abstract mask concepts.  It
# is not necessary for all bit values to be unique.  Note that there
# are two main classes: detector-intrinsic and detector-extrinsic
# effects.  The former will default to DETECTOR and the latter to
# RANGE if those values are not specifed

# Note that it is necessary to leave at least a single unassigned bit
# for internal marking (or ppImage will complain)

# these mask values are used for detector intrinsic effects
# BLANK and FLAT will be set to DETECTOR if not specified
DETECTOR	U8	0x01		# Generic detector-intrinsic defect
BLANK		U8	0x01		# The pixel is blank or has no (valid) data
DARK		U8	0x02		# The pixel is not correctable for dark current
FLAT		U8	0x02		# The pixel is non-positive in the flat-field

# these mask values are used for detector extrinsic effects
# SAT and BAD will be set to RANGE if not specified
RANGE		U8	0x04		# The pixel is out of range in the image of interest
SAT		U8	0x04		# The pixel is saturated in the image of interest
BAD		U8	0x04		# The pixel is low in the image of interest

CR		U8	0x08		# The pixel is probably a CR
GHOST		U8	0x08		# The pixel is probably a CR


BAD.WARP	U8	0x04		# The pixel is low in the image of interest
POOR.WARP	U8	0x04		# The pixel is low in the image of interest
