Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecb4094 commit 2fdea23Copy full SHA for 2fdea23
metar/Metar.py
@@ -101,7 +101,7 @@ class ParserError(Exception):
101
TEMP_RE = re.compile(r"""^(?P<temp>(M|-)?\d+|//|XX|MM)/
102
(?P<dewpt>(M|-)?\d+|//|XX|MM)?\s+""",
103
re.VERBOSE)
104
-PRESS_RE = re.compile(r"""^(?P<unit>A|Q|QNH|SLP)?
+PRESS_RE = re.compile(r"""^(?P<unit>A|Q|QNH)?
105
(?P<press>[\dO]{3,4}|////)
106
(?P<unit2>INS)?\s+""",
107
@@ -731,8 +731,6 @@ def _handleSealvlPressRemark( self, d ):
731
value += 1000
732
else:
733
value += 900
734
- if not self.press:
735
- self.press = pressure(value,"MB")
736
self.press_sea_level = pressure(value,"MB")
737
738
def _handlePrecip24hrRemark( self, d ):
0 commit comments