Description Usage Arguments References Examples
View source: R/IntersiteCorData.R
Return the intersite correlation matrix for a list of stations based on their annual maximum discharges.
1 | IntersiteCorData(db, x, type = "exp", ...)
|
db |
HYDAT database |
x |
List of stations |
type |
Method used to evaluate the correlation coefficients. One of
|
... |
Other parameter passed to Intersite. |
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.