function shift
Shifts (and optionally wraps) X by specified values.
Syntax
result = shift(X, xs, ys [, zs] [, /wrap])
Arguments
X: | The array to be shifted |
xs: | Shift vector in the first dimension |
ys: | Shift vector in the second dimension |
zs: | Shift vector in the third dimension |
Switches
wrap: | Pixels shifted off the array will be wrapped to the opposide side. |
Notes
If either shift vector is non-integer, a subpixel shift is applied and the array type changed to R4. Subpixel shift is only supported in 2 dimensions.