Repository: python-metar/python-metar

Issue:
Unparsed groups in body 'AUTO'
I've found some METARS that cannot be parsed because they have 'COR AUTO' immediately following the report time. For instance:

```
>>> from metar.Metar import Metar
>>> Metar('''METAR KADW 252356Z COR AUTO 10008KT 10SM CLR 19/11 A2986
           RMK AO2 SLP117 T01880111 10230 20188 50004 $ COR
           0007=''')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jhaiduce/Development/python-metar/metar/Metar.py", line 499, in __init__
    raise ParserError(message)
metar.Metar.ParserError: Unparsed groups in body 'AUTO' while processing 'METAR KADW 252356Z COR AUTO 10008KT 10SM CLR 19/11 A2986
           RMK AO2 SLP117 T01880111 10230 20188 50004 $ COR
           0007='
```


Discussion:

Patch:
diff --git a/metar/Metar.py b/metar/Metar.py
index 9ac23db..bbe3e6e 100644
--- a/metar/Metar.py
+++ b/metar/Metar.py
@@ -43,7 +43,7 @@ TIME_RE = re.compile(
         (?P<min>\d\d)Z?\s+""",
     re.VERBOSE,
 )
-MODIFIER_RE = re.compile(r"^(?P<mod>AUTO|FINO|NIL|TEST|CORR?|RTD|CC[A-G])\s+")
+MODIFIER_RE = re.compile(r"^(?P<mod>AUTO|COR AUTO|FINO|NIL|TEST|CORR?|RTD|CC[A-G])\s+")
 WIND_RE = re.compile(
     r"""^(?P<dir>[\dO]{3}|[0O]|///|MMM|VRB)
         (?P<speed>P?[\dO]{2,3}|[/M]{2,3})


Test patch:
diff --git a/test/test_metar.py b/test/test_metar.py
index 3770baf..08824e6 100644
--- a/test/test_metar.py
+++ b/test/test_metar.py
@@ -602,3 +602,14 @@ def test_not_strict_mode():
     assert report.station_id == "K9L2"
     assert report.vis.value() == 10
     assert report.sky_conditions() == "clear"
+
+
+def test_cor_auto_mod():
+    """Test parsing of a COR AUTO Metar."""
+    code = (
+        "METAR KADW 252356Z COR AUTO 10008KT 10SM CLR 19/11 A2986 "
+        "RMK AO2 SLP117 T01880111 10230 20188 50004 $ COR 0007="
+    )
+    m = Metar.Metar(code, year=2019)
+
+    assert m.mod == 'COR AUTO'