ch_rfa_seasonstat {CSHShydRology} | R Documentation |
Return the circular or seasonal statistics of flood peaks. The angle represents the mean timing of the floods and the radius its regularity. For example, a radius of one represents perfect regularity. Can perform the analyses on multiple sites.
ch_rfa_seasonstat(x, ...)
## S3 method for class 'data.frame'
ch_rfa_seasonstat(x, ...)
## S3 method for class 'formula'
ch_rfa_seasonstat(form, x, ...)
x |
Data. If data.frame with two columns, they must be respectively the date and a site variable. |
... |
Other parameters. |
form |
Formula that specifies the date and site variable. Must be of the
form |
Returns the circular or seasonal statistics of flood peaks.
Martin Durocher
Burn, D.H. (1997). Catchment similarity for regional flood frequency analysis using seasonality measures. Journal of Hydrology 202, 212-230. https://doi.org/10.1016/S0022-1694(97)00068-1
dt <- ch_rfa_extractamax(flow~date, CAN01AD002)$date
ch_rfa_seasonstat(dt)
## Illustration of the analysis of multiple sites
F0 <- function(ii) data.frame(site = ii, dt = sample(dt, replace = TRUE))
x <- lapply(1:10, F0)
x <- do.call(rbind, x)
st <- ch_rfa_seasonstat(dt ~ site, x)
ch_rfa_julianplot()
points(y ~ x, st, col = 2, pch = 16)