extract.precip: Extract precipitation events

Description Usage Arguments Value Note References Examples

View source: R/HydRun_functions.R

Description

Extracts precipitation events from a precipitation timeseries.

Usage

1

Arguments

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.

Value

A list containing the precipitation events, PrecipEvents the number of precipitation events, nPrecipEvent, and the portion of NAs in a rainfall event, pNA.

Note

This is an R implementation of a function from the MATLAB toolbox HydRun.

References

Tang, W., & Carey, S. K. (2017). HydRun: a MATLAB toolbox for rainfall runoff analysis. Hydrological Processes, 31(15), 2670-2682.

Examples

1
precipitation_events <- extract.precip(precip, 24, 0)

codyalbertross/HydRun documentation built on Dec. 19, 2021, 5:21 p.m.