StateDMI / Command / WriteReservoirStationsToList
Overview
The WriteReservoirStationsToList command (for StateMod)
writes reservoir stations data to a delimited file.
In addition to the main station file,
files with suffixes _Collections, _Accounts, _ContentAreaSeepage, _EvapStations, and _PrecipStations are written, containing secondary station information.
Command Editor
The following dialog is used to edit the command and illustrates the command syntax.
 
WriteReservoirStationsToList Command Editor (see also the full-size image)
Command Syntax
The command syntax is as follows:
WriteReservoirStationsToList(Parameter="Value",...)
Command Parameters
| Parameter | Description | Default | 
|---|---|---|
| OutputFilerequired | The name of the output file to write, surrounded by double quotes. | None – must be specified. | 
| WriteHow | OverwriteFileif the file should be overwritten orUpdateFileif the file should be updated, resulting in the previous header being carried forward. | OverwriteFile | 
| Delimiter | The delimiter character to use between columns. | ,(comma) | 
Examples
See the automated tests.
The following example illustrates how to create a list of diversion stations from a network file:
ReadReservoirStationsFromNetwork(InputFile="rg2007.net")
WriteReservoirStationsToList(OutputFile="rg2007.csv")
Troubleshooting
See Also
- ReadReservoirStationsFromStateModcommand
- WriteReservoirStationsToStateModcommand