hysep: Baseflow Separation

View source: R/hysep.R

hysepR Documentation

Baseflow Separation

Description

Extract baseflow from a daily streamflow record using the method described by Sloto and Crouse (1996).

Usage

hysep(Flow, Dates, Start = NULL, End = NULL, da, select = "sliding",
  STAID = "Unknown")

Arguments

Flow

the daily streamflow to be separated missing values are not permitted within the time specified by Start and end.

Dates

the date for each x, should be of class "Date." Missing values are not permitted.

Start

the start date for the analysis, can be either a character string or class "Date."

End

the end date for the analysis, can be either a character string or class "Date."

da

the drainage area of the basin in square miles.

select

a character string indicating which method to use for the baseflow in the output dataset. Must be one of "sliding," "local minimum," or "fixed." Onle the first letter is required.

STAID

the station identifier for the data.

Value

an object of class "baseflow" and inherits class "data.frame" of the selected data, a data frame of the baseflow information, and other information about the analysis.

References

Sloto, R.A. and Crouse, M.Y., 1996, HYSEP: A COMPUTER PROGRAM FOR STREAMFLOW HYDROGRAPH SEPARATION AND ANALYSIS: U.S. geological Survey Water-Resources Investigations Report 96-4040. 46 p.

Examples


## Not run: 
library(smwrData)
data(ChoptankFlow)
# Process by calendar year as that is the retrieval range
ChopPart <- with(ChoptankFlow, hysep(Flow, datetime, da=113,
STAID="01491000"))
ChopPart

## End(Not run)

USGS-R/DVstats documentation built on Oct. 11, 2022, 6:03 a.m.