cf.CellMeasure.flip

CellMeasure.flip(axes=None, i=False)[source]

Flip dimensions of the data array in place.

Parameters:
axes : (sequence of) int

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

Returns:

out : cf.Variable

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

Previous topic

cf.CellMeasure.fill_value

Next topic

cf.CellMeasure.getattr

This Page