Improved method of stopping at tropopause

This commit is contained in:
XANTRONIX 2025-03-29 19:49:17 -04:00
parent 57c3f2fe65
commit d8af90872f

View file

@ -271,12 +271,6 @@ class RAOBObs():
if num == '///':
return None
#
# Ignore the tropopause or height of max wind velocity.
#
if code == '77' or code == '88':
return None
pressure = self.code_to_pressure(code)
if pressure is None:
@ -432,14 +426,11 @@ class RAOBObs():
i = 2
while i < len(self.tokens):
prefix = self.tokens[i][0:2]
#
# Stop parsing at the tropopause.
#
if prefix == '88':
if self.tokens[i] == '21212':
break
prefix = self.tokens[i][0:2]
if prefix in self.PRESSURE_CODES:
samples.append(self.parse_ttbb_sample(self.tokens[i:i+2]))