earthkit.climate.land.snd_season_length

earthkit.climate.land.snd_season_length(snd: xarray.DataArray | str = 'snd', ds: xarray.Dataset | Any = None, *, thresh: Any = '2 cm', window: int = 14, freq: str = 'YS-JUL', **kwargs: Any) Any

Snow cover duration (depth).

The season starts when snow depth is above a threshold for at least N consecutive days and stops when it drops below the same threshold for the same number of days.

Units:

  • snd_season_length: days

This function wraps xclim.indicators.land.snd_season_length.

Parameters:
  • snd (xarray.DataArray | str) – Surface snow thickness.

  • thresh (Any) – Threshold snow thickness.

  • window (int) – Minimum number of days with snow depth above and below threshold.

  • freq (str) – Resampling frequency. 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