GeoNames Home
|
Postal Codes
|
Download / Webservice
|
About
GeoNames Forum
Search
Recent Topics
Back to home page
Register
/
Login
Bug: METAR decoding error
Forum Index
->
General
Author
Message
14/01/2010 16:31:16
Subject:
Bug: METAR decoding error
alpenrouten.de
Joined: 07/01/2010 23:49:16
Messages: 5
Location: Germany
Offline
The findNearByWeatherXML service translates the METAR code
EDTL 141420Z 05001KT 0200 R21/M0350V0450N FZFG VV/// M01/M01 Q1006
into the XML string:
<geonames>
<observation>
<observation>
EDTL 141420Z 05001KT 0200 R21/M0350V0450N FZFG VV/// M01/M01 Q1006
</observation>
<observationTime>2010-01-14 14:20:00</observationTime>
<stationName>Lahr, CAN-AFB</stationName>
<ICAO>EDTL</ICAO>
<countryCode>DE</countryCode>
<elevation>156</elevation>
<lat>48.3666666666667</lat>
<lng>7.83333333333333</lng>
<temperature>21</temperature>
<dewPoint>-3</dewPoint>
<humidity>19</humidity>
<clouds>n/a</clouds>
<weatherCondition>n/a</weatherCondition>
<hectoPascAltimeter>1006.0</hectoPascAltimeter>
<windDirection>50.0</windDirection>
<windSpeed>01</windSpeed>
</observation>
</geonames>
but the values for <temperature> and <dewPoint> should be both "-1" and not "21" and "-3".
There seems to be a confusion between temperature data and the report data for runway 21.
17/01/2010 11:39:47
Subject:
Re:Bug: METAR decoding error
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
The parser is not perfect and there is an old open issue to find a better parser:
http://forum.geonames.org/gforum/posts/list/25.page
Marc
Forum Index
->
General
Go to:
Select a forum
Forum in English
-------------
General
Administrative Divisions
FAQ - frequently asked questions
Postal Codes
Discussion of GeoNames Toponyms
Forum in other language
-------------
Forum in Deutsch
Powered by
JForum 2.1.5
©
JForum Team
info@geonames.org
GeoNames Home
Postal Codes
Download / Webservice
Forum
About