Update main.py
Browse files
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 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
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',
|