Skip to content

StateDMI / Command / FillReservoirStationsFromNetwork


Overview

The FillReservoirStationsFromNetwork command (for StateMod) fills missing data in reservoir stations, using a StateMod network for data. This command usually is used after filling from other sources (e.g., HydroBase), because the information in the network file may have been specified mainly for the diagram and therefore does not necessarily match official data sources. It is assumed that the network has been read in a previous command (e.g., when the list of reservoir stations was originally read).

Command Editor

The following dialog is used to edit the command and illustrates the command syntax.

FillReservoirStationsFromNetwork command editor

FillReservoirStationsFromNetwork Command Editor (see also the full-size image)

Command Syntax

The command syntax is as follows:

FillReservoirStationsFromNetwork(Parameter="Value",...)

Command Parameters

Parameter             Description Default          
ID A single reservoir station identifier to match or a pattern using wildcards (e.g., 20*). None – must be specified.
IfNotFound Used for error handling, one of the following:
  • Fail – generate a failure message if the ID is not matched
  • Ignore – ignore (don’t add and don’t generate a message) if the ID is not matched
  • Warn – generate a warning message if the ID is not matched
Warn

Examples

See the automated tests.

The following example illustrates how to fill reservoir station names from the network. A command to fill from HydroBase or another source will often be run before the second command below.

ReadReservoirStationsFromList(InputFile="sp2005.csv")
FillReservoirStationsFromNetwork(ID="*")

Troubleshooting

See the main troubleshooting documentation

See Also