extract_dark

acstools.utils_calib.extract_dark(prihdr, scihdu)

Extract superdark data from DARKFILE or DRKCFILE.

Parameters:
prihdrobj

FITS primary header HDU.

scihduobj

Extension HDU of the science image. This is only used to extract subarray data.

Returns:
darkndarray or None

Superdark, if any. Subtract this to apply DARKCORR.