Spaces:
Runtime error
Runtime error
whoops
Browse files- pages/01_leafmap.py +2 -0
pages/01_leafmap.py
CHANGED
|
@@ -18,6 +18,8 @@ calfire = gpd.read_file("/vsicurl/https://huggingface.co/datasets/cboettig/biodi
|
|
| 18 |
jtree = nps[nps.PARKNAME == "Joshua Tree"].to_crs(calfire.crs)
|
| 19 |
jtree_fires = jtree.overlay(calfire, how="intersection")
|
| 20 |
|
|
|
|
|
|
|
| 21 |
datetime = big.ALARM_DATE.item() + "/" + big.CONT_DATE.item()
|
| 22 |
box = big.buffer(0.01).bounds.to_numpy()[0] # Fire bbox + buffer #box = jtree.to_crs("EPSG:4326").bounds.to_numpy()[0] # Park bbox
|
| 23 |
|
|
|
|
| 18 |
jtree = nps[nps.PARKNAME == "Joshua Tree"].to_crs(calfire.crs)
|
| 19 |
jtree_fires = jtree.overlay(calfire, how="intersection")
|
| 20 |
|
| 21 |
+
recent = jtree_fires[jtree_fires.YEAR_ > "2015"]
|
| 22 |
+
big = recent[recent.Shape_Area == recent.Shape_Area.max()].to_crs("EPSG:4326")
|
| 23 |
datetime = big.ALARM_DATE.item() + "/" + big.CONT_DATE.item()
|
| 24 |
box = big.buffer(0.01).bounds.to_numpy()[0] # Fire bbox + buffer #box = jtree.to_crs("EPSG:4326").bounds.to_numpy()[0] # Park bbox
|
| 25 |
|