earthkit.climate.atmos.rain_on_frozen_ground_days

earthkit.climate.atmos.rain_on_frozen_ground_days(pr: xarray.DataArray | str = 'pr', tas: xarray.DataArray | str = 'tas', ds: xarray.Dataset | Any = None, *, thresh: Any = '1 mm/d', window: int = 7, freq: str = 'YS', **kwargs: Any) Any

Number of rain on frozen ground days.

The number of days with rain above a given threshold after a series of seven days with average daily temperature below 0°C. Precipitation is assumed to be rain when the daily average temperature is above 0°C.

Units:

  • rain_frzgr: days

This function wraps xclim.indicators.atmos.rain_on_frozen_ground_days.

Parameters:
  • pr (xarray.DataArray | str) – Mean daily precipitation flux.

  • tas (xarray.DataArray | str) – Mean daily temperature.

  • thresh (Any) – Precipitation threshold to consider a day as a rain event.

  • window (int) – Minimum number of days below freezing temperature needed to consider the ground frozen.

  • freq (str) – Resampling frequency.

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

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

Returns:

The computed index.

Return type:

Any