Learn R Programming

CityWaterBalance

CityWaterBalance provides a reproducible workflow for studying an urban water system. The network of urban water flows and storages can be modeled and visualized. Any city may be modeled with preassembled data, but data for US cities can be gathered via web services using this package and dependencies, geoknife and dataRetrieval.

To install

The latest release of CityWaterBalance is available from CRAN. To install:

install.packages("CityWaterBalance")

To install the development version from GitHub:

install.packages("devtools")
devtools::install_github("USEPA/CityWaterBalance", build_vignettes=TRUE)
library(CityWaterBalance)

EPA Disclaimer

The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity, confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recomendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

Copy Link

Version

Install

install.packages('CityWaterBalance')

Monthly Downloads

13

Version

0.1.0

License

CC0

Maintainer

Laura Erban

Last Published

June 16th, 2017

Functions in CityWaterBalance (0.1.0)

combineWaterUse

Combine water use data for urban system into functional flows
cwb_data

Example dataset for CityWaterBalance
gapfillStreamflow

Fill gaps in streamflow records
getAtmoFlows

Gather all atmospheric data time series
CityWaterBalance

Tracks flows of water through the urban system
combineStreamflow

Combines streamflow records to estimate total flows
getSolutions

Evaluate parameter uncertainty
getStreamflow

Gather time series of streamflow data
getEvapotranspiration

Assemble an evapotranspiration times series
getPrecipitation

Assemble a precipitation times series
getWaterUse

Gather time series of water use data
mergeData

Merge data sources into input for CityWaterBalance
plotStreamflow

Plot discharge at a set of gages
plotWaterBalance

Plot components of the urban water balance