extract_pot_allstations: Extracting POT-values for a set of stations

Description Usage Arguments Value Examples

Description

Use independence criterion based on Lang et al (1999)

See 'get_pot' for deitals on how independent POT values are extracted

Should first extract AMS values to get the years to be used for extracting POT data

Usage

1
2
3
  extract_pot_allstations(amsfile = "inst/Example_data/Flooddata/amsvalues.txt",
  dailydata = "inst/Example_data/Dailydata", p_threshold = 0.98, TSEP = 6,
  pratio = 2/3, outfile = "inst/Example_data/Flooddata/potvalues.txt")

Arguments

amsfile

file with annual maximum data. Only years with ams will be used

dailydata

folder with daily data

p_threshold

the thershold for selecting flood values given as emprical quantile of all data

pratio

The minimum flow between two flood peaks should be less than pratio times the first flood peak.

outfile

The file for storing ams values

TTR_3X

The minimum time between two independent flood peaks

Value

data frame with reginenumber, main number, flood date, flod size, thershold. for all stations. The dataframe is written to the specified outfile.

Examples

1
2
3
4
extract_pot_allstations(amsfile='inst/Example_data/Flooddata/amsvalues.txt',
dailydata="inst/Example_data/Dailydata",
p_threshold = 0.98, TSEP = 6,pratio= 2.0/3.0,
outfile="inst/Example_data/Flooddata/potvalues.txt")

NVE/NVEHYDROTOOLS documentation built on May 7, 2019, 6:04 p.m.