earthkit.climate.atmos.temperature.first_day_tg_below¶
- earthkit.climate.atmos.temperature.first_day_tg_below(tas: xarray.DataArray | str = 'tas', ds: xarray.Dataset | Any = None, *, thresh: Any = '0 degC', op: Literal['<', 'lt', '<=', 'le'] = '<', after_date: str = '07-01', window: int = 1, freq: str = 'YS', **kwargs: Any) Any¶
First day of temperatures inferior to a given temperature threshold.
Returns first day of period where temperature is inferior to a threshold over a given number of days (default: 1), limited to a starting calendar date (default: July 1st).
Units:
first_day_tg_below: dimensionless
This function wraps xclim.indicators.atmos.first_day_tg_below.
- Parameters:
tas (
xarray.DataArray | str) – Daily temperature.thresh (
Any) – Threshold temperature on which to base evaluation.op (
Literal[``’<’, ``'lt','<=','le']) – 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 below 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