cf.Field.flip

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

Flip axes of the field in place.

Data arrays which span the given axes have their values reversed along those axes.

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.

Returns :

None

Examples

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

Previous topic

cf.Field.finalize

Next topic

cf.Field.getattr

This Page