shift_set

sofia_redux.instruments.forcast.register_datasets.shift_set(dataset, offset, newshape=None, missing=nan)[source]

Shifts an individual data set

Note that the shift order is read via sofia_redux.instruments.forcast.getpar in sofia_redux.instruments.forcast.shift.

Integration time is taken from the maximum normalization value. This should not be necessary since it should have been calculated at sofia_redux.instruments.forcast.merge, but is done anyway.

Parameters:
datasettuple

data : numpy.ndarray header : astropy.io.fits.header.Header variance : numpy.ndarray, optional normalization : numpy.ndarray, optional

newshapearray_like

(y, x) shape of any output arrays. Must be greater than or equal to the original image shape in each dimension. Original images are inserted in the bottom-left (0, 0) corner of the expanded image before shifting.

offsetarray_like

(x, y) shift

missingfloat, optional

value with which to fill the right and upper borders after expansion.

Returns:
tuple

shifted version of input dataset