ThornthwaiteReservoir

class rameau.core.ThornthwaiteReservoir(capacity=None, h=0.0)[source]

Soil reservoir using the Thornthwaite approach [Thornthwaite, 1948].

Parameters:
  • capacity (dict or Parameter, optional) – Soil water holding capacity (mm).

  • h (float) – Soil moisture storage of the reservoir (mm). It is the reservoir level. Default is 0 mm.

Returns:

ThornthwaiteReservoir

Examples

Soil reservoirs using the Thornthwaite approach are created as follows:

>>> sw = rm.ThornthwaiteReservoir(capacity=150.0, h=100)
>>> sw.h
100.0

Now we introduce 150 mm of rainfall and 10 mm of PET and we produce effective rainfall and AET: >>> sw.production(150, 10) {‘effective_rainfall’:90.0, ‘aet’:10.0, ‘unsatisfied_pet’:0.0}

Look how the reservoir level h has changed: >>> sw.h 150.0

Methods

production(rainfall, pet)

Production function of the soil reservoir using the Thornthwaite model [Thornthwaite, 1948].

Attributes

capacity

Soil water holding capacity (mm).

h

Soil moisture storage (mm).