pcmdi_metrics.io.get_time_bounds_key
- pcmdi_metrics.io.get_time_bounds_key(ds)[source]
Get the key for the time bounds.
- Parameters:
ds (
Union[xr.Dataset,xr.DataArray]) – The input dataset or data array.- Returns:
str– The key for the time bounds.
Examples
>>> from pcmdi_metrics.io import get_time_bounds_key >>> bounds_key = get_time_bounds_key(ds)