cfdm.DomainTopology.transpose

DomainTopology.transpose(*args, **kwargs)[source]

Permute the axes of the data array.

In this context, the data only has one axis, the first one. The second data dimension can not be moved and may not be specified. Therefore, the transpose method never changes the data.

New in version (cfdm): 1.11.0.0

Parameters
axes: (sequence of) int, optional

The new axis order. By default the order is reversed.

Each axis is identified by its integer position in the data. Negative integers counting from the last position are allowed.

Parameter example:

axes=0

Parameter example:

axes=-1

Parameter example:

axes=[1, -2]

inplace: bool, optional

If True then do the operation in-place and return None.

Returns
DomainTopology or None

The new construct with permuted data axes. If the operation was in-place then None is returned.