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
See also
- 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
.
- axes: (sequence of)
- Returns
DomainTopology
orNone
The new construct with permuted data axes. If the operation was in-place then
None
is returned.