criticalduration: Critical duration

Description Usage Arguments Value Examples

Description

Extract observed POT (Peak over Threshold) flood events and define the critical duration based on the correlation between a set of flood events over a threshold and the precipitation of the preceding days

Usage

1
2
criticalduration(Q, P, qtT = 0.9, PDFplots = TRUE, intEvent = 7,
  writeResults = TRUE)

Arguments

Q

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

P

precipitation data; dataframe with columns date and Pr,if writeResults=TRUE path to txt file with columns date and Pr

qtT

threshold quantile for peak over threshold events

PDFplots

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

intEvent

separation time between flood events in days

pathmain

path to files, not needed if writeResults=FALSE

Value

if writeResults is TRUE the results are saved in the directory pathmain if FALSE a list that contains duration and dataframes that lists the POT for each season is returned

Examples

1
2
3
4
5
## Not run: 
 criticalduration(Q="62.5QJ.csv",P="PJ1.txt",qtT=0.9,PDFplots=TRUE,intEvent=7,writeResults=TRUE)
 criticalduration(Q=Qd,PJ=P,qtT=0.9,PDFplots=TRUE,intEvent=7,writeResults=FALSE)

## End(Not run)

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