Make all TTAA blocks parseable
This commit is contained in:
parent
b7bee03e85
commit
e119657309
1 changed files with 9 additions and 3 deletions
|
@ -151,8 +151,11 @@ class RAOBObs():
|
|||
base_speed = 0
|
||||
base_dir = 0
|
||||
|
||||
if token == '=':
|
||||
return
|
||||
if token == '=' or token == '//END':
|
||||
return {
|
||||
'dir': None,
|
||||
'speed': None
|
||||
}
|
||||
|
||||
if token[2] != '/':
|
||||
value = int(token[2])
|
||||
|
@ -326,7 +329,10 @@ class RAOBObs():
|
|||
if self.tokens[i][0:2] == '88':
|
||||
break
|
||||
|
||||
samples.append(self.parse_ttaa_sample(self.tokens[i:i+3]))
|
||||
data = self.parse_ttaa_sample(self.tokens[i:i+3])
|
||||
|
||||
if data is not None:
|
||||
samples.append(data)
|
||||
|
||||
return {
|
||||
'station': station,
|
||||
|
|
Loading…
Add table
Reference in a new issue