ReadStations

Synopsis

This module returns the exact GPS locations of weather stations within a given area specified by two latitudes and two longitudes. It is designed to read the file of Meteorological Station Location Information and display the stations on the world map. The station location information is a part of the METARS (a representation of the current weather situation provided by the National Weather Service for Aviation in USA.)

Parameters

Name Type Description UI Control

Filename string The filename of the station location file. FileDialog
StartLatitude double The start latitude of the station location. UIdial
StartLongitude double The start longitude of the station location. UIdial
EndLatitude double The end latitude of the station location. UIdial
EndLongitude double The end longitude of the station location. UIdial

Output Ports

Name Type Description

StationLocation Mesh+Data output mesh data of the location of stations.
StationID string output string array of the ID(Name) of stations.

Description

ReadStations is used to read station location information from the ASCII data file. The data file can be downloaded from Station location information page in National Weather Service Website(USA). After the user specifies a area in the world map defined by the longitude and latitude, the module outputs a mesh data for the coordinates of the stations within this area, station ID and the number of stations. With the assistance of two GIS modules: GISWorldDataBank and GISMapTransform, all the station ID strings display on the world map.

The macro includes a user interface. The specified area can be controlled from the four UIDials in the user interface panel.

Parameters

StartLatitude; StartLongitude

The upper left corner of the specified rectangle area.

EndLatitude; EndLongitude

The down right corner of the specified rectangle area.

Outputs

StationLocation

The coordinates of the stations. It contains only the mesh data and it does not contains any node data.

StationID

The string array of the station ID. Each ID contain four letters.

Utility Modules

The User Macro ReadStations makes use of the Functional Macro ReadStatFunc and the UI Macro ReadStatUI.

Example

An example application ReadStat_Eg is provided, which uses an ASCII data file, to display all selected stations on the world sphere map.

Files

iac_proj/rd_stat/rdst_mods.v contains the V definitions of the ReadStatParams parameter block and the read_Stations module.

iac_proj/rd_stat/rdst_macs.v contains the V definitions of the ReadStatFunc Functional Macro, the ReadStatUI User Interface Macro, and the ReadStations User Macro.

iac_proj/rd_stat/rdst_apps.v contains the V definition of the example application ReadStat_Eg.

Other Notes

This project include the ASCII data file for station location information. However, the lastest version can be downloaded from Station location information page in National Weather Service Website(USA). The format of this data file can be also checked in the download page.

Author

anonymous

Modifications

MA YingLiang
Manchester Visualization Centre

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL