pastas.recharge.FlexModel.get_snow_balance#

static pastas.recharge.FlexModel.get_snow_balance(prec: pastas.typing.ArrayLike, temp: pastas.typing.ArrayLike, tt: complex | float = 0.0, k: complex | float = 2.0) tuple[pastas.typing.ArrayLike, pastas.typing.ArrayLike, pastas.typing.ArrayLike]#

Compute the water balance of the snow reservoir.

Parameters:
  • prec (array_like) – NumPy Array with precipitation in mm/day.

  • temp (array_like) – NumPy Array with the mean daily temperature in degree Celsius.

  • tt (complex or float, optional) – Temperature threshold for snowfall in degree Celsius.

  • k (complex or float, optional) – Degree-day factor in mm/d/°C.

Returns:

  • ss (array_like) – storage in the snow reservoir.

  • ps (array_like) – snowfall flux in mm/d.

  • m (array_like) – snow melt flux in mm/d.

Notes

The water balance from the snow reservoir is as follows:

\[\begin{split}\\frac{dS_s}{dt} = P_s - M\end{split}\]

where $S_s$ [L] is the snow storage, $P_s$ [L/T] the snowfall, and $M$ [L/T] the snow melt from the snow reservoir.