Learn R Programming

lfstat (version 0.9.4)

streamdef: Streamflow Deficit

Description

Calculates the streamflow deficit. Deprecated, use find_droughts instead.

Usage

streamdef(lfobj, pooling = c("none", "MA", "IT", "IC"), threslevel = 70, thresbreaks = c("fixed","monthly","daily","seasonal"), breakdays = c("01/06","01/10"), MAdays = 7, tmin = 5, IClevel = 0.1, mindur = 0, minvol = 0, table = c("all", "volmax", "durmax"), na.rm = TRUE)

Arguments

lfobj
An object of class "lfobj"
pooling
The pooling procedure used, "MA" stands for moving average, "IT" is the inter event time and "IC" is Lena Tallaksens interevent time and volume criterion.
threslevel
The threshold level, 70 means that Q70 should be used as threshold
thresbreaks
The periods for which separated thresholds should be used, "fixed" uses a constant threshold, "monthly" uses monthly breaks, "daily" takes daily threshold levels. If "seasonal" is specified, you can enter the breakdays manually using "breakdays".
breakdays
A vector of breakdays if thresbreaks = "seasonal". Please enter the breakdays using the format "
MAdays
If pooling = "MA" this is the number of days that should be averaged
tmin
Defines the number of days that low flow events must be separated within the "IT" or "IC" method.
IClevel
The ratio between inter-event excess volume in the "IC" method
mindur
The minimal duration of a low flow event in "IC" and "IT" method
minvol
The minimal deficit in a low flow period in "IC" and "IT" method
table
Should the output be a table of "all" deficit, "volmax" annual volume maxima or "durmax" annual duration maxima
na.rm
Should NAs be removed?

Value

A data frame containing characteristics of all low flow periods. A data frame containing characteristics of all low flow periods.Please note that when using the "IT" method the end date of the low flow period is not necessarily startdate + duration.

Details

When method "MA" is applied, the first and last MAdays/2 are not averaged, their original value is taken instead!

References

Gustard, A. & Demuth, S. (2009) (Eds) Manual on Low-flow Estimation and Prediction. Operational Hydrology Report No. 50, WMO-No. 1029, 136p.

See Also

streamdefplot, createlfobj, find_droughts

Examples

Run this code
data(ngaruroro)
ng <- subset(ngaruroro, hyear > 1980)

#Full Table
streamdef(ng, pooling = "MA", MAdays = 6)

#Annual Volume-Maxima only
streamdef(ng, pooling = "MA", MAdays = 6,table = "volmax")

Run the code above in your browser using DataLab