earthkit.climate.atmos.wetdays

earthkit.climate.atmos.wetdays(pr: xarray.DataArray | str = 'pr', ds: xarray.Dataset | Any = None, *, thresh: Any = '1.0 mm/day', freq: str = 'YS', op: Literal['>', 'gt', '>=', 'ge'] = '>=', **kwargs: Any) Any

Number of wet days.

The number of days with daily precipitation at or above a given threshold.

Units:

  • wetdays: days

This function wraps xclim.indicators.atmos.wetdays.

Parameters:
  • pr (xarray.DataArray | str) – Daily precipitation.

  • thresh (Any) – Precipitation value over which a day is considered wet.

  • freq (str) – Resampling frequency.

  • op (Literal[``’>’, ``'gt', '>=', 'ge']) – Comparison operation. Default: “>=”.

  • ds (xarray.Dataset | Any) – Input dataset.

  • **kwargs (Any) – Additional keyword arguments.

Returns:

The computed index.

Return type:

Any