A aviation & planes forum. AviationBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » AviationBanter forum » rec.aviation newsgroups » Piloting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Why do have to read weather like this?



 
 
Thread Tools Display Modes
  #1  
Old April 22nd 05, 09:56 PM
Peter Clark
external usenet poster
 
Posts: n/a
Default

On Fri, 22 Apr 2005 19:55:22 GMT, Nathan Young
wrote:

It is not as trivial as it should be. METAR decoder software is
difficult to write because of the special weather statements that can
be included in a METAR entry (things like RVR, multiple precip types,
etc).

Simple parsers can grab winds, date, time, and cloud conditions. But
to be all-encompassing requires a bit more. I found a package (via
NOAA?) that would do METAR decodes, and it included approximately 30KB
of source code, which seemed like a lot for the extra bit of
functionality it provided.


30K just for the parser, or did that include station name lookup
tables? Seems like the code should just do one pass through a
relatively straightforward nest of if/thens/elseif. Load the METAR
into an array since each element is space-delineated, the first two
elements are going to be the station name and time of issue (assuming
no SPECI). Then the rest of the code would be if/then for the
multiple elements. So, 19015G32KT 1SM -RA BR BKN010 BKN035 OVC050
would be IF (windtype) THEN (printwind) ELSIF (visibility) THEN
(printvis) ELSEIF (preciptype) THEN (printprecip) ELSIF (cloudtype)
THEN (printcloudtype) ELSIF (temp) THEN (printtemp) (blah blah blah) -
rinse/recycle/repeat the analysis for all non-null elements in the
array..

I think the problem with most of the decoders I've seen is that they
expect METAR elements in fixed positions and only code for the base
case and don't do any processing. Old weather injectors for MS Flight
Sim are good examples of this. Get an RVR in there and they'd have
cloud base numbers for the temp and all sorts of nasty errors.
  #2  
Old April 22nd 05, 10:10 PM
Icebound
external usenet poster
 
Posts: n/a
Default


"Peter Clark" wrote in message
...
On Fri, 22 Apr 2005 19:55:22 GMT, Nathan Young
wrote:

It is not as trivial as it should be. METAR decoder software is
difficult to write because of the special weather statements that can
be included in a METAR entry (things like RVR, multiple precip types,
etc).

Simple parsers can grab winds, date, time, and cloud conditions. But
to be all-encompassing requires a bit more. I found a package (via
NOAA?) that would do METAR decodes, and it included approximately 30KB
of source code, which seemed like a lot for the extra bit of
functionality it provided.


30K just for the parser, or did that include station name lookup
tables?



Like most computer code, 20 percent of it probably does the real work....
and the 80 percent is there to make sure that it exits elegantly and does
not run into an infinite loop, crash-to-operating-system, or report
ridiculous value... whenever it is fed garbage input or exceptional
conditions.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Canadian weather links private Piloting 0 February 9th 05 08:02 PM
FS2002, Real world weather problem John431 Simulators 5 September 23rd 03 02:17 AM
Real World Weather (Isabelle) [email protected] Simulators 1 September 21st 03 09:53 PM
East Hampton (Long Island, NY) airport weather? Peter R. Piloting 6 July 25th 03 02:42 AM
And they say the automated Weather Station problems "ASOS" are insignificant because only light aircraft need Weather Observations and forecasts... Roy Piloting 4 July 12th 03 04:03 PM


All times are GMT +1. The time now is 05:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 AviationBanter.
The comments are property of their posters.