cf.flip

cf.flip(x, *args, **kwargs)[source]

Return a new variable with flipped data array axes.

The variable must have a copy method and an in-place flip method, such as a cf.Field object. Any optional positional and keyword arguments are passed unchanged to the variable’s flip method.

See the variable’s flip method for details.

Parameters :
x :

The input variable.

args, kwargs :

See the input variable’s flip method.

Returns :
out :

A new variable with size 1 axes inserted into the data array.

Previous topic

cf.expand_dims

Next topic

cf.squeeze

This Page