romanimpreprocess.utils.flatutils
Utilities for handling flat fields.
(Recall that if we are applying an IPC operator, the flat needs to be IPC-deconvolved.)
Functions
- get_flat
Flat field in DN units, with IPC deconvolution enabled.
Functions
|
Gets the flat field in DN, including IPC deconvolution if requested. |
Module Contents
- get_flat(caldir, meta, pdq, ipc_deconvolve=True)[source]
Gets the flat field in DN, including IPC deconvolution if requested.
Pixels may be flagged if there are problems (ignored if pdq is None).
- Parameters:
caldir (dict) – Locations of calibration files.
meta (dict) – Metadata (must contain
'nborder').pdq (np.array) – 2D array, flags (pixel data quality)
ipc_deconvolve (bool, optional) – Deconvolve the IPC?
- Returns:
2D flat image in DN-based units.
- Return type:
np.array