earthkit.climate.land.snow.snw_season_length

earthkit.climate.land.snow.snw_season_length(snw: xarray.DataArray | str = 'snw', ds: xarray.Dataset | Any = None, *, thresh: Any = '4 kg m-2', window: int = 14, freq: str = 'YS-JUL', **kwargs: Any) Any

Snow cover duration (amount).

The season starts when the snow amount 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:

  • snw_season_length: days

This function wraps xclim.indicators.land.snw_season_length.

Parameters:
  • snw (xarray.DataArray | str) – Surface snow amount.

  • thresh (Any) – Threshold snow amount.

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