earthkit.climate.atmos.maximum_consecutive_wet_days¶
- earthkit.climate.atmos.maximum_consecutive_wet_days(pr: xarray.DataArray | str = 'pr', ds: xarray.Dataset | Any = None, *, thresh: Any = '1 mm/day', freq: str = 'YS', resample_before_rl: bool = True, **kwargs: Any) Any¶
Maximum consecutive wet days.
The longest number of consecutive days where daily precipitation is at or above a given threshold.
Units:
cwd: days
This function wraps xclim.indicators.atmos.maximum_consecutive_wet_days.
- Parameters:
pr (
xarray.DataArray | str) – Mean daily precipitation flux.thresh (
Any) – Threshold precipitation on which to base evaluation.freq (
str) – Resampling frequency.resample_before_rl (
bool) – Determines if the resampling should take place before or after the run length encoding (or a similar algorithm) is applied to runs.ds (
xarray.Dataset | Any) – Input dataset.**kwargs (
Any) – Additional keyword arguments.
- Returns:
The computed index.
- Return type:
Any