StateDMI / Command / SetClimateStation
Overview
The SetClimateStation
command (for StateCU)
sets data in existing climate stations or adds a new climate station.
Command Editor
The following dialog is used to edit the command and illustrates the command syntax.
SetClimateStation
Command Editor (see also the full-size image)
Command Syntax
The command syntax is as follows:
SetClimateStation(Parameter="Value",...)
Command Parameters
Parameter | Description | Default |
---|---|---|
ID required |
A single climate station identifier to match or a pattern using wildcards (e.g., 20* ). |
None – must be specified. |
Latitude |
The climate station latitude to be assigned for all matching climate stations. | If not specified, the original value will remain. |
Elevation |
The climate station elevation to be assigned for all matching climate stations. | If not specified, the original value will remain. |
Region1 |
The climate station Region1 (typically county) to be assigned for all matching climate stations. |
If not specified, the original value will remain. |
Region2 |
The climate station Region2 (typically the HUC basin) to be assigned for all matching climate stations. |
If not specified, the original value will remain. |
Name |
The climate station name to be assigned for all matching climate stations. | If not specified, the original value will remain. |
HeightHumidityMeas |
The height of humidity and temperature measurements (feet), only used with daily analysis. | If not specified, the original value will remain. |
HeightWindMeas |
The height of wind measurements (feet), only used with daily analysis. | If not specified, the original value will remain. |
IfNotFound |
Used for error handling, one of the following:
|
Warn |
Examples
See the automated tests.
The following example command file illustrates how climate stations can be defined and written to a StateCU file:
ReadClimateStationsFromList(ListFile="climsta.lst",IDCol=1)
FillClimateStationsFromHydroBase(ID="*")
SetClimateStation(ID="3016",Region2="14080106",IfNotFound=Warn)
SetClimateStation(ID="1018",Region2="14040106",IfNotFound=Warn)
SetClimateStation(ID="1928",Elevation=6440,IfNotFound=Warn)
SetClimateStation(ID="0484",Region1="MOFFAT",IfNotFound=Add)
WriteClimateStationsToStateCU(OutputFile="COclim2006.cli")
Troubleshooting
See Also
FillClimateStation
commandFillClimateStationsFromHydroBase
command