earthkit.climate.atmos.precipitation.first_snowfall¶
- earthkit.climate.atmos.precipitation.first_snowfall(prsn: xarray.DataArray | str = 'prsn', ds: xarray.Dataset | Any = None, *, thresh: Any = '1 mm/day', freq: str = 'YS-JUL', **kwargs: Any) Any¶
First day where snowfall exceeded a given threshold.
The first 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:
first_snowfall: dimensionless
This function wraps xclim.indicators.atmos.first_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