xoa.coords.get_order

Contents

xoa.coords.get_order#

xoa.coords.get_order(da)[source]#

Get the dimension order as a string like "tzy-x"

Unknown dimensions are represented by "-".

Parameters:

da (xarray.DataArray)

Returns:

str

Example

>>> da = xr.DataArray(np.ones((2, 3, 4)), dims=("time", "lat", "lon"))
>>> get_order(da)
'tyx'

See also

get_dim_types