pcmdi_metrics.io.get_time_bounds

pcmdi_metrics.io.get_time_bounds(ds)[source]

Extract time bounds data.

Parameters:

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

Returns:

xr.DataArray – The time bounds data.

Examples

>>> from pcmdi_metrics.io import get_time_bounds
>>> time_bounds = get_time_bounds(ds)