ENsetqualtype | R Documentation |
ENsetqualtype
sets the type of water quality analysis called for.
ENsetqualtype(qualcode, chemname = "", chemunits = "", tracenode = "")
qualcode |
An integer or a character string, the water quality analysis code (see below). |
chemname |
A character string, the name of the chemical being analyzed. |
chemunits |
A character string, units that the chemical is measured in. |
tracenode |
A character string, ID of node traced in a source tracing analysis. |
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 |
Chemical name and units can be an empty string if the analysis is not for a chemical. The same holds for the trace node if the analysis is not for source tracing. Note that the trace node is specified by ID and not by index.
returns NULL invisibly on success
ENgetqualtype
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")
ENopen( inp, "Net1.rpt")
ENgetqualtype()
ENsetqualtype("EN_CHEM", "Chlorine", "mg/L", "")
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.