pcmdi_metrics.io.get_time pcmdi_metrics.io.get_time(ds)[source] Extract time coordinate data. Parameters: ds (Union[xr.Dataset, xr.DataArray]) – The input dataset or data array. Returns: xr.DataArray – The time coordinate data. Examples >>> from pcmdi_metrics.io import get_time >>> time = get_time(ds)