earthkit.climate.atmos.tropical_nights

earthkit.climate.atmos.tropical_nights(tasmin: xarray.DataArray | str = 'tasmin', ds: xarray.Dataset | Any = None, *, thresh: Any = '20.0 degC', freq: str = 'YS', op: Literal['>', 'gt', '>=', 'ge'] = '>', **kwargs: Any) Any

Tropical nights.

Number of days where minimum temperature is above a given threshold.

Units:

  • tropical_nights: days

This function wraps xclim.indicators.atmos.tropical_nights.

Parameters:
  • tasmin (xarray.DataArray | str) – Minimum 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