View source: R/Rtoolkit.R View source: R/quality.r
ENgetqualtype | R Documentation |
ENgetqualtype
retrieves the type of water quality analysis called for.
ENgetqualtype()
ENgetqualtype()
A named integer vector, the water quality analysis code (see below) and the index of node traced in a source tracing analysis.
list of qualcode and trace node
Water quality analysis codes are as follows:
EN_NONE | 0 | No quality analysis |
EN_CHEM | 1 | Chemical analysis |
EN_AGE | 2 | Water age analysis |
EN_TRACE | 3 | Source tracing |
The tracenode value will be 0 when the quality code is not EN_TRACE
.
ENsetqualtype
# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")
ENopen( inp, "Net1.rpt")
ENgetqualtype()
ENclose()
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")
ENopen( inp, "Net1.rpt")
ENgetqualtype()
ENclose()
# clean-up the created files
file.remove("Net1.rpt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.