Spaces:
Running
Running
mattritchey
commited on
Commit
•
24ff6f5
1
Parent(s):
df00985
Update app.py
Browse files
app.py
CHANGED
@@ -208,6 +208,10 @@ transform = crs_dic['affine']
|
|
208 |
row, col = rasterio.transform.rowcol(transform, lon, lat)
|
209 |
st.write(row,col)
|
210 |
|
|
|
|
|
|
|
|
|
211 |
files = [
|
212 |
"data/2023_hail.h5",
|
213 |
"data/2022_hail.h5",
|
@@ -225,9 +229,7 @@ for i in files:
|
|
225 |
all_data.append(data)
|
226 |
all_dates.append(dates)
|
227 |
|
228 |
-
|
229 |
-
radius = int(np.ceil(circle_radius*1.6))
|
230 |
-
# crop_coords = col-radius, row-radius, col+radius+1, row+radius+1
|
231 |
|
232 |
files = glob.glob(r'webp/**/*.webp', recursive=True)
|
233 |
files_dates_selected = [i for i in files if any(
|
|
|
208 |
row, col = rasterio.transform.rowcol(transform, lon, lat)
|
209 |
st.write(row,col)
|
210 |
|
211 |
+
# center=row,col
|
212 |
+
radius = int(np.ceil(circle_radius*1.6))
|
213 |
+
# crop_coords = col-radius, row-radius, col+radius+1, row+radius+1
|
214 |
+
|
215 |
files = [
|
216 |
"data/2023_hail.h5",
|
217 |
"data/2022_hail.h5",
|
|
|
229 |
all_data.append(data)
|
230 |
all_dates.append(dates)
|
231 |
|
232 |
+
|
|
|
|
|
233 |
|
234 |
files = glob.glob(r'webp/**/*.webp', recursive=True)
|
235 |
files_dates_selected = [i for i in files if any(
|