• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX METAR Format Decoder

Messages
9
Country
unitedstates
This question pops up with regularity on various sub-fora here and, as far as I can see, has never received a satisfactory response. Since hope springs eternal, I thought I'd give it new life by asking it again: Does anyone have an FSX METAR decoder class/function that they are willing to share? (Notice the emphasis on FSX METAR; standard FAA METARs - while not trivial - are simpler.)

I am building one right now and it causes me to want to pull all my hair out in frustration. :banghead: Not only is FSX METAR a METAR - i.e. something inherently hard to parse - but it features all kinds of extensions and optional parts that make it even harder, without employing some Artificial Intelligence, it seems. Why does it have to be so complicated?

Anyway, I would appreciate any and all help in finding/developing a viable FSX METAR parser/decoder. I will publish the results for all to see, if I ever get to the point of being able to fully parse and interpret an FSX-generated METAR.

AW
 
This question pops up with regularity on various sub-fora here and, as far as I can see, has never received a satisfactory response. Since hope springs eternal, I thought I'd give it new life by asking it again: Does anyone have an FSX METAR decoder class/function that they are willing to share? (Notice the emphasis on FSX METAR; standard FAA METARs - while not trivial - are simpler.)

I am building one right now and it causes me to want to pull all my hair out in frustration. :banghead: Not only is FSX METAR a METAR - i.e. something inherently hard to parse - but it features all kinds of extensions and optional parts that make it even harder, without employing some Artificial Intelligence, it seems. Why does it have to be so complicated?

Anyway, I would appreciate any and all help in finding/developing a viable FSX METAR parser/decoder. I will publish the results for all to see, if I ever get to the point of being able to fully parse and interpret an FSX-generated METAR.

AW

I asked the same about 5 months ago :)

I friend, who is a METAR Decoder Software GURU, was starting to work on it, and was unfortunally taken ill, so the project is on hold.

Yes, it's a Challenge ... :)

Geoff
 
To decode FSX real weather, I'm using the following function made be me (so sorry for the ugly code and for the french variables & comments).

There are still many cases I'm not taking in account, so it will be great to develop a class or function very reliable and complete

DecodeMeteo.cs
 
To decode FSX real weather, I'm using the following function made be me

Thanks. I wish I had waited for your reply. :) As it were, I ended up writing a 650+ line class, and I am not even done yet.


There are still many cases I'm not taking in account, so it will be great to develop a class or function very reliable and complete

My class is not complete by any means, but so far it has proven quite reliable. I'll publish it soon.

Meanwhile, I discovered that FSX lies about the weather. It reports clear skies when there are scattered or even broken clouds visible...

AW
 
So here is my take on the task of parsing an FSX METAR. You can download the result of my attempts at http://navsim.org/files/ParseMetar.0.1.0.zip. It's a Pascal (Delphi 7) project, containing a simple command-line harness, and the parser class (TMetarParser).

The parser is a Finite State Machine with 15 states currently. I realize that it is still inadequate in many ways, as it is unfinished, but it works most of the time. :) I will be very interested in seeing examples of FSX-generated METARs that are not parsed correctly.

-AW
 
I'm interested in a Metar parser for C++. I can get the metar string with simConnect but I am completely stuck. Started to look at regex, but it's horrible to implement in C++. So I'd be grateful if someone could share their solution or at least give some clues how to proceed.

Cheers,
Vitus
 
I'm interested in a Metar parser for C++. I can get the metar string with simConnect but I am completely stuck. Started to look at regex, but it's horrible to implement in C++. So I'd be grateful if someone could share their solution or at least give some clues how to proceed.

Cheers,
Vitus

I'm starting from scratch here, but I'll take a kick at it.

Doug
 
Back
Top