Spaces:
Sleeping
Sleeping
mattritchey
commited on
Commit
•
3c1ab5c
1
Parent(s):
e07dc7d
Update app.py
Browse files
app.py
CHANGED
@@ -206,10 +206,10 @@ crs_dic = pickle.load(open('data/mrms_hail_crs.pkl', 'rb'))
|
|
206 |
transform = crs_dic['affine']
|
207 |
|
208 |
row, col = rasterio.transform.rowcol(transform, lon, lat)
|
209 |
-
|
210 |
# center=row,col
|
211 |
radius = int(np.ceil(circle_radius*1.6))
|
212 |
-
crop_coords = col-radius, row-radius, col+radius+1, row+radius+1
|
213 |
|
214 |
files = glob.glob(r'webp/**/*.webp', recursive=True)
|
215 |
files_dates_selected = [i for i in files if any(
|
|
|
206 |
transform = crs_dic['affine']
|
207 |
|
208 |
row, col = rasterio.transform.rowcol(transform, lon, lat)
|
209 |
+
st.write(row,col)
|
210 |
# center=row,col
|
211 |
radius = int(np.ceil(circle_radius*1.6))
|
212 |
+
# crop_coords = col-radius, row-radius, col+radius+1, row+radius+1
|
213 |
|
214 |
files = glob.glob(r'webp/**/*.webp', recursive=True)
|
215 |
files_dates_selected = [i for i in files if any(
|