Current Weather Project

The aim of the project was to develop an XML data exchange format to (1) transfer a weather observation that would include automatic weather data from a PWS, plus manual and visual weather data, and (2) display the combined weather observation on a webpage using XSL transformation (XSLT). The display would also ideally include a coded SYNOP message and graphical representation of the weather data as 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 webtags provided by the PWS software. If a variable has no equivalent webtag, the variable is manually updated in the template file. If an optional variable subsequently becomes permanently unavailable, the syntax for that element in the template file is changed from <element>variable</element> to <element />.

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 in the following table:

Version Changes
1.0 initial code used only the raw observed values of mean sea level pressure, amount of pressure change, rainfall and wind speed
1.1 added support for standalone graphics representing wind speed
1.2 added support for encoded values of mean sea level pressure, amount of pressure change and rainfall
2.0 introduced programming variables to support graphics representing the combined wind speed and direction in the station weather plot
2.1 increased use of programming variables to remove duplicated sections of code
2.2 added support for alternative units of wind speed and a wind speed conversion to knots
2.3 added a time conversion to UTC and enhancements to the display
2.4 added a configurable timeout to remove old visual observations from the display
2.4.1 minor fix to the UTC conversion
2.5 added AEST and AEDT time descriptors, and a SYNOP report
2.6 added support for amount of evaporation and duration of sunshine
2.7 added fire weather danger indices calculated by FWI Calc and a fire danger rating graphic
3.0 added support for 3 and 6 hour rainfall amounts and redesigned the layout of the weather data

Project Status

See an example of a full automatic and visual weather observation with plain vanilla styling.

This 2020 project successfully achieved its aims. It is operational and is open for ongoing development. View our latest weather observation.

Top of page up arrow