spectral_rectify_interp#
- excalibuhr.utils.spectral_rectify_interp(im_list, badpix, trace, slit_meta, reverse=False, debug=False)[source]#
Correct for the slit-tilt by interpolating to a pixel-grid
- Parameters:
im_list (array) – input image or a list of image and variance to be corrected
badpix (array) – bad pixel map corresponding to the 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
reverse (bool) – if True, interpolate back to the tilted slit
- Returns:
im_rect_spec – rectified images where the slit image is vertical on detector
- Return type:
array