extract_blaze#
- excalibuhr.utils.extract_blaze(im, badpix, trace, f0=0.5, fw=0.48, sigma=3)[source]#
Collpase 2D image along the cross-dispersion direction in an order-by-order basis.
- Parameters:
im (array) – input flat image to be normalized
badpix (array) – bad pixel map corresponding to the input image
trace (array) – polynomials that delineate the edge of the specific order
- Returns:
blaze_orders – 1D blaze function of each order
- Return type:
array