pcmdi_metrics.io.get_axis_list

pcmdi_metrics.io.get_axis_list(ds)[source]

Retrieve coordinate key names from the dataset or data array.

Parameters:

ds (Union[xr.Dataset, xr.DataArray]) – The input dataset or data array.

Returns:

list[str] – List of coordinate key names.

Examples

>>> from pcmdi_metrics.io import get_axis_list
>>> axes = get_axis_list(ds)