mattritchey commited on
Commit
18a0912
1 Parent(s): dd00549

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -9,7 +9,7 @@ import h5py
9
  from skimage.morphology import disk
10
  from geopy.extra.rate_limiter import RateLimiter
11
  from geopy.geocoders import Nominatim
12
-
13
  app = FastAPI()
14
 
15
 
@@ -21,7 +21,7 @@ def root():
21
 
22
 
23
  def lat_lon_to_row_col(lat, lon):
24
- crs_dic = pickle.load(open('Data/hrrr_crs.pkl', 'rb'))
25
  transform = crs_dic['affine']
26
  trans_rtma = crs_dic['proj_4326']
27
  lon_rtma, lat_rtma = trans_rtma.transform(lon, lat)
 
9
  from skimage.morphology import disk
10
  from geopy.extra.rate_limiter import RateLimiter
11
  from geopy.geocoders import Nominatim
12
+ import pyproj
13
  app = FastAPI()
14
 
15
 
 
21
 
22
 
23
  def lat_lon_to_row_col(lat, lon):
24
+ crs_dic = pickle.load(open('hrrr_crs.pkl', 'rb'))
25
  transform = crs_dic['affine']
26
  trans_rtma = crs_dic['proj_4326']
27
  lon_rtma, lat_rtma = trans_rtma.transform(lon, lat)