This is documentation for an old release of SciPy (version 0.7.). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.ndimage.interpolation.shift

scipy.ndimage.interpolation.shift(input, shift, output_type=None, output=None, order=3, mode='constant', cval=0.0, prefilter=True)

Shift an array.

The array is shifted using spline interpolation of the requested order. Points outside the boundaries of the input are filled according to the given mode. The parameter prefilter determines if the input is pre-filtered before interpolation, if False it is assumed that the input is already filtered.