Skip to content

StateDMI / Command / SortClimateStations


Overview

The SortClimateStations command (for StateCU) sorts the climate stations using the station identifiers.

Command Editor

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

SortClimateStations command editor

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

Command Syntax

The command syntax is as follows:

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

Command Parameters

Parameter             Description Default          
Order Indicate the sort order. Currently onlyAscending is supported. Ascending

Examples

See the automated tests.

The following example command file illustrates how climate stations can be defined, sorted, 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)
SortClimateStations()
WriteClimateStationsToStateCU(OutputFile="COclim2006.cli")

Troubleshooting

See the main troubleshooting documentation

See Also

There are no additional related commands.