earthkit.climate.atmos.temperature.growing_season_length¶
- earthkit.climate.atmos.temperature.growing_season_length(tas: xarray.DataArray | str = 'tas', ds: xarray.Dataset | Any = None, *, thresh: Any = '5.0 degC', window: int = 6, mid_date: str | None = '07-01', freq: str = 'YS', op: Literal['>', 'gt', '>=', 'ge'] = '>=', **kwargs: Any) Any¶
Growing season length.
Number of days between the first occurrence of a series of days with a daily average temperature above a threshold and the first occurrence of a series of days with a daily average temperature below that same threshold, occurring after a given calendar date.
Units:
growing_season_length: days
This function wraps xclim.indicators.atmos.growing_season_length.
- Parameters:
tas (
xarray.DataArray | str) – Mean daily temperature.thresh (
Any) – Threshold temperature on which to base evaluation.window (
int) – Minimum number of days with temperature above the threshold to mark the beginning and end of growing season.mid_date (
str | None) – Date of the year before which the season must start and after which it can end. Should have the format ‘%m-%d’. Setting None removes that constraint.freq (
str) – Resampling frequency.op (
Literal[``’>’, ``'gt','>=','ge']) – Comparison operation. Default: “>=”.ds (
xarray.Dataset | Any) – Input dataset.**kwargs (
Any) – Additional keyword arguments.
- Returns:
The computed index.
- Return type:
Any