Soil_HBV  R Documentation 
This module allows you to account for actual evapotranspiration,
abstractions, antecedent conditions and effective runoff. The formulation enables
non linear relationships between soil box water input (rainfall plus snowmelt) and
the effective runoff. This effective value is the input series to the routine function
(Routing_HBV
).
Soil_HBV( model, inputData, initCond, param )
model 
numeric integer suggesting one of the following options:

inputData 
numeric matrix with the following series Model 1
Model 2

initCond 
numeric vector with the following values:

param 
numeric vector with the following values:

Numeric matrix with the following columns:
Rech
: recharge series [mm/Δ t]. This is the input to
the Routing_HBV
module.
Eact
: actual evapotranspiration series [mm/Δ t].
SM
: soil moisture series [mm/Δ t].
Bergström, S., Lindström, G., 2015. Interpretation of runoff processes in hydrological modelling—experience from the HBV approach. Hydrol. Process. 29, 3535–3545. https://doi.org/10.1002/hyp.10510
# The following is a toy example. I strongly recommend to see # the package vignettes in order to improve your skills on HBV.IANIGLA # HBV soil routine with variable area ## Calder's model potEvap < PET(model = 1, hemis = 1, inputData = as.matrix(1:315), elev = c(1000, 1500), param = c(4, 0.5)) ## Debriscovered ice ObsTemp < sin(x = seq(0, 10*pi, 0.1)) ObsPrecip < runif(n = 315, max = 50, min = 0) ObsGCA < seq(1, 0.8, 0.2/314) ## Fine debris covered layer assumed. Note that the icemelt factor is cumpulsory but harmless. DebrisCovGlac < SnowGlacier_HBV(model = 3, inputData = cbind(ObsTemp, ObsPrecip, ObsGCA), initCond = c(10, 3, 1), param = c(1, 1, 0, 3, 1, 6)) ## Soil routine ObsSoCA < 1  ObsGCA inputMatrix < cbind(DebrisCovGlac[ , 9], potEvap, ObsSoCA) soil < Soil_HBV(model = 2, inputData = inputMatrix, initCond = c(50), param = c(200, 0.5, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.