cf.Variable.flip¶
-
Variable.
flip
(axes=None, i=False)[source]¶ Flip dimensions of the data array in place.
See also
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