earthkit.climate.atmos.tg_days_below

earthkit.climate.atmos.tg_days_below(tas: xarray.DataArray | str = 'tas', ds: xarray.Dataset | Any = None, *, thresh: Any = '10.0 degC', freq: str = 'YS', op: Literal['<', 'lt', '<=', 'le'] = '<', **kwargs: Any) Any

Number of days with mean temperature below a given threshold.

The number of days with mean temperature below a given threshold.

Units:

  • tg_days_below: days

This function wraps xclim.indicators.atmos.tg_days_below.

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

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

  • freq (str) – Resampling frequency.

  • op (Literal[``’<’, ``'lt', '<=', 'le']) – Comparison operation. Default: “<”.

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

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

Returns:

The computed index.

Return type:

Any