Description Usage Arguments Value Examples
View source: R/model_wrapper.R
Wrapper for running snow and hydrological model
1 | model_wrapper(indata)
|
indata |
List with following items:
|
A list with state variables and simulated runoff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | iwsh <- 3
indata = list(Time = sample_data[[iwsh]]$time_vec,
Prec = sample_data[[iwsh]]$Prec,
Tair = sample_data[[iwsh]]$Tair,
PET = rep(0, nrow(sample_data[[iwsh]]$Prec)),
SWE = matrix(0, nrow = 1, ncol = ncol(sample_data[[iwsh]]$Prec)),
St = matrix(0, nrow = 2, ncol = 1),
StUH1 = matrix(0, 20, ncol = 1),
StUH2 = matrix(0, 40, ncol = 1),
Param = c(74.59, 0.81, 214.98, 1.24, 3.69, 1.02),
frac_elev_band = sample_data[[iwsh]]$frac_elev_band)
res_sim <- model_wrapper(indata)
plot(sample_data[[iwsh]]$Runoff, type = 'l', col = 'black', lwd = 2)
lines(res_sim$Q, col = 'red')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.