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