... | @@ -7,7 +7,7 @@ including the water-quality method Weighted Regressions on Time, Discharge, and |
... | @@ -7,7 +7,7 @@ including the water-quality method Weighted Regressions on Time, Discharge, and |
|
|
|
|
|
Overview of `EGRET`: The following are 4 major features of `EGRET`.
|
|
Overview of `EGRET`: The following are 4 major features of `EGRET`.
|
|
|
|
|
|
1. It is designed to obtain its water quality sample data, streamflow data, and metadata directly from the USGS NWIS (United States Geological Survey National Water Information System), but it allows for user-supplied text files as inputs. The program is designed to ingest the data directly into R and structure them into file structures suited to the analysis. For those familiar with WRTDS_4c, the text file inputs used in that system will also work in EGRET.
|
|
1. It is designed to obtain its water quality sample data, streamflow data, and metadata directly from the USGS NWIS (U.S. Geological Survey National Water Information System), but it allows for user-supplied text files as inputs. The program is designed to ingest the data directly into R and structure them into file structures suited to the analysis.
|
|
|
|
|
|
2. It has all of the existing WRTDS functionality - computing concentrations, fluxes, flow normalized versions of those, trends in those and graphics to show results and to explore the behavior of the data (by season, by flow class...). Many graph and table outputs are possible and all are clearly labeled and suitable for presentation or publication. It is designed for both batch and interactive processing. It is very much oriented to graphics and should be thought of as an exploratory tool. It is intended for use with data sets of about 200 or more samples, over a time period of about 20 or more years. Some testing with smaller data sets has been done, and no significant problems have been identified in cases with sample sizes slightly larger than 100 but extensive testing with smaller data sets has not taken place yet.
|
|
2. It has all of the existing WRTDS functionality - computing concentrations, fluxes, flow normalized versions of those, trends in those and graphics to show results and to explore the behavior of the data (by season, by flow class...). Many graph and table outputs are possible and all are clearly labeled and suitable for presentation or publication. It is designed for both batch and interactive processing. It is very much oriented to graphics and should be thought of as an exploratory tool. It is intended for use with data sets of about 200 or more samples, over a time period of about 20 or more years. Some testing with smaller data sets has been done, and no significant problems have been identified in cases with sample sizes slightly larger than 100 but extensive testing with smaller data sets has not taken place yet.
|
|
|
|
|
... | @@ -15,14 +15,11 @@ Overview of `EGRET`: The following are 4 major features of `EGRET`. |
... | @@ -15,14 +15,11 @@ Overview of `EGRET`: The following are 4 major features of `EGRET`. |
|
|
|
|
|
4. It has a streamflow history component, not related to water quality, that is not a part of WRTDS, but uses some similar concepts and shares some of the basic software and data structures. This component, called flowHistory provides a variety of table and graphical outputs looking only at flow statistics (like annual mean, annual 7-day low flow, annual 1-day maximum, or seasonal versions of these) all based on time-series smoothing. It is designed to be used in long-term studies of streamflow change (associated with climate or land use or water use change) and works best for daily streamflow data sets of 50 years or longer. It is put together with the WRTDS method because it uses the same data retrieval infrastructure as WRTDS and the same data structure.
|
|
4. It has a streamflow history component, not related to water quality, that is not a part of WRTDS, but uses some similar concepts and shares some of the basic software and data structures. This component, called flowHistory provides a variety of table and graphical outputs looking only at flow statistics (like annual mean, annual 7-day low flow, annual 1-day maximum, or seasonal versions of these) all based on time-series smoothing. It is designed to be used in long-term studies of streamflow change (associated with climate or land use or water use change) and works best for daily streamflow data sets of 50 years or longer. It is put together with the WRTDS method because it uses the same data retrieval infrastructure as WRTDS and the same data structure.
|
|
|
|
|
|
Please visit the wiki for more information:
|
|
|
|
[EGRET Wiki](https://github.com/USGS-R/EGRET/wiki)
|
|
|
|
|
|
|
|
|
|
|
|
Package Installation
|
|
Package Installation
|
|
---------------------------------
|
|
---------------------------------
|
|
|
|
|
|
To install the EGRET and dataRetrieval packages you need to be using R 3.0 or greater. Then use the following command:
|
|
To install the `EGRET` and `dataRetrieval` packages you need to be using R 3.0 or greater. Then use the following command:
|
|
|
|
|
|
install.packages(c("dataRetrieval","EGRET"),
|
|
install.packages(c("dataRetrieval","EGRET"),
|
|
repos=c("http://usgs-r.github.com","http://cran.us.r-project.org"),
|
|
repos=c("http://usgs-r.github.com","http://cran.us.r-project.org"),
|
... | @@ -57,7 +54,7 @@ Load data from web services: |
... | @@ -57,7 +54,7 @@ Load data from web services: |
|
INFO <-getNWISInfo("06934500","00631", interactive=FALSE)
|
|
INFO <-getNWISInfo("06934500","00631", interactive=FALSE)
|
|
Sample <-mergeReport(Daily, Sample)
|
|
Sample <-mergeReport(Daily, Sample)
|
|
|
|
|
|
This is a sample workflow for using WRTDS on the Choptank River at Greensboro MD, for Nitrate:
|
|
This is a sample workflow for using `EGRET` on the Choptank River at Greensboro MD, for Nitrate:
|
|
|
|
|
|
library(dataRetrieval)
|
|
library(dataRetrieval)
|
|
library(EGRET)
|
|
library(EGRET)
|
... | | ... | |