Fix TTBB parser to stop parsing at tropopause
This commit is contained in:
parent
aca0547b93
commit
36dcd603ca
1 changed files with 6 additions and 0 deletions
|
@ -440,6 +440,12 @@ class RAOBObs():
|
||||||
while i < len(self.tokens):
|
while i < len(self.tokens):
|
||||||
prefix = self.tokens[i][0:2]
|
prefix = self.tokens[i][0:2]
|
||||||
|
|
||||||
|
#
|
||||||
|
# Stop parsing at the tropopause.
|
||||||
|
#
|
||||||
|
if prefix == '88':
|
||||||
|
break
|
||||||
|
|
||||||
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