StateDMI / Command / ReadDiversionStationsFromList
Overview
The ReadDiversionStationsFromList
command (for StateCU and StateMod)
reads a list of diversion stations from a delimited list file and defines diversion stations in memory.
The diversion stations can then be manipulated and output with other commands.
Command Editor
The following dialog is used to edit the command and illustrates the command syntax.
ReadDiversionStationsFromList
Command Editor (see also the full-size image)
Command Syntax
The command syntax is as follows:
ReadDiversionStationsFromList(Parameter="Value",...)
Command Parameters
Parameter | Description | Default |
---|---|---|
ListFile |
The name of the list file to be read. | None – must be specified. |
IDCol |
The column number (1+) containing the diversion station identifiers. | None – must be specified. |
NameCol |
The column number (1+) containing the diversion station names. | None – optional (name will be initialized to blank). |
Examples
See the automated tests.
At a minimum, the list file must contain a column with diversion station identifiers. Lines starting with the # character are treated as comments. If the first line’s values are surrounded by double quotes, the line is assumed to indicate column headings.
A sample list file is shown below:
# Diversions as list file
#
#
"ID","Latitude","County","HUC","Name"
200505,37.5,ALAMOSA,13010002,ALAMOSA D
200511,37.68,RIO GRANDE,13010001,ANACONDA D
200512,37.61,RIO GRANDE,13010002,ANDERSON D
200513,37.68,RIO GRANDE,13010002,ANNA RABER D
...
Troubleshooting
See Also
ReadDiversionStationsFromNetwork
commandReadDiversionStationsFromStateMod
commandWriteDiversionStationsToStateMod
command