apply_flt_dq

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

Parameters
filenamestr

FLT/FLC filename.

replace(str, str)

Replace arguments for output DQ filename:

>>> output_filename = filename.replace(replace[0], replace[1])
or_combinebool

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.

verbosebool, optional

If True, print verbose output. Default is False.

Returns
Writes header and compact DQ array to output_filename.