mattritchey commited on
Commit
560c525
·
verified ·
1 Parent(s): 92c7e89

Update main.py

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