Description Usage Arguments Value Examples
Simulates initial conditions (initial Q, soil moisture deficit and SWE). The procedure uses truncated mulivariate normal distribution to simulate values between the minimum and maximum observed. The values for initial Q and soil moisture deficit are first log transformed.
1 2 | initconditions(pathmain = NULL, incondFt, incondWt, incondSpt, incondSt, Nsim,
durt, writeResults = TRUE, PDFplots = TRUE)
|
pathmain |
path to files , not needed if writeResults=FALSE |
incondFt, incondWt, incondSpt, incondSt |
dataframes that contain the POT for each season |
Nsim |
Number of simulation |
durt |
critical duration |
if writeResults is TRUE the results are saved in the directory pathmain if FALSE a list that contains dataframes of initial conditions (SWE,soil moisture deficit and initial discharge ) for events for each season is returned
1 2 3 4 | ## Not run:
g=initconditions(incondFt=b$ntp1F,incondWt=b$ntp1W,incondSpt=b$ntp1Sp,incondSt=b$ntp1S, Nsim=10000,durt=a$d,writeResults=FALSE,PDFplots=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.