image_shift¶
- sofia_redux.toolkit.image.adjust.image_shift(data, shifts, order=3, missing=nan)[source]¶
Shifts an image by x and y offsets
Uses
line_shift
to shift the entire image in the x-direction followed by a shift in the y-direction.- Parameters:
- dataarray_like
2 dimensional (y, x) array to shift_image
- shiftsSequence of (int or float)
[xoffset, yoffset] (additive)
- orderint
0 : integer shifts 1 : linear interpolation 2-5: spline order of interpolation. 3=cubic.
- missingint or float
Edges are treated as hard limits. Values outside of these limits will be replaced with the missing value defined here.
- Returns:
- np.ndarray
A shifted copy of the input data