subtract_background¶
- sofia_redux.instruments.forcast.stack.subtract_background(data, header=None, mask=None, stat='mode')[source]¶
Remove background from data
- Parameters:
- datanumpy.ndarray
input data (nrow, ncol)
- headerastropy.io.fits.header.Header, optional
FITS header to update with HISTORY messages
- masknumpy.ndarray, optional
mask defining which pixels to use for background calculation. True=Use.
- stat{‘mode’, ‘median’}
Statistic to use in calculating the residual background.
- Returns:
- numpy.ndarray
background subtracted data (nrow, ncol)