Adding a Station in CNS

Adding a station in the CNS system is straightforward. Begin by launching the interface program located within the CNS directory (See Figure 1).

cns_folder.jpg

Figure 1.

The interface application presents various options that modify specific data sets for the CNS system. To add a station, choose the Edit Stations button in the main application window (See Figure 2).

interface.jpg

Figure 2.

interface_stations.jpg

Figure 3.

interface_add_station.jpg

Figure 4.

Enter the informations into the fields for the station that is being added. Note that the longitude value is not a negative value, although all New Mexico weather stations have negative longitude values. See Figure 5 to view station information entered into the add station interface.

interface_add_station_complete.jpg

Figure 5.

Input functions are functions that define how data will be parsed from the daily or hourly raw data files. See Figure 6 to view an example of the input function interface.

interface_station_input_function.jpg

Figure 6.

Note: An interesting hack to save time in entering input functions consists of finding the input function files of a station, copy all of those files, and paste them in the directory of another station. The station directories which store the input function files are located in the D:\cns\stations\ directory. It is absolutely important, when doing that, that the interface.exe program is not running and that the two stations' raw data file structure are confirmed to be 100% equivalent. As a simple example, if the 7th column of the raw data file for station nmcc-ra-1 is max temperature, then station nmcc-mr-1's daily raw data file should have max temperature in the 7th column. Thename of the station file instructions for the sensors in the station directory is the name of the output file. When you copy the station file over put them in a file name equal to the output file name.

The edit stations get the list of station from the station file forlder and the file dir.txt. The dir.txt can have a missising station name but the process file for the sensors can be in the station directory.

Nmcc_Wiki: CNS/AddStation (last edited 2009-03-11 20:57:01 by Stan)