cf.CoordinateBounds.flip

CoordinateBounds.flip(axes=None)[source]

Flip dimensions of the data array in place.

Parameters :
axes : int or sequence of ints

Flip the dimensions whose positions are given. By default all dimensions are flipped.

Returns :

None

Examples

>>> f.flip()
>>> f.flip(1)
>>> f.flip([0, 1])
>>> g = f[::-1, :, ::-1]
>>> f.flip([2, 0]).equals(g)
True

Previous topic

cf.CoordinateBounds.expand_dims

Next topic

cf.CoordinateBounds.getprop

This Page