icclim.models.frequency wraps the concept of pandas frequency in order to resample time series. slice_mode parameter of icclim.index is always converted to a Frequency.

class icclim.models.frequency.Frequency(pandas_freq: str, accepted_values: list[str], adjective: str, post_processing: Callable[[DataArray], tuple[DataArray, DataArray]] | None, units: str, indexer: Indexer | None, long_name: str, group_by_key: str | None, delta: timedelta | np.timedelta64)[source]#

Time sampling frequency.

build_frequency_kwargs() dict[str, Any][source]#

Build kwargs with possible keys in {“freq”, “month”, “date_bounds”}