get_reset_dark

sofia_redux.instruments.exes.utils.get_reset_dark(header)[source]

Get a reset dark image from a file on disk.

Dark files are expected to be single-extension FITS images containing raw dark data. If the input file contains multiple frames, the first one is returned as the reset dark.

If a detector section is specified in the input header, the corresponding section is extracted from the full dark image.

Parameters:
headerfits.Header

FITS header containing a DRKFILE key, specifying the dark file to read.

Returns:
dark1snumpy.ndarray

The 2D dark image.