cf.Field.flip

Field.flip(axes=None)

Flip dimensions of the data array and space in place.

Parameters :
axes : sequence, optional

The dimensions to be flipped. By default all dimensions are flipped. Dimensions to be flipped may be identified with one of, or a sequence of any combination of:

  • A dimension’s standard name.
  • The integer position of a dimension in the data array.
  • The field’s space’s internal name of a dimension
Returns :

None

Examples

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

Previous topic

cf.Field.expand_dims

Next topic

cf.Field.getprop

This Page