pcmdi_metrics.io.get_data_list
- pcmdi_metrics.io.get_data_list(ds)[source]
Retrieve data variable 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 data variable names.
Examples
>>> from pcmdi_metrics.io import get_data_list >>> data_list = get_data_list(ds)