Spaces:
Running
Running
mattritchey
commited on
Commit
•
26dc9d7
1
Parent(s):
1a7d116
Update app.py
Browse files
app.py
CHANGED
@@ -173,10 +173,6 @@ def map_folium(lat, lon,files_dates_selected, within_days ):
|
|
173 |
return m
|
174 |
|
175 |
|
176 |
-
files = glob.glob(r'webp/**/*.webp', recursive=True)
|
177 |
-
files_dates_selected = [i for i in files if any(
|
178 |
-
i for j in date_range if str(j) in re.search(r'(\d{8})', i).group())]
|
179 |
-
print(files_dates_selected)
|
180 |
|
181 |
files = [
|
182 |
"data/2023_hail.h5",
|
@@ -230,6 +226,12 @@ row, col = rasterio.transform.rowcol(transform, lon, lat)
|
|
230 |
radius = int(np.ceil(circle_radius*1.6))
|
231 |
crop_coords = col-radius, row-radius, col+radius+1, row+radius+1
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
# # Get Data
|
234 |
# df_data, max_values = get_data(row, col, radius)
|
235 |
|
|
|
173 |
return m
|
174 |
|
175 |
|
|
|
|
|
|
|
|
|
176 |
|
177 |
files = [
|
178 |
"data/2023_hail.h5",
|
|
|
226 |
radius = int(np.ceil(circle_radius*1.6))
|
227 |
crop_coords = col-radius, row-radius, col+radius+1, row+radius+1
|
228 |
|
229 |
+
files = glob.glob(r'webp/**/*.webp', recursive=True)
|
230 |
+
files_dates_selected = [i for i in files if any(
|
231 |
+
i for j in date_range if str(j) in re.search(r'(\d{8})', i).group())]
|
232 |
+
print(files_dates_selected)
|
233 |
+
|
234 |
+
|
235 |
# # Get Data
|
236 |
# df_data, max_values = get_data(row, col, radius)
|
237 |
|