SafranCassiopee / csharp-metar-display

GNU General Public License v3.0
1 stars 2 forks source link

FormatException on decoding METAR with variable wind #4

Open davwheat opened 5 years ago

davwheat commented 5 years ago

Attempting to be decoded:

EHAM 152125Z 32005KT 300V360 9999 FEW017 BKN020 15/11 Q1020 NOSIG

Exception raised:

FormatException

Expected:

ICAO Code: EHAM
Day of month: 15
Time: 21:25 UTC
Wind: True direction = 320 degrees, Speed: 05 knots
Wind direction is variable between 300 and 360
Visibility: 10 km or more
Clouds: A few , at 1700 feet above aerodrome level
Clouds: Broken sky , at 2000 feet above aerodrome level
Temperature: 15 °C
Dewpoint: 11 °C
QNH (Sea-level pressure): 1020 mb
No significant changes expected in the near future

I believe it is the variable wind that is causing this (300V360)

inouire commented 5 years ago

@jpjoux FYI it's seen as valid with the PHP version https://php-metar-decoder.cassiopee.aero/index.php?metar=EHAM+152125Z+32005KT+300V360+9999+FEW017+BKN020+15%2F11+Q1020+NOSIG