earthkit.climate.atmos.temperature.tx_days_above¶
- earthkit.climate.atmos.temperature.tx_days_above(tasmax: xarray.DataArray | str = 'tasmax', ds: xarray.Dataset | Any = None, *, thresh: Any = '25.0 degC', freq: str = 'YS', op: Literal['>', 'gt', '>=', 'ge'] = '>', **kwargs: Any) Any¶
Number of days with maximum temperature above a given threshold.
The number of days with maximum temperature above a given threshold.
Units:
tx_days_above: days
This function wraps xclim.indicators.atmos.tx_days_above.
- Parameters:
tasmax (
xarray.DataArray | str) – Maximum daily temperature.thresh (
Any) – Threshold temperature on which to base evaluation.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