Board index FlightGear Development New features

METAR Interpreter ?

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

METAR Interpreter ?

Postby f-ojac » Sun Feb 03, 2013 1:14 pm

An idea from a French user on a forum : build within FG a METAR interpreter, able to say from :
KSFO 031256Z 28004KT 10SM FEW008 BKN023 BKN180 09/05 A3025 RMK AO2 SLP242 T00890050
Something like :
Conditions at: KSFO (SAN FRANCISCO , CA, US) observed 1256 UTC 03 February 2013
Temperature: 8.9°C (48°F)
Dewpoint: 5.0°C (41°F) [RH = 76%]
Pressure (altimeter): 30.25 inches Hg (1024.5 mb)
[Sea-level pressure: 1024.2 mb]
Winds: from the W (280 degrees) at 5 MPH (4 knots; 2.1 m/s)
Visibility: 10 or more miles (16+ km)
Ceiling: 2300 feet AGL
Clouds: few clouds at 800 feet AGL
broken clouds at 2300 feet AGL
broken clouds at 18000 feet AGL
Weather: no significant weather observed at this time
I know that all airmen should know the full METAR dictionary, but...
Hosting terrasync, World Scenery, TGWeb on my own private server. Click here to donate and help to make the service last.
f-ojac
 
Posts: 1296
Joined: Fri Mar 07, 2008 9:50 am
Version: GIT
OS: GNU/Linux

Re: METAR Interpreter ?

Postby Johan G » Sun Feb 03, 2013 2:39 pm

Seems like a good idea, though I think that there are already something like that available.

If I tune in an ATIS frequency I can hear the ATIS information read up (note that I still use 2.4.0). It might be a good idea to have a look at how things are done there, and maybe even generalise the functionality so it can be used for other purposes as well (say for example automatic ATC and tutorials).
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 6021
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.2
OS: Windows 10, 64 bit

Re: METAR Interpreter ?

Postby sa7k » Sun Feb 03, 2013 4:10 pm

You have that in FGo!
http://wiki.flightgear.org/FGo!
The bad thing is you can't use while flying. Unless you launch two FGo! instances.
Image
Image
sa7k
 
Posts: 382
Joined: Fri Mar 16, 2012 2:24 pm
Location: SA7K
Callsign: LV-EPM
IRC name: sa7k
Version: git
OS: debian

Re: METAR Interpreter ?

Postby Thorsten » Sun Feb 03, 2013 4:11 pm

We have an interperter that chops METAR strings into properties (from where the weather systems use it) - it's a trivial exercise to add the text with the properties inserted in the right places. Canvas probably could even make a nice display for it.
Thorsten
 
Posts: 11748
Joined: Mon Nov 02, 2009 8:33 am

Re: METAR Interpreter ?

Postby f-ojac » Sun Feb 03, 2013 4:20 pm

Yes, I know about ATIS and other possibilities to have a look at the weather properties. However, having something like shown is the FGo launcher "in sim" would be great.
Hosting terrasync, World Scenery, TGWeb on my own private server. Click here to donate and help to make the service last.
f-ojac
 
Posts: 1296
Joined: Fri Mar 07, 2008 9:50 am
Version: GIT
OS: GNU/Linux

Re: METAR Interpreter ?

Postby Hooray » Sun Feb 03, 2013 8:43 pm

Like Thorsten said, definitely possible using Nasal scripting - the canvas would even be optional, but could obviously allow lots of custom stuff, i.e. images to be used.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11966
Joined: Tue Mar 25, 2008 8:40 am

Re: METAR Interpreter ?

Postby Johan G » Mon Feb 04, 2013 7:50 pm

f-ojac wrote in Sun Feb 03, 2013 4:20 pm:...having something like shown is the FGo launcher "in sim" would be great.

Oops, I misunderstood you.

Hooray wrote in Sun Feb 03, 2013 8:43 pm:...definitely possible using Nasal scripting.

Putting it in a dialogue, hopefully possible to bind to a key, is probably the way to go.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 6021
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.2
OS: Windows 10, 64 bit


Return to New features

Who is online

Users browsing this forum: No registered users and 1 guest