STScI Logo

Hubble Space Telescope
Data quality flags

ACS data quality flags

The following flags are used in the data quality arrays of ACS data, e.g. the *.fits[dq,1] extension, to identify good, bad, and corrected pixels. Some of these flags emanate from the "permanent" bad pixel tables (BPIXTAB), although as of 8 Oct 2004 we are using the BPIXTAB much less than before. Currently, most of these flags emanate from the generic conversion of the science data, or propogate from the data quality arrays of the various reference images used to calibrate and combine the data in the pipeline (CALACS and MultiDrizzle).

Flag Definition and source
0 Good pixels
1 Reed-Solomon decoding error; e.g. data lost during compression.
2 Data replaced by fill value; e.g. neighboring cosmic ray contaminated pixels.
4 Bad detector pixel, or beyond aperture. In the HRC BPIXTAB, this identifies a small detector defect in the "upper right" corner.
8 Masked by aperture feature, e.g. the HRC occulting finger.
16 Hot pixels (dark current greater than 0.14 e/sec); flagged in superdark DQ arrays. For a brief history of changes to this flag see the Post-Flash page.
32 Pixels determined to be unstable throughout the course of an anneal cycle. See section 3.2 of ACS ISR 2017-05.
64 Warm pixels (dark current between 0.06 - 0.14); flagged in superdark DQ arrays. For a brief history of changes to this flag see the Post-Flash page.
128 Bias structure (mostly bad columns). Since 8 Oct 2004, bias structure has been flagged in the bi-weekly superbias DQ arrays. Before 8 Oct 2004, bias structure was only flagged in an increasingly outdated BPIXTAB which was created in July 2002.
256 Both full-well (useable at higher gain setting) and A-to-D (never useable) saturated pixels are flagged by ATODCORR, based on the CCDTAB. But A-to-D saturation is also flagged 2048, so it can be distinguished from full-well saturation. Also, since 8 Oct 2004, full-well saturated pixels in superdarks are flagged in their corresponding DQ arrays (note they are also flagged as hot pixels with flag 16). Before 8 Oct 2004, saturated pixels in the superdarks were flagged only in a BPIXTAB created in July 2002 (which was getting outdated).
512 Bad pixel in reference file. Used in the flatfield DQ arrays to indicate a portion of the flat which is not defined or not calibrated with the same accuracy as the other regions, often around the detector edges. Used for F892N and WFC polarizer observations, where the filter only subtends a portion of the chip. Used to identify dust mote replacement patches.
1024 Sink pixels or pixels affected by sink pixel charge traps. See ACS ISR 2017-01.
2048 A-to-D saturated pixels (never useable, even at higher gain settings) are flagged by ATODCORR, based on the CCDTAB.
4096 Cosmic rays and detector artifacts rejected during MultiDrizzle image combination. These flags are not present in the drizzled output images (*drz.fits). Rather, they are propogated "backwards" to the DQ arrays of the calibrated input images (*flt.fits). Only associated data from pointing pattern "forms" and CR-SPLITs are automatically combined by MultiDrizzle in the pipeline -- POS TARG patterns are not.
8192 Cosmic rays rejected during the combination of CR-SPLIT images in the pipeline (CALACS/ACSREJ) -- flagged in the DQ arrays of *crj.fits images.
16384 reserved; can be used for manual flagging by the user, e.g. for uncorrected detector artifacts, satellite trails, optical ghosts, etc.
superdark superdark flags

Left: A superdark with warm and hot pixels (and their CTE tails), and saturated columns. Right: The corresponding flagging of dark features in the data quality [DQ] array of the superdark. Click to enlarge images.