sloop.cf.get_x_dim_name

sloop.cf.get_x_dim_name(ds)[source]

Get the X dimension name in a xarray.Dataset or a xarray.DataArray

Parameters

ds (xarray.DataArray or xarray.Dataset) –

Returns

str

Return type

Name of X dimension