Spaces:
Sleeping
Sleeping
Added select fire drop down
Browse files- pages/05_GOES_NBR.py +7 -11
pages/05_GOES_NBR.py
CHANGED
@@ -24,23 +24,19 @@ class Map(geemap.Map):
|
|
24 |
|
25 |
self.addLayer(dNBR, dNBRvisParams, "GOES dNBR")
|
26 |
|
27 |
-
hyperion = ee.ImageCollection('EO1/HYPERION').filter(
|
28 |
-
ee.Filter.date('2016-01-01', '2017-03-01')
|
29 |
-
)
|
30 |
-
|
31 |
-
hyperion_vis = {
|
32 |
-
'min': 1000.0,
|
33 |
-
'max': 14000.0,
|
34 |
-
'gamma': 2.5,
|
35 |
-
}
|
36 |
-
self.addLayer(hyperion, hyperion_vis, 'Hyperion')
|
37 |
|
|
|
|
|
38 |
|
39 |
@solara.component
|
40 |
def Page():
|
|
|
|
|
|
|
41 |
with solara.Column(style={"min-width": "500px"}):
|
42 |
Map.element(
|
43 |
center=[40, -100],
|
44 |
zoom=4,
|
45 |
height="600px",
|
46 |
-
)
|
|
|
|
24 |
|
25 |
self.addLayer(dNBR, dNBRvisParams, "GOES dNBR")
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
+
fireList = ["North Complex", "Dixie", "Cameron Peak", "August Complex"]
|
29 |
+
four_fires = solara.reactive([fireList[0]])
|
30 |
|
31 |
@solara.component
|
32 |
def Page():
|
33 |
+
solara.SelectMultiple("Wildfire Case Study", four_fires, fireList)
|
34 |
+
solara.Markdown(f"**Selected**: {four_fires.value}")
|
35 |
+
|
36 |
with solara.Column(style={"min-width": "500px"}):
|
37 |
Map.element(
|
38 |
center=[40, -100],
|
39 |
zoom=4,
|
40 |
height="600px",
|
41 |
+
)
|
42 |
+
|