earthkit.climate.atmos.cooling_degree_days

earthkit.climate.atmos.cooling_degree_days(tas: xarray.DataArray | str = 'tas', ds: xarray.Dataset | Any = None, *, thresh: Any = '18.0 degC', freq: str = 'YS', **kwargs: Any) Any

Cooling degree days.

The cumulative degree days for days when the mean daily temperature is above a given threshold and buildings must be air conditioned.

Units:

  • cooling_degree_days: K days

This function wraps xclim.indicators.atmos.cooling_degree_days.

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

  • thresh (Any) – Temperature threshold above which air is cooled.

  • freq (str) – Resampling frequency.

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

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

Returns:

The computed index.

Return type:

Any