The State Model is structured to perform one of four (4) interrelated activities:
- Base Flows
- Data Check
For a description of each option, see Section 3.3 of this documentation. The model can be executed using either the StateMod Graphical User Interface available from the CDSS website or via a command line argument. If a command line argument is used, navigate the command prompt to the location of the StateMod Model, and enter the model name, file name, and options as follows. Note that a StateMod executable needs to be in the same directory as the StateMod model files:
statemod [file] [options]
statemod = base name of StateMod executable, such as
file = base file name of the simulation, such as
Note the order of the
|Print the program version
|Print recent updates
|Perform baseflow option
|Perform baseflow option for ungaged areas only. Note: This option assumes gaged flows are natural flows.
|Perform simulate option with standard reports
|Perform simulate option without standard reports
|Perform report option
|Perform data check option
1 If omitted, the PC version of the model defaults to requesting the desired option from the screen, while the Unix version prints an error message.
Except for the
-report option, each of the above requests are straight forward and require only one command line argument. The
-report option allows for one or two additional parameters in order to request the desired report and, as appropriate, desired station
without requiring data from the screen by the user. Note, except for the standard output request (
-std), the argument name is the same
as the output file requested. Following are examples of the report option with second and third parameters supplies:
|Detailed node accounting for all years and Detailed node accounting average
|Water Right List sorted by basin rank
|Direct Diversion, Instream Diversion and Gage graph file
|Reservoir graph file
|Well graph file
|Diversion comparison file
|Reservoir comparison file
|Well comparison file
|Stream flow gage comparison file
|Diversions by ditch formatted for the CU model
|Standard diversion (*.xdd) and reservoir (*.xre) output
|Special parameter report2.
1 If omitted, the PC version of the model defaults to request the desired option from the screen, while the Unix version prints an error message.
2 For the special parameter report the output type (e.g. diversion, reservoir, well, stream gage or All) and parameter (e.g. River_Outflow) must be specified in the output request file.