
Last chance! 50% off unlimited learning
Sale ends in
This function implements generalized flow normalization. This means that for determining the flow normalized concentration and flow normalized flux for any given year, there is a specified list of years from which to create the discharge record used in the flow-normalization process. That set of years is defined by the dateInfo object.
flexFN(eList, dateInfo, localsurfaces = NA, oldSurface = FALSE,
flowNormStartCol = "flowNormStart", flowNormEndCol = "flowNormEnd",
flowStartCol = "flowStart", flowEndCol = "flowEnd")
named list, eList, containing INFO, Daily, Sample, and surfaces objects
named list with at least the Daily, Sample, and INFO dataframes
data frame with 4 columns. The column names and descriptions are described below. Default is NA.
surface (3-dimensional matrix) over-riding the one stored in eList Default = NA.
logical, if TRUE, use the surface object in eList. Default is FALSE.
character, name of the column in dateInfo that starts the segment for the flow normalization
character, name of the column in dateInfo that ends the segment for the flow normalization
character, name of the column in dateInfo that starts the segment for the portion of the flow to be populated with flow-normalized values.
character, name of the column in dateInfo that ends the segment for the portion of the flow to be populated with flow-normalized values.
eList <- Choptank_eList
eList <- setUpEstimation(eList)
flowNormStart <- c("1979-10-01","1990-01-01","1992-10-10")
flowNormEnd <- c("1995-06-06","2004-03-03","2011-09-29")
flowStart <- c("1979-10-01","1995-06-07","2004-03-04")
flowEnd <- c("1995-06-06","2004-03-03","2011-09-29")
dateInfo <- data.frame(flowNormStart,
flowNormEnd,
flowStart,
flowEnd,
stringsAsFactors = FALSE)
# \donttest{
newEList <- flexFN(eList, dateInfo)
plotFluxHist(newEList)
flexPlotAddOn(newEList)
wallSurface <- estSurfaces(eList, localSample = eList$Sample[1:500,])
wallEList <- flexFN(eList, dateInfo, localsurface = wallSurface)
plotFluxHist(wallEList)
# }
Run the code above in your browser using DataLab