hydro_events: Splitting to hydrological events

View source: R/hydro_events.R

hydro_eventsR Documentation

Splitting to hydrological events

Description

This function demarcates hydrological events. Start and endpoint of each event are identified by Local Minimum method (Sloto and Crouse, 1996) within the specified time window.

Usage

hydro_events(dataframe, q, datetime, window = 1)

Arguments

dataframe

A data set object

q

Water discharge variable (or water stage)

datetime

Datetime variable (column in POSIXct format)

window

Indicate time period to search for a local minimum (in hours)

Value

A data frame with class tbl_df with a hydrological events column he added

References

Sloto, R.A., Crouse, M.Y., 1996. Hysep: a computer program for streamflow hydrograph separation and analysis, U.S. Geological Survey Water-Resources Investigations Report 96-4040.

Examples

data(djan)
output_table <- hydro_events(dataframe = djan, q = discharge, datetime = time, window = 21)

atsyplenkov/loadflux documentation built on March 10, 2023, 8:18 p.m.