This page details the meaning of the bitmasks provided with Data Release 8 of the Legacy Surveys. The bits are
enumerated as a power (i.e. 7
written in a column of bits means two-to-the-power-of-7).
BRIGHTBLOB
See also the legacypipe bitmask definitions.
Note that the difference between bits 0, 1, 2, 3 for BRIGHTBLOB
as compared to bits 1, 11, 12 and 13 for MASKBITS
is that
BRIGHTBLOB
is set based on an initial position (the source detection integer pixel peak), while MASKBITS
is set after
fitting has finished (i.e., on the final brick pixel position). This can lead to slight differences (~0.15%) in the areas
covered by the MASKBITS
and BRIGHTBLOB
masks.
Bit |
Name |
Description |
---|---|---|
0 |
|
source lies in the pixels that define a bright star (Tycho) |
1 |
|
source lies in the pixels that define medium bright star (GAIA) |
2 |
|
source lies in the pixels that define a globular cluster |
3 |
|
source lies in the pixels that define an SGA large galaxy |
MASKBITS
These definitions apply to both the values in the coadd/*/*/*maskbits*
files and to MASKBITS
columns in the Tractor
and sweeps catalogs. See also the legacypipe bitmask definitions.
Bit |
Name |
Description |
---|---|---|
0 |
|
touches a pixel that is outside the |
1 |
|
touches a pixel within the locus of a radius-magnitude relation for Tycho-2 stars or one for Gaia DR2 stars to G < 13 |
2 |
|
touches a pixel that was saturated in at least one \(g\)-band image |
3 |
|
touches a pixel that was saturated in at least one \(r\)-band image |
4 |
|
touches a pixel that was saturated in at least one \(z\)-band image |
5 |
|
touches a pixel that has any of the |
6 |
|
touches a pixel that has any of the |
7 |
|
touches a pixel that has any of the |
8 |
|
touches a pixel in a |
9 |
|
touches a pixel in a |
10 |
|
touches a pixel in a blob where we "bailed out" of source fitting |
11 |
|
touches a pixel within the locus of a radius-magnitude relation for Gaia DR2 stars to G < 16 |
12 |
|
touches a pixel in an SGA large galaxy |
13 |
|
touches a pixel in a globular cluster |
14 |
|
touches a pixel that was saturated in at least one \(i\)-band image (always zero prior to DR10) |
15 |
|
touches a pixel that has any of the |
ALLMASK_X
/ANYMASK_X
ANYMASK_X
denotes a source that touches a bad pixel in any of a set of overlapping \(X\)-band images whereas
ALLMASK_X
denotes a source that touches a bad pixel in all of a set of overlapping \(X\)-band images.
See, also, the legacypipe bitmask definitions. The
ANYMASK
and ALLMASK
bit masks are defined as follows, mostly from the CP (NOIRLab Community Pipeline) Data Quality bits,
which we map to the values in the table.
Bit |
Name |
Description |
---|---|---|
0 |
|
bad columns, hot pixels, etc. |
1 |
|
saturated |
2 |
|
interpolated |
4 |
|
single exposure cosmic ray |
6 |
|
bleed trail |
7 |
|
multi-exposure transient |
8 |
|
edge pixel |
9 |
|
edge pixel |
11 |
|
marked as touching an outlier pixel by |
WISEMASK_W1
/WISEMASK_W2
WISEMASK_W1
and WISEMASK_W2
have identical bit definitions, the only difference is that WISEMASK_W1
applies to masking in the W1 band
and WISEMASK_W2
to masking in the W2 band.
Bit |
Name |
Description |
---|---|---|
0 |
|
Bright star core and wings |
1 |
|
PSF-based diffraction spike |
2 |
|
Optical ghost |
3 |
|
First latent |
4 |
|
Second latent image |
5 |
|
AllWISE-like circular halo |
6 |
|
Bright star saturation |
7 |
|
Geometric diffraction spike |
Aaron Meisner's unWISE documentation details how these masks were derived.