Temperature bug?

12 views
Skip to first unread message

Joseph

unread,
Feb 20, 2012, 10:30:14 PM2/20/12
to GeoNames
Hi,

I found the function to find nearby weather occasionally reports wrong
temperature when there is runway information. Like below

ZBAA 190100Z 36003MPS 1800 R01/1400N R36R/1400N R36L/1600N BR NSC M02/
M07 Q1029 NOSIG

The function reports 1 DegC (it treats "R01/1400N" as the temperature
information) and the right temperature should be -2 DegC (i.e.M02/
M07). Possible to add a simple logic to make sure the temperature
either contains no prefix or only contains prefix "M"?

Rgds,
Joseph

Marc Wick

unread,
Feb 22, 2012, 1:40:09 AM2/22/12
to geon...@googlegroups.com
Hi Joseph

There are some glitches with the metar parser. Do you know a good metar
parser in java?

Best Regards

Marc

Reply all
Reply to author
Forward
0 new messages