trace_rectify_interp#
- excalibuhr.utils.trace_rectify_interp(im_list, trace, debug=False)[source]#
Correct for the curvature of traces by interpolating to a pixel-grid pivoting on the middle of the detector
- Parameters:
im_list (array) – input image or a list of images to be corrected
trace (array) – polynomials that delineate the edge of the specific order
- Returns:
im_rect – rectified images where the trace is horizontal on detector
- Return type:
array