dvpart2mnpart: Perform Streamflow Partitioning after Rutledge (1998)...

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Convert daily streamflow partitioning from the R data.frame from dvpart to monthly streamflow partitioning. Only complete months are permitted, which means (say) that 30 days of streamflows (baseflow and others) in an October will not be converted to a monthly values.

Usage

1

Arguments

pdv

The value from dvpart; and

...

Other arguments to pass.

Value

An R data.frame is returned with these expected columns. Note that the requirement for a complete month means some months might not be presented and that the DateMean is not required to be monthly continuous.

agency_cd

The agency code for the data;

site_no

The streamgage identification number;

Date

The date set to the first of the month. This presentation might be useful if this table were to be joined against other tables, such as meteorologic that use the first of the month to represent time;

DateMean

The mean date, which will be the 14th, 15th, or 16th depending on the month and year. This is a diagnostic on the mean aggregation by the aggregate() function in the sources;

Flow

The monthly streamflow in cubic feet per second;

site

A character representation of the site_no, which likely is already a character. The reasoning for having another site column is in case a user need some type of flexibility in later processing. The user could freely replace contents of this column;

year

The calendar year of the date;

decade

The decade of the daily value. The decade is assign by taking the year and the trailing digit has been stripped and replaced with zero. This is not a technique in which a “decade” is centered on an even step of 10—meaning, say that 1996–2005 is not the “2000 decade” but simply 01/01/2000–12/31/2009 is the “2000 decade;”

wyear

The water year;

month

The month;

FlowBase

The monthly baseflow of the Flow;

FlowPart1

The monthly partition 1 of baseflow;

FlowPart2

The monthly partition 2 of baseflow;

FlowPart3

The monthly partition 3 of baseflow;

month_count

The number of daily observations in the month that is dependent on the actually number of day of streamflow represented and not the real number of days in the month; and

days_in_month

The real number of days in the month. This column is equal to month_count when the criteria that a complete month of streamflow must be available.

Note

The code here represents monthly mean computation that is independent of USGS monthly values stored in the National Water Information System database that are reported with rounding being used. Nevertheless, the two values are expected to be very close to each other. This means that the mnget function of this package, which retrieves monthly values, is not used for the Flow column provided by dvpart2mnpart.

Author(s)

W.H. Asquith

See Also

dvget, mnget, dvpartenv2mnpartenv

Examples

1
2
3
4
# USGS 14362000 Applegate River near Copper, Oregon
dv <- dvget("14362000", sdate="1989-10-01", edate="1999-09-30")
pdv <- dvpart(dv, cda=225) # The drainage area is 225 square miles.
pmn <- dvpart2mnpart(pdv) # 

wasquith-usgs/akqdecay documentation built on Nov. 9, 2020, 1:13 p.m.