earthkit.climate.atmos.temperature.frost_free_spell_max_length¶
- earthkit.climate.atmos.temperature.frost_free_spell_max_length(tasmin: xarray.DataArray | str = 'tasmin', ds: xarray.Dataset | Any = None, *, thresh: Any = '0.0 degC', window: int = 1, freq: str = 'YS-JUL', op: Literal['>', 'gt', '>=', 'ge'] = '>=', resample_before_rl: bool = True, **kwargs: Any) Any¶
Frost free spell maximum length.
The maximum length of a frost free period of N days or more, during which the minimum temperature over a given time window of days is above a given threshold.
Units:
frost_free_spell_max_length: days
This function wraps xclim.indicators.atmos.frost_free_spell_max_length.
- Parameters:
tasmin (
xarray.DataArray | str) – Minimum daily temperature.thresh (
Any) – The temperature threshold needed to trigger a frost-free spell.window (
int) – Minimum number of days with temperatures above thresholds to qualify as a frost-free day.freq (
str) – Resampling frequency.op (
Literal[``’>’, ``'gt','>=','ge']) – Comparison operation. Default: “>=”.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