earthkit.climate.atmos.temperature.freshet_start¶
- earthkit.climate.atmos.temperature.freshet_start(tas: xarray.DataArray | str = 'tas', ds: xarray.Dataset | Any = None, *, thresh: Any = '0 degC', op: Literal['>', 'gt', '>=', 'ge'] = '>', after_date: str = '01-01', window: int = 5, freq: str = 'YS', **kwargs: Any) Any¶
Day of year of spring freshet start.
Day of year of the spring freshet start, defined as the first day when the temperature exceeds a certain threshold for a given number of consecutive days.
Units:
freshet_start: dimensionless
This function wraps xclim.indicators.atmos.freshet_start.
- Parameters:
tas (
xarray.DataArray | str) – Daily temperature.thresh (
Any) – Threshold temperature on which to base evaluation.op (
Literal[``’>’, ``'gt','>=','ge']) – Comparison operation. Default: “>”.after_date (
str) – Date of the year after which to look for the first event. Should have the format ‘%m-%d’.window (
int) – Minimum number of days with temperature above the threshold needed for evaluation.freq (
str) – Resampling frequency.ds (
xarray.Dataset | Any) – Input dataset.**kwargs (
Any) – Additional keyword arguments.
- Returns:
The computed index.
- Return type:
Any