merge_shift¶
- sofia_redux.instruments.forcast.merge_shift.merge_shift(data, chopnod, header=None, variance=None, nmc=False, maxshift=999999999.0, normmap=None, resize=True)[source]¶
Merge an image by shifting the input data by the input values
Add each frame of the data to a 2-d summation frame in a manner appropriate to the current reduction scheme. Finally, average by the number of frames.
- Parameters:
- datanumpy.ndarray
Data to be merged i.e. frame with target images (nrow, ncol)
- chopnodarray-like
Chop/Nod shifts [chopx, chopy, nodx, nody]
- headerastropy.io.fits.header.Header, optional
FITS header to update
- variancenumpy.ndarray, optional
Propagate provided variance (nrow, ncol)
- nmcbool, optional
Set to True if NMC image
- maxshiftfloat, optional
Will not merge if nod or chop distance is greater than maxshift.
- normmapnumpy.ndarray, optional
Array to hold the normalization map
- resizebool, optional
If True, resize the output result to accomodate shifting
- Returns:
- numpy.ndarray, numpy.ndarray
The merged image (nrow, ncol) i.e. frame with images of the object at chop and nod positions merged.
The propagated variance image (nrow, ncol)