master_flat_norm

master_flat_norm#

excalibuhr.utils.master_flat_norm(det, badpix, trace, slit_meta, slitlen=None, debug=False)[source]#

normalize master flat frame and extract balze function

Parameters:
  • det (array) – master flat frame

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

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

  • slit_meta (array) – polynomials that describing the slit curvature as a function of the dispersion axis

  • slitlen (float) – the length of slit in pixels

Returns:

flat_norm, blazes – normalized flat frame and blaze functions

Return type:

array