peak_slit_fraction#
- excalibuhr.utils.peak_slit_fraction(im, trace)[source]#
locate the peak signal along the slit
- Parameters:
im (array) – detector image
trace (array) – polynomials that delineate the edge of the specific order
- Returns:
frac – the fraction of peak signal along the slit (frac=0 means the bottom, and 1 at the top)
- Return type:
float