grizli.utils.apply_flt_dq(filename, replace=('.fits', '.dq.fits.gz'), verbose=True, or_combine=False)[source]

Read and apply the compact exposure information file

filename : str

FLT/FLC filename.

replace : (str, str)

Replace arguments for output DQ filename:

>>> output_filename = filename.replace(replace[0], replace[1])
or_combine : bool

If True, then apply DQ data in output_filename with OR logic.

If False, then reset the DQ extensions to be exactly those in output_filename.

Writes header and compact DQ array to output_filename.