cf.DimensionCoordinate.flip

DimensionCoordinate.flip(axes=None)[source]

Flip dimensions of the data array and bounds in place.

The trailing dimension of the bounds is flipped if and only if the coordinate is 1 or 0 dimensional.

Parameters :
axes : (sequence of) int or str, optional

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

Returns :
out : list of ints

The axes which were flipped, in arbitrary order.

Examples

>>> c.flip()
>>> c.flip(0)

Previous topic

cf.DimensionCoordinate.fill_value

Next topic

cf.DimensionCoordinate.get_bounds

This Page