Compare commits
2 commits
9badc86e33
...
b1401a86c8
Author | SHA1 | Date | |
---|---|---|---|
|
b1401a86c8 | ||
|
902ef26af3 |
2 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ select InitSpatialMetadata(1);
|
||||||
begin transaction;
|
begin transaction;
|
||||||
|
|
||||||
create table nexrad_wfo (
|
create table nexrad_wfo (
|
||||||
code TEXT NOT NULL,
|
code TEXT PRIMARY KEY NOT NULL,
|
||||||
city TEXT NOT NULL,
|
city TEXT NOT NULL,
|
||||||
state TEXT NOT NULL,
|
state TEXT NOT NULL,
|
||||||
address TEXT NOT NULL
|
address TEXT NOT NULL
|
||||||
|
@ -15,9 +15,9 @@ select
|
||||||
CreateSpatialIndex('nexrad_wfo', 'coord');
|
CreateSpatialIndex('nexrad_wfo', 'coord');
|
||||||
|
|
||||||
create table nexrad_radar (
|
create table nexrad_radar (
|
||||||
wban INTEGER,
|
call TEXT PRIMARY KEY NOT NULL,
|
||||||
call TEXT NOT NULL,
|
|
||||||
name TEXT NOT NULL,
|
name TEXT NOT NULL,
|
||||||
|
wban INTEGER,
|
||||||
site_elevation FLOAT NOT NULL,
|
site_elevation FLOAT NOT NULL,
|
||||||
tower_height FLOAT NOT NULL
|
tower_height FLOAT NOT NULL
|
||||||
);
|
);
|
||||||
|
|
|
@ -217,7 +217,6 @@ class AFOSMessageParser():
|
||||||
self.message.vtec_end = vtec.timestamp_end
|
self.message.vtec_end = vtec.timestamp_end
|
||||||
self.message.vtec_type = vtec.typeof
|
self.message.vtec_type = vtec.typeof
|
||||||
self.message.actions = vtec.actions
|
self.message.actions = vtec.actions
|
||||||
self.message.wfo = vtec.wfo
|
|
||||||
self.message.phenom = vtec.phenom
|
self.message.phenom = vtec.phenom
|
||||||
self.message.sig = vtec.sig
|
self.message.sig = vtec.sig
|
||||||
self.message.etn = vtec.etn
|
self.message.etn = vtec.etn
|
||||||
|
@ -250,6 +249,7 @@ class AFOSMessageParser():
|
||||||
|
|
||||||
if match is not None:
|
if match is not None:
|
||||||
self.message.product = match['product']
|
self.message.product = match['product']
|
||||||
|
self.message.wfo = match['wfo']
|
||||||
self.state = AFOSMessageParserState.BODY
|
self.state = AFOSMessageParserState.BODY
|
||||||
|
|
||||||
def parse_body(self, line: str):
|
def parse_body(self, line: str):
|
||||||
|
|
Loading…
Add table
Reference in a new issue