RE: SV: Strange METAR
Brought to you by:
iridium
From: Max H. <ma...@fl...> - 2002-03-26 17:46:59
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Maybe you could add a metar-check-hook. Normally, it doesn't check. > By setting a hook to a check routine (in a separate file or > something), you can > check the metar syntax immediately after processing it. > This way, you can concentrate on the metar decoder now, and add > the checking > software later, and have severa subsequent versions without > changing the metar decoder. > > I don't know if this fits in your phpweather 2 design. It's probably just as easy to include it in the phpweather.inc for 1.x, and in the phpweather class for phpweather 2 - it's not really any conceptually different from the sections of code that actually do the decoding. The question is, what do we do if it doesn't check out? Like in the example from EGBE, most of that metar was okay, but the wind was wrong. Do we want to err on the safe side, and discard the whole lot? Max -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com> iQA/AwUBPKC0CyaLdinGu4NfEQKABgCgrWTdxAKbApbp/FNEAv9y0Y1bEBgAn0I2 3qy32o6Z+Ifoa8GUZ9Hev3GQ =ROu0 -----END PGP SIGNATURE----- |