IntersiteCorData: Intersite correlation matrix for annual maxima

Description Usage Arguments References Examples

View source: R/IntersiteCorData.R

Description

Return the intersite correlation matrix for a list of stations based on their annual maximum discharges.

Usage

1
IntersiteCorData(db, x, type = "exp", ...)

Arguments

db

HYDAT database

x

List of stations

type

Method used to evaluate the correlation coefficients. One of 'emp', 'exp', 'raw' or 'avg'. See Intersite for more details.

...

Other parameter passed to Intersite.

References

Durocher, M., Burn, D. H., & Mostofi Zadeh, S. (2018). A nationwide regional flood frequency analysis at ungauged sites using ROI/GLS with copulas and super regions. Journal of Hydrology, 567, 191–202. https://doi.org/10.1016/j.jhydrol.2018.10.011

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 

## The variable DB_HYDAT contains the path of the HYDAT database.
DB_HYDAT <- '.../Hydat.sqlite3'

## Meta-information about stations
gaugedSites <- read.csv('.../gauged_sites.csv')

sreg <- which(gaugedSites$supreg_km12 == 10)
sites <- as.character(gaugedSites$station)[sreg]

## Intersite correlation for a given super region
x <- IntersiteCorData(DB_HYDAT, sites, smooth = .6, distance.max = 200)

#' ## Intersite correlation for a given super region
x <- IntersiteCorData(DB_HYDAT, sites, type = 'emp' )


## End(Not run)

floodnetProject16/floodnetRfa documentation built on Oct. 24, 2020, 9:19 a.m.