Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
## These are the mask bits in ANYMASK / ALLMASK.
#
# From: http://www.noao.edu/noao/staff/fvaldes/CPDocPrelim/PL201_3.html
# 1 -- detector bad pixel InstCal
# 1 -- detector bad pixel/no data Resampled
# 1 -- No data Stacked
# 2 -- saturated InstCal/Resampled
# 4 -- interpolated InstCal/Resampled
# 16 -- single exposure cosmic ray InstCal/Resampled
# 64 -- bleed trail InstCal/Resampled
# 128 -- multi-exposure transient InstCal/Resampled
DQ_BITS = dict(badpix = 1,
satur = 2,
interp = 4,
cr = 16, # 0x 10
bleed = 64, # 0x 40
trans = 128, # 0x 80
edge = 256, # 0x100
edge2 = 512, # 0x200
# Added by our stage_outliers rejection
outlier = 2048, # 0x800
)
# Bit codes for why a CCD got cut (survey-ccds file, ccd_cuts column)
CCD_CUTS = dict(
err_legacyzpts = 0x1,
not_grz = 0x2,
not_third_pix = 0x4, # Mosaic3 one-third-pixel interpolation problem
exptime = 0x8,
ccdnmatch = 0x10,
zpt_diff_avg = 0x20,
zpt_small = 0x40,
zpt_large = 0x80,
sky_is_bright = 0x100,
badexp_file = 0x200,
phrms = 0x400,
radecrms = 0x800,
seeing_bad = 0x1000,
early_decam = 0x2000,
depth_cut = 0x4000,
too_many_bad_ccds = 0x8000,
flagged_in_des = 0x10000,
phrms_s7 = 0x20000,
)
FITBITS = dict(
FORCED_POINTSOURCE = 0x1,
FIT_BACKGROUND = 0x2,
HIT_RADIUS_LIMIT = 0x4,
HIT_SERSIC_LIMIT = 0x8,
FROZEN = 0x10, # all source parameters were frozen at ref-cat values
BRIGHT = 0x20,
MEDIUM = 0x40,
GAIA = 0x80,
TYCHO2 = 0x100,
LARGEGALAXY = 0x200,
WALKER = 0x400,
RUNNER = 0x800,
GAIA_POINTSOURCE = 0x1000,
ITERATIVE = 0x2000,
)
# Outlier mask bit values
OUTLIER_POS = 1
OUTLIER_NEG = 2
# Bits in the "maskbits" data product
MASKBITS = dict(
NPRIMARY = 0x1, # not PRIMARY
BRIGHT = 0x2,
SATUR_G = 0x4,
SATUR_R = 0x8,
SATUR_Z = 0x10,
ALLMASK_G = 0x20,
ALLMASK_R = 0x40,
ALLMASK_Z = 0x80,
WISEM1 = 0x100, # WISE masked
WISEM2 = 0x200,
BAILOUT = 0x400, # bailed out of processing
MEDIUM = 0x800, # medium-bright star
GALAXY = 0x1000, # SGA large galaxy
CLUSTER = 0x2000, # Cluster catalog source
SATUR_I = 0x4000,
ALLMASK_I = 0x8000,
)
# Bits in the "brightblob" bitmask
IN_BLOB = dict(
BRIGHT = 0x1, # "bright" star
MEDIUM = 0x2, # "medium-bright" star
CLUSTER = 0x4, # Globular cluster
GALAXY = 0x8, # large SGA galaxy
)