Current Weather Project

The aim of the project was to develop an XML data exchange format to (1) transfer a weather observation that could include both automatically and manually observed data, and (2) display the combined weather observation on a webpage using XSL transformation (XSLT).

The new XML data exchange format would be based on an experimental data exchange format for automatic weather data. The display would ideally include a coded SYNOP message and graphical representation of the weather data in the form of a station weather plot.

Project Stages

The following stages were identified as key elements of the project:

Project Variables

The variables used in this project are listed below. Select a variable to view the complete XML element definition, including: the element name and description, the expected data type, the permitted values where explicitly defined, and whether the element is mandatory or optional.

The variables in the template file are replaced with the equivalent output tags from the PWS software. If a variable has no equivalent output tag from the PWS software, the options are to: (1) create a user-defined output tag for the PWS software containing the appropriate value, or (2) replace the variable in the template file with the appropriate value. If an optional variable is permanently unavailable, the template file is edited as per this example - replace <foo>%variable%</foo> with <foo />.

Top of page up arrow

XML Schema Definition

View the XSD diagram for this project.

Weather Graphics

More than 500 graphics were created for the graphical representation of the weather data. This includes over 400 graphics to replicate the WMO weather symbols, including symbols for: total cloud cover, types of low cloud/middle cloud/high cloud, wind direction & wind speed both separately and combined, past weather, present weather and pressure trend, and about 100 graphics to show descriptive text corresponding to the WMO code figures for visibility and base of lowest cloud.

More information: weather symbols and code figures

Data Display

The combined weather observation can comprise a mix of raw values and WMO code figures. Some of the raw values are plotted as they are reported, whilst others must be coded for the purposes of plotting. All of the code figures, with the exception of visibility, are represented by the appropriate weather symbols in the station plot.

The evolution of the XSL document that specifies how the XML data are displayed in a web browser is described below:

Project Status

See an example of a full manual and automatic observation using the latest XSL version with plain vanilla styling.

This 2020 project successfully achieved its aims and is operational. View our current weather data on the TrugWX Live Weatherwall, which includes an occasional manual weather report. The project remains open for possible further development.

Top of page up arrow