earthkit.climate.atmos.temperature.first_day_tn_above

earthkit.climate.atmos.temperature.first_day_tn_above(tasmin: xarray.DataArray | str = 'tasmin', ds: xarray.Dataset | Any = None, *, thresh: Any = '0 degC', op: Literal['>', 'gt', '>=', 'ge'] = '>', after_date: str = '01-01', window: int = 1, freq: str = 'YS', **kwargs: Any) Any

First day of temperatures superior to a given temperature threshold.

Returns first day of period where temperature is superior to a threshold over a given number of days (default: 1), limited to a starting calendar date (default: January 1st).

Units:

  • first_day_tn_above: dimensionless

This function wraps xclim.indicators.atmos.first_day_tn_above.

Parameters:
  • tasmin (xarray.DataArray | str) – Minimum surface temperature.

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

  • op (Literal[``’>’, ``'gt', '>=', 'ge']) – 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 above 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