Giter VIP home page Giter VIP logo

metar-taf's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

metar-taf's Issues

Possible wrong code for Ice Pellets on Metar.php

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

Wind is defaulting to mps, should be able to get it in kt

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 :)

Australian BOM is returning ////// as NCD

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
  

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.