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_speed = 0
|
||||||
base_dir = 0
|
base_dir = 0
|
||||||
|
|
||||||
if token == '=':
|
if token == '=' or token == '//END':
|
||||||
return
|
return {
|
||||||
|
'dir': None,
|
||||||
|
'speed': None
|
||||||
|
}
|
||||||
|
|
||||||
if token[2] != '/':
|
if token[2] != '/':
|
||||||
value = int(token[2])
|
value = int(token[2])
|
||||||
|
@ -326,7 +329,10 @@ class RAOBObs():
|
||||||
if self.tokens[i][0:2] == '88':
|
if self.tokens[i][0:2] == '88':
|
||||||
break
|
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 {
|
return {
|
||||||
'station': station,
|
'station': station,
|
||||||
|
|
Loading…
Add table
Reference in a new issue