GridInfoRetriever sys import

This commit is contained in:
mjames-upc 2018-12-11 14:28:50 -07:00
parent 486a1ca820
commit a84c045204

View file

@ -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'