initconditions: Simulates initial conditions

Description Usage Arguments Value Examples

View source: R/simInitcond.R

Description

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.

Usage

1
2
initconditions(pathmain = NULL, incondFt, incondWt, incondSpt, incondSt, Nsim,
  durt, writeResults = TRUE, PDFplots = TRUE)

Arguments

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

Value

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

Examples

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)

valeriyafilipova/StochasticPQRUT documentation built on Jan. 15, 2019, 12:07 a.m.