earthkit.climate.utils.percentile.pandas_offset2time_component¶
- earthkit.climate.utils.percentile.pandas_offset2time_component(aggregation: str) str¶
Map a pandas-style frequency string to a corresponding time component.
- Parameters:
aggregation (
str) – Frequency alias following pandas conventions (e.g., ‘YS’, ‘QS-DEC’, ‘MS’).- Returns:
Time component corresponding to the given frequency: - ‘YS’ → ‘year’ - ‘QS-DEC’ → ‘season’ - ‘MS’ → ‘month’
- Return type:
str- Raises:
NotImplementedError – If the provided frequency alias is not supported.