add_stacks¶
- sofia_redux.instruments.forcast.stack.add_stacks(data, header, variance=None)[source]¶
Add data frames together at the same stack (position)
The number of frames returned in the output will be equal to floor(nframes / nstacks) if OTMODE is AD (All Destructive). For SUR mode, the original data will be returned.
- Parameters:
- datanumpy.ndarray
3d data array to sum (nframes, nrow, ncol)
- headerastropy.io.fits.header.Header
FITS header
- variancenumpy.ndarray, optional
3d variance array to propagate (nframes, nrow, ncol)
- Returns:
- 2-tuple
summed data array (npos, nrow, ncol) propagate variance array (npos, nrow, ncol)