xcdat.get_axis_dim
xcdat.get_axis_dim#
- xcdat.get_axis_dim(obj, axis)[source]#
Gets the dimension for an axis.
The coordinate name should be identical to the dimension name, so this function simply returns the coordinate name.
- Parameters
obj (Union[xr.Dataset, xr.DataArray]) – The Dataset or DataArray object.
axis (CFAxisName) – The CF-compliant axis name (“X”, “Y”, “T”, “Z”)
- Returns
str – The dimension for an axis.