SimForums.com Homepage
Forum Home Forum Home > Flight One Partner Forums > Opus Software
  New Posts New Posts RSS Feed - Parsing of duplicate METARS
  FAQ FAQ  Forum Search   Register Register  Login Login

Parsing of duplicate METARS

 Post Reply Post Reply
Author
Message
TymK View Drop Down
Senior Member
Senior Member


Joined: November-01-2012
Location: Torun, Poland
Points: 368
Post Options Post Options   Thanks (0) Thanks(0)   Quote TymK Quote  Post ReplyReply Direct Link To This Post Topic: Parsing of duplicate METARS
    Posted: January-08-2019 at 6:45pm
Hi,

I've just run into an issue with some METARs in Alaska. It appears past observations are reported along with the current ones at many airports, e.g.:

PAPG 082206Z 13005KT 10SM -SN SCT006 BKN010 BKN019 M03/M04 A3006 RMK AO2 SNB06 $
PAPG 081722Z 0818/0918 24004KT 6SM -SHSN BKN006 OVC035      FM082000 26004KT P6SM SCT006 BKN040      FM082200 VRB02KT P6SM FEW006 SCT120 AMD LTD TO CLD VIS AND WIND 0906/0915      

In such cases, the second METAR is taken into account, which results in weather discrepancies. This can be worked around by selecting “Historic weather” while using the current time, but would it be possible to modify the parsing routine so that the most recent observation is used?

Thanks for looking into this ;-)

Best regards,
Tym
Back to Top
TymK View Drop Down
Senior Member
Senior Member


Joined: November-01-2012
Location: Torun, Poland
Points: 368
Post Options Post Options   Thanks (0) Thanks(0)   Quote TymK Quote  Post ReplyReply Direct Link To This Post Posted: January-10-2019 at 4:47pm
Hi again,

I think I've found the cause for the duplicate METARs. At certain times, forecasts are published without the TAF designator, and are therefore interpreted as actual MEATARs (I should've realised straight away due to the "0818/0918" bit). Earlier today (or last night in Alaska Wink), the METARS were correct, but now the TAFs are again missing the designator, so they are interpreted by OpusFSI as current weather reports...

Regards,
Tym


Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-10-2019 at 11:21pm
Using the historic weather option with the current time in the sim might give you the weather 24 hours ago.

You can also disable TAFs from being requested in the opus dialogs.

Stephen
Back to Top
TymK View Drop Down
Senior Member
Senior Member


Joined: November-01-2012
Location: Torun, Poland
Points: 368
Post Options Post Options   Thanks (0) Thanks(0)   Quote TymK Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 2:40am
Hi Stephen,

I'm sorry if I haven't explained the problem properly... Wink The thing is that at certain times, the Alaskan METARS published on the NOAA site are formatted incorrectly and lack the "TAF" designator in front of the forecast. For example, the current METAR is:

PAWG 110656Z 32004KT 10SM -PL FEW010 OVC035 00/M01 A2949 RMK AO2  RAE25PLB25SNB29E38 SLP985 T00001006 PNO $
PAWG 110714Z 1107/1206 30006KT 6SM -RA OVC040 WS020/14030KT      TEMPO 1107/1110 VRB04KT 4SM RAPL BR BKN025 OVC035      FM111100 13007KT P6SM -SHRA SCT025 BKN035      FM111500 11006KT P6SM VCSH FEW015 BKN035      FM112100 10005KT P6SM BKN040


As a result, Opus interprets the second line as an actual/current METAR rather than a TAF and uses it to generate weather:

Local (m), PAWG Wrangell, 0,4 km, 0,2 nm, E 088
Destination Not Specified
110714Z, QNH 1013 mb, 29,92 inches
Wind 300 at 6 knots (28 10), Upper 225/36 -51C, MagVar -22,0
Temp -2 Dew Point -3, Visibility 9656 metres, 6,0 miles
Overcast at 4000 feet, Light Rain
Overcast at 12900 feet
FL200 Target Temp -29, Wind 203 at 60 knots
FL040 Target Temp -1, Wind 152 at 42 knots
Ambient Temp -3  TAT -3

