earthkit.climate.atmos.precipitation.last_snowfall

earthkit.climate.atmos.precipitation.last_snowfall(prsn: xarray.DataArray | str = 'prsn', ds: xarray.Dataset | Any = None, *, thresh: Any = '1 mm/day', freq: str = 'YS-JUL', **kwargs: Any) Any

Last day where snowfall exceeded a given threshold.

The last day where snowfall exceeded a given threshold during a time period (the threshold can be given as a snowfall flux or a liquid water equivalent snowfall rate).

Units:

  • last_snowfall: dimensionless

This function wraps xclim.indicators.atmos.last_snowfall.

Parameters:
  • prsn (xarray.DataArray | str) – Snowfall flux.

  • thresh (Any) – Threshold snowfall flux or liquid water equivalent snowfall rate (default: 1 mm/day).

  • freq (str) – Resampling frequency.

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

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

Returns:

The computed index.

Return type:

Any