function shift

Shifts (and optionally wraps) X by specified values.

result = shift(X, xs, ys [, zs] [, /wrap])

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

wrap:   Pixels shifted off the array will be wrapped to the opposide side.

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.