earthkit.climate.atmos.frost_season_length

earthkit.climate.atmos.frost_season_length(tasmin: xarray.DataArray | str = 'tasmin', ds: xarray.Dataset | Any = None, *, window: int = 5, mid_date: str | None = '01-01', thresh: Any = '0 degC', freq: str = 'YS-JUL', op: Literal['<', 'lt', '<=', 'le'] = '<', **kwargs: Any) Any

Frost season length.

Duration of the freezing season, defined as the period when the daily minimum temperature is below 0°C without a thawing window of days, with the thaw occurring after a median calendar date.

Units:

  • frost_season_length: days

This function wraps xclim.indicators.atmos.frost_season_length.

Parameters:
  • tasmin (xarray.DataArray | str) – Minimum daily temperature.

  • window (int) – Minimum number of days with temperature below threshold to mark the beginning and end of frost season.

  • mid_date (str | None) – The date must be included in the season. It is the earliest the end of the season can be. None removes that constraint.

  • thresh (Any) – Threshold temperature on which to base evaluation.

  • freq (str) – Resampling frequency.

  • op (Literal[``’<’, ``'lt', '<=', 'le']) – Comparison operation. Default: “<”.

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

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

Returns:

The computed index.

Return type:

Any