diff --git a/CHANGELOG.md b/CHANGELOG.md index 38b6427..3c42d99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## [1.7.1] - 2023-12-09 + +### Fixed + +- Parsing of `WeatherCondition` tokens with recent (`RE`) intensity. + ## [1.7.0] - 2023-08-20 ### Added diff --git a/metar_taf_parser/locale/en/LC_MESSAGES/messages.mo b/metar_taf_parser/locale/en/LC_MESSAGES/messages.mo index 035b46c..b5c0c0e 100644 Binary files a/metar_taf_parser/locale/en/LC_MESSAGES/messages.mo and b/metar_taf_parser/locale/en/LC_MESSAGES/messages.mo differ diff --git a/metar_taf_parser/locale/en/LC_MESSAGES/messages.po b/metar_taf_parser/locale/en/LC_MESSAGES/messages.po index 379d450..44f7cf4 100644 --- a/metar_taf_parser/locale/en/LC_MESSAGES/messages.po +++ b/metar_taf_parser/locale/en/LC_MESSAGES/messages.po @@ -334,6 +334,10 @@ msgstr "Light" msgid "Intensity.+" msgstr "Heavy" +#: +msgid "Intensity.RE" +msgstr "Recent" + #: msgid "Intensity.VC" msgstr "In the vicinity" diff --git a/metar_taf_parser/locale/fr/LC_MESSAGES/messages.mo b/metar_taf_parser/locale/fr/LC_MESSAGES/messages.mo index ed63d3b..2273e92 100644 Binary files a/metar_taf_parser/locale/fr/LC_MESSAGES/messages.mo and b/metar_taf_parser/locale/fr/LC_MESSAGES/messages.mo differ diff --git a/metar_taf_parser/locale/fr/LC_MESSAGES/messages.po b/metar_taf_parser/locale/fr/LC_MESSAGES/messages.po index 97e2424..3642826 100644 --- a/metar_taf_parser/locale/fr/LC_MESSAGES/messages.po +++ b/metar_taf_parser/locale/fr/LC_MESSAGES/messages.po @@ -30,6 +30,14 @@ msgstr "nuages épars" msgid "CloudQuantity.SKC" msgstr "pas de nuage" +#: +msgid "CloudType.AC" +msgstr "Altocumulus" + +#: +msgid "CloudType.AS" +msgstr "Altostratus" + #: msgid "CloudType.CB" msgstr "Cumunolinbus" @@ -38,6 +46,30 @@ msgstr "Cumunolinbus" msgid "CloudType.CC" msgstr "Cirrocumulus" +#: +msgid "CloudType.CI" +msgstr "Cirrus" + +#: +msgid "CloudType.CS" +msgstr "Cirrostratus" + +#: +msgid "CloudType.CU" +msgstr "Cumulus" + +#: +msgid "CloudType.NS" +msgstr "Nimbostratus" + +#: +msgid "CloudType.SC" +msgstr "Stratocumulus" + +#: +msgid "CloudType.ST" +msgstr "Stratus" + #: msgid "CloudType.TCU" msgstr "Cumulus bourgeonnant" @@ -70,6 +102,10 @@ msgstr "bonne" msgid "DepositBrakingCapacity.99" msgstr "valeurs non fiables" +#: +msgid "DepositBrakingCapacity.default" +msgstr "friction coefficient of {0}" + #: msgid "DepositCoverage.NOT_REPORTED" msgstr "non reportée" @@ -98,6 +134,30 @@ msgstr "non reportée" msgid "DepositThickness.00" msgstr "moins de 1 mm" +#: +msgid "DepositThickness.92" +msgstr "10 cm" + +#: +msgid "DepositThickness.93" +msgstr "15 cm" + +#: +msgid "DepositThickness.94" +msgstr "20 cm" + +#: +msgid "DepositThickness.95" +msgstr "25 cm" + +#: +msgid "DepositThickness.96" +msgstr "30 cm" + +#: +msgid "DepositThickness.97" +msgstr "35 cm" + #: msgid "DepositThickness.98" msgstr "40 cm ou plus" @@ -106,6 +166,10 @@ msgstr "40 cm ou plus" msgid "DepositThickness.99" msgstr "fermée" +#: +msgid "DepositThickness.default" +msgstr "{0} mm" + #: msgid "DepositType.NOT_REPORTED" msgstr "non reportée" @@ -270,6 +334,10 @@ msgstr "Faible" msgid "Intensity.+" msgstr "Fort" +#: +msgid "Intensity.RE" +msgstr "Récent(e)" + #: msgid "Intensity.VC" msgstr "Au voisinage de" @@ -326,6 +394,10 @@ msgstr "granules de glace" msgid "Phenomenon.PO" msgstr "tourbillon de poussières sable" +#: +msgid "Phenomenon.PY" +msgstr "spray" + #: msgid "Phenomenon.RA" msgstr "pluie" @@ -610,6 +682,10 @@ msgstr "couche de nuages variant entre {0} et {1}" msgid "Remark.Variable.Sky.Condition.Height" msgstr "couche de nuages à {0} pieds variant entre {1} et {2}" +#: +msgid "Remark.VIRGA" +msgstr "virga" + #: msgid "Remark.Virga.Direction" msgstr "virga au {0} de la station" @@ -698,6 +774,10 @@ msgstr "Sud Ouest" msgid "Converter.U" msgstr "accroissement" +#: +msgid "Converter.VRB" +msgstr "Variable" + #: msgid "Converter.W" msgstr "Ouest" @@ -754,10 +834,18 @@ msgstr "altimètre (hPa)" msgid "ToString.amendment" msgstr "amendement" +#: +msgid "ToString.auto" +msgstr "auto" + #: msgid "ToString.baseHeight" msgstr "Base de la couche en pied" +#: +msgid "ToString.cavok" +msgstr "cavok" + #: msgid "ToString.clouds" msgstr "nuages" @@ -834,6 +922,10 @@ msgstr "message original" msgid "ToString.name" msgstr "nom" +#: +msgid "ToString.nosig" +msgstr "nosig" + #: msgid "ToString.phenomenons" msgstr "phénomènes" @@ -890,6 +982,10 @@ msgstr "tendance" msgid "ToString.trends" msgstr "tendances" +#: +msgid "ToString.type" +msgstr "type" + #: msgid "ToString.visibility.main" msgstr "visibilité principale" @@ -914,6 +1010,10 @@ msgstr "visibilité verticale (pieds)" msgid "ToString.weather.conditions" msgstr "conditions météorologique" +#: +msgid "ToString.wind.direction" +msgstr "direction" + #: msgid "ToString.wind.direction.degrees" msgstr "direction (degrés)" diff --git a/metar_taf_parser/locale/messages.pot b/metar_taf_parser/locale/messages.pot index 379d450..44f7cf4 100644 --- a/metar_taf_parser/locale/messages.pot +++ b/metar_taf_parser/locale/messages.pot @@ -334,6 +334,10 @@ msgstr "Light" msgid "Intensity.+" msgstr "Heavy" +#: +msgid "Intensity.RE" +msgstr "Recent" + #: msgid "Intensity.VC" msgstr "In the vicinity" diff --git a/metar_taf_parser/model/enum.py b/metar_taf_parser/model/enum.py index 9031942..73497e5 100644 --- a/metar_taf_parser/model/enum.py +++ b/metar_taf_parser/model/enum.py @@ -105,6 +105,7 @@ class Intensity(enum.Enum): LIGHT = '-' HEAVY = '+' IN_VICINITY = 'VC' + RECENT = 'RE' def __repr__(self): return _('Intensity.' + self.value) diff --git a/metar_taf_parser/parser/parser.py b/metar_taf_parser/parser/parser.py index cb36f1c..59574b4 100644 --- a/metar_taf_parser/parser/parser.py +++ b/metar_taf_parser/parser/parser.py @@ -99,7 +99,7 @@ class AbstractParser(abc.ABC): BECMG = 'BECMG' RMK = 'RMK' TOKENIZE_REGEX = r'\s((?=\d\/\dSM)(?