cf.CoordinateBounds.flip

CoordinateBounds.flip(axes=None)[source]

Flip dimensions of the data array in place.

Parameters :
axes : (sequnce of) int or str

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.fill_value

Next topic

cf.CoordinateBounds.getattr

This Page