Looking for the latest version? Download metaf2xml-1.55.zip (357.3 kB)
Name Modified Size Downloads / Week Status
Totals: 57 Items   5.1 kB 1
1.55 2014-06-01 3636 weekly downloads
1.54 2013-12-28 44 weekly downloads
1.53 2013-09-29 44 weekly downloads
1.52 2013-06-27 33 weekly downloads
1.51 2013-02-20 44 weekly downloads
1.50 2012-11-01 22 weekly downloads
1.49 2012-11-01 44 weekly downloads
1.48 2012-07-19 11 weekly downloads
1.47 2012-04-18 11 weekly downloads
1.46 2012-01-04 11 weekly downloads
1.45 2011-10-26 11 weekly downloads
1.44 2011-07-22 33 weekly downloads
1.43 2011-07-21 44 weekly downloads
1.42 2011-02-06 33 weekly downloads
1.41 2010-10-16 33 weekly downloads
1.40 2010-05-21 33 weekly downloads
1.39 2010-03-07 22 weekly downloads
1.38 2009-12-24 33 weekly downloads
1.37 2009-08-09 33 weekly downloads
1.36 2009-05-09 22 weekly downloads
1.35 2009-02-28 22 weekly downloads
1.34 2009-01-05 22 weekly downloads
1.33 2008-11-05 11 weekly downloads
1.32 2008-06-28 11 weekly downloads
1.31 2008-06-06 11 weekly downloads
1.30 2008-04-06 11 weekly downloads
1.29 2007-09-11 11 weekly downloads
1.28 2007-08-31 11 weekly downloads
1.27 2007-08-21 11 weekly downloads
1.26 2007-07-31 11 weekly downloads
1.25 2007-07-18 11 weekly downloads
1.24 2007-05-18 11 weekly downloads
1.23 2007-03-29 11 weekly downloads
1.22 2007-03-04 11 weekly downloads
1.21 2007-02-15 11 weekly downloads
1.20 2006-11-09 11 weekly downloads
1.19 2006-11-03 11 weekly downloads
1.18 2006-10-27 11 weekly downloads
1.17 2006-10-20 11 weekly downloads
1.16 2006-10-13 11 weekly downloads
1.15 2006-09-28 11 weekly downloads
1.14 2006-09-21 11 weekly downloads
1.13 2006-09-15 11 weekly downloads
1.12 2006-09-07 11 weekly downloads
1.11 2006-08-31 11 weekly downloads
1.10 2006-08-24 11 weekly downloads
1.9 2006-08-18 11 weekly downloads
1.8 2006-08-10 11 weekly downloads
1.7 2006-08-03 11 weekly downloads
1.6 2006-07-27 11 weekly downloads
1.5 2006-07-20 11 weekly downloads
1.4 2006-07-06 11 weekly downloads
1.3 2006-06-29 11 weekly downloads
1.2 2006-06-22 11 weekly downloads
1.1 2006-06-13 11 weekly downloads
1.0 2006-06-07 22 weekly downloads
readme.txt 2014-06-01 5.1 kB 11 weekly downloads
metaf2xml can download, parse and decode aviation routine weather reports (METAR, SPECI, SAO), aerodrome forecasts (TAF), synoptic observations (SYNOP) and observations from buoys (BUOY). The extracted data can be written as XML or passed to a user-defined function (all done in Perl). It also provides XSLT style sheets to convert the XML to plain language (text, HTML), or XML with different schemas. A web-based (CGI) user interface can be used to download and display up-to-date weather data from NOAA, Ogimet, and other sources. The documentation for all Perl scripts and modules (as manual and in other formats) can be generated from the POD inside them. metaf2xml consists of the following files: metaf2xml/parser.pm contains the code to parse messages and write the data as XML or pass it to a user-defined function The structure of the XML file probably needs some comment. There were 2 design goals: - one should be able to check the contents of an XML file as strict as possible but with little effort - it should not contain additional data that is not in the original message. DTD is used to check the structure and values of the XML. XSD could have been used, too, but it seemed more effort. DTD cannot restrict the string-value of a node, but only its attributes. Therefore values are assigned to an otherwise empty node with the attribute 'v' (for "value") and, if applicable, 'u' (for "unit"), 'q' (for "qualifier"), and 'rp' and/or 'rn' (possible positive and/or negative deviation from the displayed value due to rounding of the observed value): <wind> <dir v="210" rp="4" rn="5"/> <!-- 205..214° --> <speed v="12" u="KT"/> <!-- 12 kt --> </wind> <RVR> <distance v="325" rp="24" u="M"/> <!-- 325..349 m --> </RVR> <cloudCover v="OVC"/> It is concise, but human-legible as well. Each entry also contains the original string from the message as an attribute named 's' (for "string"): <cloud s="OVC200"> <cloudBase v="20000" u="FT" /> <cloudCover v="OVC" /> </cloud> There are 2 exceptions to the "no additional data" goal: - if a cloud layer is the ceiling, it will have the "isCeiling" tag - if temperature and dew point are given it will have 4 tags for the humidity (from 4 different formulas) Both items are considered "hard to compute" in XSL though it certainly is possible. Further information can be found in metaf2xml::parser(3pm). metaf2xml.pl example script to parse messages and write the data as XML requires metaf2xml::parser Further information can be found in metaf2xml(1). metaf2xml/src2raw.pm contains the code to convert data from different sources of METAR, TAF, SYNOP and BUOY information to the format expected by metaf2xml::parser. Further information can be found in metaf2xml::src2raw(3pm). metafsrc2raw.pl example script to convert data from different sources to the format expected by metaf2xml::parser requires metaf2xml::src2raw Further information can be found in metafsrc2raw(1). metaf.pl (CGI) script to download and display METAR/TAF/SYNOP/BUOY messages requires metaf2xml::parser, metaf2xml::src2raw may require curl, xsltproc, and a web server (depending on use) Further information can be found in metaf(1). metaf-html.xsl, metaf-text.xsl two wrapper files for metaf.xsl They define the output method (HTML or text) and then include metaf.xsl. metaf.xsl XML style sheet to transform the contents of the generated XML file All abbreviations are converted to plain language (language support from metaf-lang*.xml), one message item per line. The output format can be text or HTML. For the text format, the columns are separated by tabulators. metaf-sum-html.xsl, metaf-sum-text.xsl two wrapper files for metaf-sum.xsl They define the output method (HTML or text) and then include metaf-sum.xsl. metaf-sum.xsl XML style sheet to transform the contents of the generated XML file The output is in the form of a summary, one METAR/SYNOP/BUOY per line (plus one for METAR trends). The output format can be text or HTML. metaf-ui.xsl XML style sheet to generate the header, footer and input form for the user interface metaf-fullhtml.xsl, metaf-sum-ui.xsl top level XML style sheets for the user interface They define the output method HTML and then include metaf.xsl or metaf-sum.xsl, respectively, and metaf-ui.xsl. metaf-lang.xml, metaf-lang-{de,en,es,ru}.xml XML files with plain language text in several languages Currently output in german, english, spanish, and russian is supported. stations.xml example data file with additional station information, read by metaf.xsl. This is, and will remain, a stub, and will not be extended or updated. metaf.dtd the Document Type Definition for the XML data
Source: readme.txt, updated 2014-06-01