Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -30,14 +30,14 @@ def get_hail_data(lat, lon, start_date, end_date, radius_miles, get_max):
|
|
30 |
years = [pd.Timestamp(start_date).year]
|
31 |
|
32 |
# Convert Lat Lon to row & col on Array
|
33 |
-
transform = pickle.load(open('transform_mrms.pkl', 'rb'))
|
34 |
row, col = rasterio.transform.rowcol(transform, lon, lat)
|
35 |
|
36 |
files = [
|
37 |
-
'
|
38 |
-
'
|
39 |
-
'
|
40 |
-
'
|
41 |
]
|
42 |
|
43 |
files_choosen = [i for i in files if any(i for j in years if str(j) in i)]
|
|
|
30 |
years = [pd.Timestamp(start_date).year]
|
31 |
|
32 |
# Convert Lat Lon to row & col on Array
|
33 |
+
transform = pickle.load(open('Data/transform_mrms.pkl', 'rb'))
|
34 |
row, col = rasterio.transform.rowcol(transform, lon, lat)
|
35 |
|
36 |
files = [
|
37 |
+
'Data/2023_hail.h5',
|
38 |
+
'Data/2022_hail.h5',
|
39 |
+
'Data/2021_hail.h5',
|
40 |
+
'Data/2020_hail.h5'
|
41 |
]
|
42 |
|
43 |
files_choosen = [i for i in files if any(i for j in years if str(j) in i)]
|