earthkit.climate.land.holiday_snow_and_snowfall_days¶
- earthkit.climate.land.holiday_snow_and_snowfall_days(snd: xarray.DataArray | str = 'snd', prsn: xarray.DataArray | str | None = None, ds: xarray.Dataset | Any = None, *, snd_thresh: Any = '20 mm', prsn_thresh: Any = '1 mm', snd_op: Literal['>', 'gt', '>=', 'ge'] = '>=', prsn_op: Literal['>', 'gt', '>=', 'ge'] = '>=', date_start: str = '12-25', date_end: str | None = None, freq: str = 'YS-JUL', **kwargs: Any) Any¶
Perfect christmas snow days.
The total number of days where there is a significant amount of snow on the ground and a measurable snowfall occurring on December 25th.
Units:
holiday_snow_and_snowfall_days: days
This function wraps xclim.indicators.land.holiday_snow_and_snowfall_days.
- Parameters:
snd (
xarray.DataArray | str) – Surface snow depth.prsn (
xarray.DataArray | str | None) – Snowfall flux.snd_thresh (
Any) – Threshold snow amount. Default: 20 mm.prsn_thresh (
Any) – Threshold daily snowfall liquid-water equivalent thickness. Default: 1 mm.snd_op (
Literal[``’>’, ``'gt','>=','ge']) – Comparison operation for snow depth. Default: “>=”.prsn_op (
Literal[``’>’, ``'gt','>=','ge']) – Comparison operation for snowfall flux. Default: “>=”.date_start (
str) – Beginning of analysis period. Default: “12-25” (December 25th).date_end (
str | None) – End of analysis period. If not provided, date_start is used. Default: None.freq (
str) – Resampling frequency. Default: “YS-JUL”. The default value is chosen for the northern hemisphere.ds (
xarray.Dataset | Any) – Input dataset.**kwargs (
Any) – Additional keyword arguments.
- Returns:
The computed index.
- Return type:
Any