background_scale

sofia_redux.instruments.forcast.stack.background_scale(data, header, mask=None)[source]

Return frame scale levels

Parameters:
datanumpy.ndarray

input data array (nframe, nrow, ncol)

headerastropy.io.fits.header.Header
masknumpy.ndarray, optional

mask to pass into sofia_redux.instruments.forcast.background (nrow, ncol). Defines pixels to include in background calculation (True=include)

Returns:
numpy.array

scale factors for each frame or None if not applied