pcmdi_metrics.io.get_latitude_key

pcmdi_metrics.io.get_latitude_key(ds)[source]

Get the key for the latitude dimension.

Parameters:

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

Returns:

str – The key for the latitude dimension.

Examples

>>> from pcmdi_metrics.io import get_latitude_key
>>> lat_key = get_latitude_key(ds)