cf.Data.roll

Data.roll(axis, shift, inplace=False, i=False)[source]

Roll array elements along a given axis.

Equivalent in function to numpy.roll.

Parameters
axis: int

Select the axis over which the elements are to be rolled. removed. The axis parameter is an integer that selects the axis corresponding to the given position in the list of axes of the data.

Parameter example:

Convolve the second axis: axis=1.

Parameter example:

Convolve the last axis: axis=-1.

inplace: bool, optional

If True then do the operation in-place and return None.

i: deprecated at version 3.0.0

Use the inplace parameter instead.

Returns

Data or None