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.