ThornthwaiteReservoir
- class rameau.core.ThornthwaiteReservoir(capacity=None, h=0.0)[source]
Soil reservoir using the Thornthwaite approach [Thornthwaite, 1948].
- Parameters:
- Returns:
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