Improved method of stopping at tropopause
This commit is contained in:
parent
57c3f2fe65
commit
d8af90872f
1 changed files with 3 additions and 12 deletions
|
@ -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]))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue