extract_flatfield

acstools.utils_calib.extract_flatfield(prihdr, scihdu)

Extract flatfield data from PFLTFILE.

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

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

Returns:

invflat – Inverse flatfield, if any. Multiply this to apply FLATCORR.

Return type:

ndarray or None