hsdn / metar-taf Goto Github PK
View Code? Open in Web Editor NEWThis script is a PHP library which allows to parse the METAR and TAF code, and convert it to an array of data parameters.
License: Other
This script is a PHP library which allows to parse the METAR and TAF code, and convert it to an array of data parameters.
License: Other
After few tests with this PHP script (Thank you BTW for sharing it), I came to the conclusion the code for Ice Pellets is not the right one. More precisely, on line #143 the code :
'PE' => 'ice pellets',
should be replaced by
'PL' => 'ice pellets',
Here is sample METAR for Montreal I used : CYUL 081236Z 15019G24KT 4SM -FZDZ -PL DRSN OVC020 M02/M05 A2978 RMK NS8 SLP087
It's funny how US operates differently than Europe and Australia :) In Australia we don't know MPS for planes so we are using kt (and that's how metars are displaying) I see there is function that is converting KT to MPS and displaying in MPS so it would be nice to also get stuff in KT and not needing to convert it back from float number :)
When we get cloud height it's only in meters and I need to convert it back to feet
I see that BOM in australia can return /////// as null cloud, and get error:
Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /Users/mknappe/Projects/metar/src/Metar.php:1034
Stack trace:
#0 /Users/mknappe/Projects/metar/src/Metar.php(419): Metar->get_clouds('//////')
#1 /Users/mknappe/Projects/metar/getmetar.php(75): Metar->parse()
#2 /Users/mknappe/Projects/metar/getmetar.php(8): fetchMetarData()
#3 {main}
thrown in /Users/mknappe/Projects/metar/src/Metar.php on line 1034
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.