ReversalCount: ReversalCount

Description Usage Arguments Value References Examples

View source: R/ReversalCount.R

Description

Detect hydropeaking events

Usage

1
ReversalCount(df, alpha1 = 0.03, theta = 60, gamma = 1.1)

Arguments

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.

Value

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.

References

Li, T. and Pasternack, G.B., 2021. Revealing the diversity of hydropeaking flow regimes. Journal of Hydrology, 598, p.126392.

Examples

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)

HEDA documentation built on July 21, 2021, 1:06 a.m.

Related to ReversalCount in HEDA...