Description Usage Arguments Value Examples
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
1 2 | criticalduration(Q, P, qtT = 0.9, PDFplots = TRUE, intEvent = 7,
writeResults = TRUE)
|
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 |
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.