cf.Field.flip

Field.flip(axes=None)[source]

Flip dimensions of the data array and domain 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 domain’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.finalize

Next topic

cf.Field.getprop

This Page