The function stateX() processes the soil water content both for soils and bogs. The process follows the expression dZ/dt= G(t) - X(t)- Ea(t) in Skaugen, Peerebom and Nilsson (2015). There are hence three steps: i- it processes the actual evapotranspiration Ea(t) ii- it processes the soil moisture G(t) iii- it processes the excess water X(t)

stateX(eatemp, cea, M, D, G, middelsca, R, Z, Gbog, Zbog)

Arguments

eatemp
evapotranspiration
cea
Degree day factor for evpotranspiration(mm/degree/day)
M
Groundwater Storage Capacity (GSC)
D
the potential volumee of water that is needed for complete saturation at time t
G
Volume of received moisture input of rain and snowmelt a time t
middelsca
average snow coverage over the level zones
R
Ratio defining field capacity (fracion of D)
Z
Actual water volume present in the soil moisture zone
Gbog
Volume of received moisture input of rain and snowmelt a time t on Bogs
Zbog
Actual water volume present on bogs

Examples

## Not run: ------------------------------------ # stateX() ## ---------------------------------------------