earthkit.climate.atmos.last_spring_frost

earthkit.climate.atmos.last_spring_frost(tasmin: xarray.DataArray | str = 'tasmin', ds: xarray.Dataset | Any = None, *, thresh: Any = '0 degC', op: Literal['<', 'lt', '<=', 'le'] = '<', before_date: str = '07-01', window: int = 1, freq: str = 'YS', **kwargs: Any) Any

Last spring frost.

The last day when minimum temperature is below a given threshold for a certain number of days, limited by a final calendar date.

Units:

  • last_spring_frost: dimensionless

This function wraps xclim.indicators.atmos.last_spring_frost.

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

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

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

  • before_date (str) – Date of the year before which to look for the final frost event. Should have the format ‘%m-%d’.

  • window (int) – Minimum number of days with temperature below 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