order_trace#
- excalibuhr.utils.order_trace(det, badpix, slitlen, sub_factor=64, poly_order=2, offset=0, debug=False)[source]#
Trace the spectral orders
- Parameters:
det (array) – input flat image
badpix (array) – bad pixel map corresponding to the det image
slitlen (float) – the length of slit in pixels
sub_factor (int) – binning factor along the dispersion axis
offset (int) – shifting all the traces by a number of pixels. This is only necessary in starnge certain datasets where the order edges are not monotonous.
- Returns:
The polynomial coeffiences of upper and lower trace of each order
- Return type:
[poly_upper, poly_lower]