initcond: Extracts initial conditions for POT events

Description Usage Arguments Value Examples

Description

Initial condions (initial discharge, soil moisture deficit and SWE) for POT flood events

Usage

1
2
initcond(pathmain = NULL, this.station = NULL, Qobs, Td, sl, POTF, POTW,
  POTSp, POTS, SWE, durt, PDFplots = FALSE, writeResults = TRUE)

Arguments

pathmain

path to files, not needed if writeResults=FALSE

this.station

station number,, not needed if writeResults=FALSE

Qobs

discharge data; dataframe with columns date ("%Y-%m-%d") and Q,if writeResults=TRUE path to txt file with columns date and Q

Td

temperature data; dataframe with columns date("%Y-%m-%d") and Td,if writeResults=TRUE path to txt file with columns date and Td

sl

soil moisture deficit data; dataframe with columns date("%Y-%m-%d") and sl,if writeResults=TRUE path to txt file with columns date and sl

POTF, POTW, POTSp, POTS

results from criticalduration, not needed if writeResults=TRUE

SWE

snow water equivalent data; dataframe with columns date("%Y-%m-%d") and swe,if writeResults=TRUE path to txt file with columns date and swe

durt

critical duration

PDFplots

if TRUE pdf file with plots is saved in the same directory

Value

if writeResults is TRUE the results are saved in the directory pathmain if FALSE a list that contains data tables of initial conditions for the POT flood events is returned

Examples

1
2
3
4
 ## Not run: 
 b=initcond(Qobs=Q,sl=sl,POTF=a$POTF,POTW=a$POTW,POTSp=a$POTSp,POTS=a$POTS,SWE=SWE,Td=Td,durt=a$d,PDFplots=FALSE,writeResults=FALSE)
 
## End(Not run)

valeriyafilipova/StochasticPQRUT documentation built on May 26, 2019, 5:34 a.m.