Description Usage Arguments Value References Examples
View source: R/ReversalCount.R
Detect hydropeaking events
1 | ReversalCount(df, alpha1 = 0.03, theta = 60, gamma = 1.1)
|
df |
Dataframe to be processed |
alpha1 |
Default value : 0.03 |
theta |
Default value : 60 degree for m^3/s, 85 degree for cfs. |
gamma |
gamma default value: 1.1 m/s or 40 cfs. |
Output dataframe has six columns containing location id, datatime, parameter value, ann_thre, vt_degree and dgtag. ann_thre is originally the mean annual discharge. If flow record is subset by season, ann_thre will be the mean discharge of that period. vt_degree is the vector angle between two flow vectors. dgtag is the catogrized change points.
Li, T. and Pasternack, G.B., 2021. Revealing the diversity of hydropeaking flow regimes. Journal of Hydrology, 598, p.126392.
1 2 3 4 5 6 | ## Not run:
hpk_flow_cg <- ReversalCount(hpk_flow_cln)
hpk_flow_cg <- ReversalCount(hpk_flow_cln, alpha1 = 0.03, theta = 85, gamma = 40)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.