slit_curve

Contents

slit_curve#

excalibuhr.utils.slit_curve(fpet, une, badpix, trace, wlen_min, wlen_max, sub_factor=16, une_xcorr=False, wlen_id=None, debug=False)[source]#

Trace the curvature of the slit and determine the wavelength solution

Parameters:
  • fpet (array) – Fabry-Perot (fpet) image

  • une (array) – uranium-neon lamp (une) image

  • badpix (array) – bad pixel map

  • trace (array) – the trace for order identification

  • wlen_min (array) – the min and max wavelngth of each order from header for an initial wavelength solution

  • wlen_max (array) – the min and max wavelngth of each order from header for an initial wavelength solution

  • sub_factor (int) – binning factor along the cross-dispersion axis

  • une_xcorr (bool) – boolean flag indicating whether to use cross-correlation with the une lamp to correct the wavelength solution

  • wlen_id (str) – wavelength setting

  • debug (bool) – boolean flag indicating the debug mode

Returns:

tilt, x_fpet, wlen – the slit tilt, the positions of the FP line peaks, and the corrected wavelength.

Return type:

array