I fully understand that this is a problem with the NOAA site and not with Opus, but I just wanted to ask if it's possible to include an additional check that would, for example, use the latest METAR if duplicates are found. EDIT: In this case, the TAF is actually more recent than the METAR, so the correct option would probably be to use the first line and ignore the second...

Thanks and best regards,
Tym
Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 6:31am
Ok. I will see about identifying and decoding the new format.

Stephen
Back to Top
TymK View Drop Down
Senior Member
Senior Member


Joined: November-01-2012
Location: Torun, Poland
Points: 368
Post Options Post Options   Thanks (0) Thanks(0)   Quote TymK Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 6:37am
Thanks! Interestingly, at this time of day, the METARs are formatted OK, i.e. the second line has the "TAF" designator at the beginning, but in the morning (European time) it was missing. The same happened yesterday and the day before yesterday...

Tym
Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 6:39am
Ok. Thanks Tym. I’ll have a look at it today and post a new beta as soon as I make progress.

Do you have an OpusWeather.txt file with other examples, you can email it to me if you do.

Stephen
Back to Top
TymK View Drop Down
Senior Member
Senior Member


Joined: November-01-2012
Location: Torun, Poland
Points: 368
Post Options Post Options   Thanks (0) Thanks(0)   Quote TymK Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 6:48am
Thanks, e-mail sent! Smile
Tym

Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 6:51am
Got it thanks. I will report my progress here, going to have a look at it now.

Stephen Smile
Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 7:09am
Are you using the NOAA server ?
 
Stephen
Back to Top
TymK View Drop Down
Senior Member
Senior Member


Joined: November-01-2012
Location: Torun, Poland
Points: 368
Post Options Post Options   Thanks (0) Thanks(0)   Quote TymK Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 7:22am
Yes. I've also tried IVAO and it seems they are filtering out the problematic stuff, but I prefer NOAA as it has the most up-to-date reports.

Tym
Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 7:24am
I've confirmed the problem. Now working on the fix.
 
Stephen
Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 8:09am
I've posted the new OpusFSI v5 5.23.2 Beta version for you to try.
 
Stephen Thumbs Up
Back to Top
TymK View Drop Down
Senior Member
Senior Member


Joined: November-01-2012
Location: Torun, Poland
Points: 368
Post Options Post Options   Thanks (0) Thanks(0)   Quote TymK Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 9:02am
Thanks for taking care of this so quickly! Big smile I've only tested at KBOI and the misidentified TAF was ignored as it should. Alaskan METARs are correct for the time being, but I'll do some more testing tonight.

Thanks again!

Tym
Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-11-2019 at 9:05am
No problem. I’ll post a new release over the weekend after you’ve had time to try it out.

Stephen
Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-12-2019 at 6:23am
OK. I've confirmed the problem at PASI reported via email. Its related to the first NOAA problem reported above where the new TAF like forecast is being appended to the requested NOAA METAR. The solution requires additional detection to prevent the true METAR from being corrupted. Should have the fix ready soon.
 
Regards
Stephen Smile
Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-12-2019 at 7:08am
I've posted the new Beta version 5.23.3 for you to try.
 
Stephen Thumbs Up
Back to Top
TymK View Drop Down
Senior Member
Senior Member


Joined: November-01-2012
Location: Torun, Poland
Points: 368
Post Options Post Options   Thanks (0) Thanks(0)   Quote TymK Quote  Post ReplyReply Direct Link To This Post Posted: January-12-2019 at 7:41am
Hi Stephen,

Big thanks for the new beta! Thumbs Up I've tested it in a number of places, including those with missing TAF designators (e.g. PACV and KBOI with the 121153Z METARs), and everything works fine. Weather matches the current reports perfectly, and the missing timestamp is back. Of course, I made sure to switch the source back to the NOAA server. Wink

Cheers,
Tym
Back to Top
Opus Software View Drop Down
Senior Member
Senior Member


Joined: April-12-2012
Location: Grantham, UK
Points: 13663
Post Options Post Options   Thanks (0) Thanks(0)   Quote Opus Software Quote  Post ReplyReply Direct Link To This Post Posted: January-12-2019 at 10:19am
Thanks Tym.

Regards
Stephen Thumbs Up
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.01
Copyright ©2001-2018 Web Wiz Ltd.

This page was generated in 0.125 seconds.