Re: UK Military airfiled states - info
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2002-09-14 16:14:10
|
Nick B <nic...@ya...> writes: Hi Nick > I am working on a similar prog in Perl (whilst trying to learn PERL > at the same time!) then I discovered yours... :-) I dont have much > php knowledge but I am familiar with the UK METAR and TAF format > (part of my day job!) Great - I hope you can understand the code. But remember that PHP Weather itself is based on a Perl script called Geo::METAR: http://jeremy.zawodny.com/perl/Geo-METAR/ So perhaps it would be easier for you to look at this instead. But you'll find that PHP Weather recognises things that Geo::METAR doesn't unless it's been updated, but it look like that. > I'd like to borrow some bits from your code for the metar parsing, > to try and fix mine, and at the same time give something back in > return. Thanks! > In the UK Military airfield METARS you will see a colour state > reported, one of: > BLACK BLU WHT GRN YLO YLO1 YLO2 AMB RED. > which indicates the visibility and cloud base. > > A sample METAR: > EGXW 100950Z 22008KT 9999 FEW016 16/11 Q1018 BLU NOSIG > > [...] > > Maybe someone would like to include this in the METAR parsing > routine? Doesn't the regular visibility and cloud-group information already include the information given by the colours? If not, then I guess that we could include the code, but if it's a special code that's only used at a handful of stations in the UK, then perhaps it's too much trouble to be worth it... I don't know. -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |