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 == '///':
|
if num == '///':
|
||||||
return None
|
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)
|
pressure = self.code_to_pressure(code)
|
||||||
|
|
||||||
if pressure is None:
|
if pressure is None:
|
||||||
|
@ -432,14 +426,11 @@ class RAOBObs():
|
||||||
i = 2
|
i = 2
|
||||||
|
|
||||||
while i < len(self.tokens):
|
while i < len(self.tokens):
|
||||||
prefix = self.tokens[i][0:2]
|
if self.tokens[i] == '21212':
|
||||||
|
|
||||||
#
|
|
||||||
# Stop parsing at the tropopause.
|
|
||||||
#
|
|
||||||
if prefix == '88':
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
prefix = self.tokens[i][0:2]
|
||||||
|
|
||||||
if prefix in self.PRESSURE_CODES:
|
if prefix in self.PRESSURE_CODES:
|
||||||
samples.append(self.parse_ttbb_sample(self.tokens[i:i+2]))
|
samples.append(self.parse_ttbb_sample(self.tokens[i:i+2]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue