mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
GridInfoRetriever sys import
This commit is contained in:
parent
486a1ca820
commit
a84c045204
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
from awips import ThriftClient
|
from awips import ThriftClient
|
||||||
|
@ -29,7 +30,6 @@ class GridInfoRetriever:
|
||||||
req.setReftime(ct)
|
req.setReftime(ct)
|
||||||
|
|
||||||
req.setFcstsec(self.forecast)
|
req.setFcstsec(self.forecast)
|
||||||
print(req)
|
|
||||||
resp = self.client.sendRequest(req)
|
resp = self.client.sendRequest(req)
|
||||||
|
|
||||||
# Take care of bytestring encodings in python3
|
# Take care of bytestring encodings in python3
|
||||||
|
@ -136,7 +136,6 @@ def getrow(server, table, model, cycle, forecast):
|
||||||
|
|
||||||
# This is the standard boilerplate that runs this script as a main
|
# This is the standard boilerplate that runs this script as a main
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
|
||||||
# Run Test
|
# Run Test
|
||||||
srv = 'edex-cloud.unidata.ucar.edu'
|
srv = 'edex-cloud.unidata.ucar.edu'
|
||||||
tbl = 'grid'
|
tbl = 'grid'
|
||||||
|
|
Loading…
Add table
Reference in a new issue