Description Usage Arguments Value Examples
This function converts units and merges data needed by CityWaterBalance. All inputs must represent the same time intervals. Outputs are fluxes (mm/month) over study area.
1 2 3 |
area |
numeric study area (sq km) |
atm |
xts of atmospheric data, from getAtmoFlows (mm/month) |
inflow |
xts of daily streamflow into area (cfs) |
outflow |
xts of daily streamflow out of area (cfs) |
wu |
xts of water use, from combineWaterUse (MGal/month) |
ws_imports |
xts of imports for water supply (MGal/month) |
etc_imports |
xts of other imports to surface water (MGal/month) |
wweff |
xts of wastewater effluent (MGD) |
dgr |
xts of deep groundwater recharge (mm/month) |
cso |
xts of cso events (mm/month) |
runoff |
xts of runoff (mm/month) |
baseflow |
xts of baseflow (mm/month) |
all fluxes (as xts) for each timestep (mm/month)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
start <- "2010-01-01"
end <- "2010-12-31"
area <- 2707
atm <- getAtmoFlows(start, end, 'sample:Counties', 'STATE', 'RI', 41.5801)
inflow <- getStreamflow(start, end, c("01112500"))
inflow <- combineStreamflow(inflow, c(1))
outflow <- getStreamflow(start, end, c("01113895", "01114000", "01117000",
"01118500"))
outflow <- combineStreamflow(outflow, c(1, 1, 1, 1))
wu <- getWaterUse(c('RI'), 'ALL')
wu <- combineWaterUse(start, end, wu)
data <- mergeData(area, atm, inflow, outflow, wu)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.