extract_dark

acstools.utils_calib.extract_dark(prihdr, scihdu)

Extract superdark data from DARKFILE or DRKCFILE.

Parameters:
  • prihdr (obj) – FITS primary header HDU.

  • scihdu (obj) – Extension HDU of the science image. This is only used to extract subarray data.

Returns:

dark – Superdark, if any. Subtract this to apply DARKCORR.

Return type:

ndarray or None