readout_artifact

readout_artifact#

excalibuhr.utils.readout_artifact(det, det_err, badpix, trace, Nborder=20, sigma=3, debug=False)[source]#

Correct for readout noise artifacts that appear like vertical strips by subtracting the inter-order average value in each column on detector.

Parameters:
  • det (array) – input science image

  • det_err (array) – errors associated with the input science image

  • badpix (array) – bad pixel map corresponding to the det image

  • trace (array) – polynomials that delineate the edge of the specific order

  • Nborder (int) – number of pixels to skip at the border of orders

Returns:

det, det_err – det and det_err corrected for the detector artifact

Return type:

array