Description Usage Arguments Value Note Author(s) See Also Examples
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.
1 | dvpart2mnpart(pdv, ...)
|
pdv |
The value from |
... |
Other arguments to pass. |
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 |
Flow |
The monthly streamflow in cubic feet per second; |
site |
A character representation of the |
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 |
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 |
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
.
W.H. Asquith
dvget
, mnget
, dvpartenv2mnpartenv
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) #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.