earthkit.climate.atmos.growing_season_end

earthkit.climate.atmos.growing_season_end(tas: xarray.DataArray | str = 'tas', ds: xarray.Dataset | Any = None, *, thresh: Any = '5.0 degC', mid_date: str | None = '07-01', window: int = 5, freq: str = 'YS', op: Literal['>', '>=', 'lt', 'le'] = '>=', **kwargs: Any) Any

Growing season end.

The first day when the temperature is below a certain threshold for a certain number of consecutive days after a given calendar date.

Units:

  • growing_season_end: dimensionless

This function wraps xclim.indicators.atmos.growing_season_end.

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

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

  • mid_date (str | None) – Date of the year after which to look for the end of the season. Should have the format ‘%m-%d’. None removes that constraint.

  • window (int) – Minimum number of days with temperature below threshold needed for evaluation.

  • freq (str) – Resampling frequency.

  • op (Literal[``’>’, ``'>=', 'lt', 'le']) – Comparison operation. Default: “>”. Note that this comparison is what defines the season. The end of the season happens when the condition is NOT met for window consecutive days.

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

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

Returns:

The computed index.

Return type:

Any