Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -55,7 +55,7 @@ def get_data(address, start_date, end_date, radius_miles, get_max):
|
|
55 |
|
56 |
# Convert Lat Lon to row & col on Array
|
57 |
try:
|
58 |
-
transform = pickle.load(open(
|
59 |
row, col = rasterio.transform.rowcol(transform['affine'], lon, lat)
|
60 |
except:
|
61 |
transform =row=col=None
|
|
|
55 |
|
56 |
# Convert Lat Lon to row & col on Array
|
57 |
try:
|
58 |
+
transform = pickle.load(open('apcp_hrrr_api/Data/hrrr_crs.pkl', 'rb'))
|
59 |
row, col = rasterio.transform.rowcol(transform['affine'], lon, lat)
|
60 |
except:
|
61 |
transform =row=col=None
|