Description Usage Arguments Value Note References Examples
View source: R/HydRun_functions.R
Extracts precipitation events from a precipitation timeseries.
1 | extract.precip(precip, MAG, Thr)
|
precip |
A precipitation data frame (format is 2 columns: datetime and precipitation). |
MAG |
The maximum allowable gap for an intermittent rainfall, expressed in hours. |
Thr |
The minimum amount of precipitation. |
A list containing the precipitation events, PrecipEvents
the number of precipitation events, nPrecipEvent
, and the portion of NAs in a rainfall event, pNA
.
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 | precipitation_events <- extract.precip(precip, 24, 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.