Import DataFunctions for usergenerated or web retrieval data. 


Import user daily data for EGRET analysis 

Import usersupplied sample data for EGRET analysis 

Import NWIS Daily Data for EGRET analysis 

Import NWIS Sample Data for EGRET analysis 

Import Sample Data from the Water Quality Portal for WRTDS 

Import metadata to create INFO data frame 

WRTDSFunctions working running and analyzing the WRTDS model 

Estimation process for the WRTDS (Weighted Regressions on Time, Discharge, and Season) 

setUpEstimation 

WRTDSKalman 

Runs a comparison of any two years in the record. 

Runs a comparison of any group of years in the record. 

Annual series of flownormalized concentration and flownormalized flux 

Run the weighted survival regression for a set of estimation points (defined by DecYear and Log(Q)) 

JackKnife cross validation of the WRTDS (Weighted Regressions on Time, Discharge, and Season) 


Estimates all daily values of Concentration, Flux, FlowNormalized Concentration, and Flow Normalized Flux 
Estimate the three surfaces (for yHat, SE and ConcHat) as a function of DecYear and logQ and store in the threedimensional object called surfaces 

Flexible Flow Normalization 

Plot DataFunctions for plotting eList objects 

Produces a 4 panel plot that gives an overview of the data set prior to any processing 

Plot of the time series of daily flux estimates and the sample values for the days that were sampled 

Creates a plot of a time series of a particular flow statistic and a loess smooth of that flow statistic 

Sample data plot: observed log flux vs log discharge 

Makes four graphs of streamflow statistics on a single page 

Makes four graphs of annual streamflow statistics on a single page 

Plot of the discharge time series 

Graph of the standard deviation of the log of daily discharge versus year 

Box plot of the water quality data by month 

Two box plots sidebyside, discharge on sample days, and discharge on all days 

Plot of Observed Concentration versus Time 

Plot of Observed Concentration versus Discharge 

Plot of the time series of daily concentration estimates and the sample values for the days that were sampled 

Three box plots sidebyside 

Makes 15 graphs of streamflow statistics on a single page. These encompass the 7day minimum, mean, and 1day maximum for each of the following 5 Periods of Analysis: Annual, Fall, Winter, Spring and Summer. 

plots 1 of the 15 graphs of streamflow statistics on a single page 

Plot Model OutputsFunctions for plotting modeled eList objects 

Plot of Observed Concentration versus Estimated Concentration 

Graph of observed versus estimated flux 

Plot of the residuals from WRTDS versus the estimated values (all in log concentration units) 

Plot of the residuals from WRTDS (in log concentration units) versus the discharge 

Plot of the residuals from WRTDS (in log concentration units) versus time 

A box plot of WRTDS residuals by month 

Graph of annual concentration and flow normalized concentration versus year 

Graph of annual flux and flow normalized flux versus year 

Plot up to three curves representing the concentration versus discharge relationship. Each curve is a different point in time. 

Plot up to three curves representing the concentration versus time relationship, each curve representing a different flow. 

Produces 8panel plot that is useful for determining if there is a flux bias problem 

Color contour plot of the estimated surfaces as a function of discharge and time (surfaces include log concentration, standard error, and concentration) 

Plots the difference between two years from a contour plot created by plotContours 

plotWRTDSKalman 

plotTimeSlice 

Flexible Flow Normalization Plot Add On 

TableFunctions for creating tables from eList objects 

Print annual results for a given streamflow statistic 

Produces annual series of 8 streamflow statistics (and a lowess smooth of them) from daily streamflow data 

Create a table of the changes in flownormalized values between various points in time in the record 

Prints table of change metrics for a given streamflow statistic 

Table of annual results for discharge, concentration and flux 

Creates the AnnualResults data frame from the Daily data frame 

Calculates monthly mean values of Q, Conc, FNConc, Flux, and FNFlux for the entire record. If WRTDSKalman has been run it also includes the monthly mean values of GenConc and GenFlux. 

UtilitiesAdditional utility functions 

Deletes the computed values during periods of time when there are no sample data 

cleanUp eList 

Compress sample data frame 

Cumulative flow calculation 

Data Overview for WRTDS 

decimalDate 

Error statistics 

Update Sample dataframe 

Computes several values of the flow duration curve for streamflow centered on a specific date of the year 

Compute the flux bias statistic: (mean of estimated flux  mean of observed flux) / mean of estimated flux 

Get Daily dataframe from EGRET object 

Get INFO dataframe from EGRET object 

Get Sample dataframe from EGRET object 

Get surfaces matrix from EGRET object 

jitter Sample 

Create randomized residuals and observations for data sets that have some censored data 

mergeReport 


EGRET helper functions 
Reminder to user of flux unit properties (such as kg/day, tons/year, etc). 

Reminder to user of flow Unit properties such as cubic meters per second or thousands of cubic feet per second. 

Processing of Water Quality Data 

randomSubset 

Remove duplicates values from Sample data frame. 

A utility program for saving the contents of the workspace This function saves the workspace. It assigns the file a name using the abbreviations for station and constituent. 

Sets up the period of analysis (the portion of the year being evaluated). 

stitch surfaces 

Tricube weight function 