mattritchey commited on
Commit
cb86663
·
verified ·
1 Parent(s): bdf1668

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -6
main.py CHANGED
@@ -50,12 +50,11 @@ def get_hail_data(address, start_date, end_date, radius_miles, get_max):
50
  lat, lon= geocode_address(address)
51
 
52
  # Convert Lat Lon to row & col on Array
53
- try:
54
- transform = pickle.load(open('Data/transform_mrms.pkl', 'rb'))
55
-
56
- row, col = rasterio.transform.rowcol(transform, lon, lat)
57
- except:
58
- row=col=1000
59
 
60
  files = [
61
  'Data/2023_hail.h5',
 
50
  lat, lon= geocode_address(address)
51
 
52
  # Convert Lat Lon to row & col on Array
53
+
54
+ transform = pickle.load(open('Data/transform_mrms.pkl', 'rb'))
55
+
56
+ row, col = rasterio.transform.rowcol(transform, lon, lat)
57
+
 
58
 
59
  files = [
60
  'Data/2023_hail.h5',