ENgetcount {epanet2toolkit} | R Documentation |
ENgetcount
retrieves the number of network components of a specific type.
ENgetcount(compcode)
compcode |
A character string, integer or numeric specifying the component code(s) (see below). |
Component codes consist of the following:
EN_NODECOUNT | 0 | Nodes |
EN_TANKCOUNT | 1 | Reservoirs and tank nodes |
EN_LINKCOUNT | 2 | Links |
EN_PATCOUNT | 3 | Time patterns |
EN_CURVECOUNT | 4 | Curves |
EN_CONTROLCOUNT | 5 | Simple controls |
The number of junctions in a network equals the number of nodes minus the number of tanks and reservoirs.
The number of network components.
http://wateranalytics.org/EPANET/group___network_info.html
# path to Net1.inp example file included with this package inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp") ENopen( inp, "Net1.rpt") ENgetcount(0) ENgetcount("EN_NODECOUNT") ENclose()