| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1050,6 +1050,8 @@ def _unparsedRemark(self, d): | |||
| 1050 | 1050 | (RUNWAY_RE, _handleRunway, True), | |
| 1051 | 1051 | (WEATHER_RE, _handleWeather, True), | |
| 1052 | 1052 | (SKY_RE, _handleSky, True), | |
| 1053 | + (WIND_RE, _handleWind, False), | ||
| 1054 | + (VISIBILITY_RE, _handleVisibility, True), | ||
| 1053 | 1055 | (TEMP_RE, _handleTemp, False), | |
| 1054 | 1056 | (PRESS_RE, _handlePressure, True), | |
| 1055 | 1057 | (RECENT_RE, _handleRecent, True), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -653,3 +653,17 @@ def test_cor_auto_mod(): | |||
| 653 | 653 | m = Metar.Metar(code, year=2019) | |
| 654 | 654 | ||
| 655 | 655 | assert m.mod == 'COR AUTO' | |
| 656 | + | ||
| 657 | + def test_wind_after_sky(): | ||
| 658 | + """ | ||
| 659 | + Test parsing of a METAR that lists wind after the sky groups | ||
| 660 | + """ | ||
| 661 | + | ||
| 662 | + code = ( | ||
| 663 | + "METAR KCOF 281855Z FEW029TCU FEW040 SCT250 09008KT 7SM 32/25 A3008 " | ||
| 664 | + "RMK VIRGA E TCU NE AND DSNT ALQDS SLP186" | ||
| 665 | + ) | ||
| 666 | + m = Metar.Metar(code, year=2007) | ||
| 667 | + | ||
| 668 | + assert m.wind_dir.value() == 90 | ||
| 669 | + assert m.wind_speed.value() == 8 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments