dctools.utilities.xarray_utils.get_time_info
- dctools.utilities.xarray_utils.get_time_info(ds)
Analyze the main time axis of an xarray Dataset.
- Parameters:
ds (xr.Dataset) – Input dataset to analyze.
- Returns:
A dictionary containing: - start: the earliest timestamp (pandas.Timestamp or string from attributes) - end: the latest timestamp - duration: the time range duration (if computable) - calendar: the calendar used (if specified)
- Return type:
dict