earthkit.climate.atmos.temperature.consecutive_frost_days¶
- earthkit.climate.atmos.temperature.consecutive_frost_days(tasmin: xarray.DataArray | str = 'tasmin', ds: xarray.Dataset | Any = None, *, thresh: Any = '0 degC', freq: str = 'YS-JUL', resample_before_rl: bool = True, **kwargs: Any) Any¶
Consecutive frost days.
Maximum number of consecutive days where the daily minimum temperature is below 0°C
Units:
consecutive_frost_days: days
This function wraps xclim.indicators.atmos.consecutive_frost_days.
- Parameters:
tasmin (
xarray.DataArray | str) – Minimum daily temperature.thresh (
Any) – Threshold temperature.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