Description Usage Arguments Value Note References Examples
View source: R/HydRun_functions.R
Extracts runoff events from a stormflow timeseries.
1 2 3 4 5 6 7 8 9 10 | extract.runoff(
stormflow,
min_diff,
return_ratio,
b_slope,
e_slope,
sc,
min_dur,
dyslp
)
|
stormflow |
A stream stormflow data frame (format is 2 columns: datetime and stormflow). |
min_diff |
The minimum difference between the start (or end) of runoff and the runoff peak. |
return_ratio |
Determines where runoff terminates: runoff is terminated when it declines below a dynamic threshold (peak discharge)* |
b_slope |
The beginning slope (slope threshold used to cut flat head). |
e_slope |
The ending slope (slope threshold to end event). |
sc |
The smoothing coefficient, which determines the number of passes applied to |
min_dur |
The minimum duration of a runoff event, expressed as the number of timesteps. |
dyslp |
The dynamic slope threshold used to cut the flat head and end the runoff event. |
A list containing the runoff events, RunoffEvents
, and the number of runoff events, nRunoffEvent
.
This is an R implementation of a function from the MATLAB toolbox HydRun.
Tang, W., & Carey, S. K. (2017). HydRun: a MATLAB toolbox for rainfall runoff analysis. Hydrological Processes, 31(15), 2670-2682.
1 | runoff_events <- extract.runoff(stormflow, 1.1, 0.001, 0.001, 0.35, 1, 4, 0.001)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.