Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Station being incorrectly parsed #50

Closed
minestarnl opened this issue Dec 7, 2022 · 2 comments
Closed

Station being incorrectly parsed #50

minestarnl opened this issue Dec 7, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@minestarnl
Copy link

Hi there,

While playing around with this library I found a problem in parsing some metars, When the raw metar is preceeded by 'AUTO' or 'AMD' The station is being reported as 'AUTO' or 'AMD'. I believe this to be incorrect behaviour.

Example outputs:
{ "station": "AUTO", "message": "AUTO LSZL 061950Z 10002KT 9999NDV NCD 01/M00 Q1015 RMK=", "remarks": [], "clouds": [], "weatherConditions": [], "trends": [], "runwaysInfo": [], "wind": { "speed": 2, "direction": "E", "degrees": 100, "unit": "KT" }, "visibility": { "indicator": "P", "value": 9999, "unit": "m", "ndv": true }, "temperature": 1, "dewPoint": 0, "altimeter": 1015, "remark": "" },

{ "station": "AMD", "message": "AMD LSZL 070643Z 0706/0715 VRB01KT CAVOK PROB40 TEMPO 0706/0708 4000 BCFG FEW002 PROB30 TEMPO 0706/0708 1200 PRFG BKN002=", "remarks": [], "clouds": [], "weatherConditions": [], "trends": [ { "type": "TEMPO", "weatherConditions": [ { "descriptive": "BC", "phenomenons": [ "FG" ] } ], "clouds": [ { "quantity": "FEW", "height": 200 } ], "times": [], "remarks": [], "raw": "TEMPO 0706/0708 4000 BCFG FEW002 PROB30", "visibility": { "value": 4000, "unit": "m" } }, { "type": "TEMPO", "weatherConditions": [ { "descriptive": "PR", "phenomenons": [ "FG" ] } ], "clouds": [ { "quantity": "BKN", "height": 200 } ], "times": [], "remarks": [], "raw": "TEMPO 0706/0708 1200 PRFG BKN002", "visibility": { "value": 1200, "unit": "m" } } ], "runwaysInfo": [], "wind": { "speed": 1, "direction": "VRB", "unit": "KT" }, "cavok": true, "visibility": { "indicator": "P", "value": 9999, "unit": "m" } },

@aeharding
Copy link
Owner

Thanks for reporting. Definitely a bug!

@aeharding
Copy link
Owner

Resolve in v7.1.2:

https://aeharding.github.io/metar-taf-parser/metar?input=AUTO+LSZL+061950Z+10002KT+9999NDV+NCD+01%2FM00+Q1015+RMK%3D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants