cf.Field.flip

Field.flip(axes=None, i=False, **kwargs)[source]

Flip (reverse the direction of) axes of the field.

Parameters:
axes, kwargs : optional

Select the axes. The axes are those which would be selected by this call of the field’s axes method: f.axes(axes, **kwargs). See cf.Field.axes for details.

i : bool, optional

If True then update the field in place. By default a new field is created.

Returns:

out : cf.Field

Examples:
>>> f.flip()
>>> f.flip('time')
>>> f.flip(1)
>>> f.flip('dim2')
>>> f.flip(['time', 1, 'dim2'])

Previous topic

cf.Field.fill_value

Next topic

cf.Field.floor

This Page