remove_skylight#
- excalibuhr.utils.remove_skylight(D_full, V_full, M_bpm, obj_cen, frac_mask, debug=False)[source]#
Remove sky background in a 2D detector image.
- Parameters:
D_full (array) – cropped image of one order
V_full (array) – Variance of the input image accounting for sky background and readout noise
M_bpm (array) – bad pixel map corresponding to the detector image
obj_cen (float) – location of the star on slit in pixel
frac_mask (float) – half width of the trace to be masked in fraction of slit length
- Returns:
D_cor, err_cor – image and error after the sky background removal
- Return type:
array