make_background_mask
- jwst.extract_1d.soss_extract.soss_syscor.make_background_mask(deepstack, width)[source]
Build mask of pixels containing most of the flux.
These pixels should not be used to compute the background.
- Parameters:
- deepstackndarray
Deep image of the trace constructed by combining individual integrations of the observation.
- widthint
Width, in pixels, of the trace to exclude with the mask (i.e.,
width/256for a SUBSTRIP256 observation).
- Returns:
- bkg_maskndarray
Pixel mask (boolean) in the trace based on the deepstack or non-finite in the image.