roms_tools.datasets.river_datasets.DaiRiverDataset.add_time_info

roms_tools.datasets.river_datasets.DaiRiverDataset.add_time_info#

DaiRiverDataset.add_time_info(ds: Dataset) Dataset#

Adds time information to the dataset based on the climatology flag and dimension names.

This method processes the dataset to include time information according to the climatology setting. If the dataset represents climatology data and the time dimension is labeled as “month”, it assigns dates to the dataset based on a monthly climatology. Additionally, it handles dimension name updates if necessary.

Parameters:

ds (xr.Dataset) – The input dataset to which time information will be added.

Returns:

xr.Dataset – The dataset with time information added, including adjustments for climatology and dimension names.