Spaces:
Starting
on
L4
Starting
on
L4
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def Page():
|
|
| 50 |
solara.Markdown(instructions_bottom)
|
| 51 |
|
| 52 |
def update_image():
|
| 53 |
-
ret = map_to_image(m, return_centre=True, return_gridcell=True, return_timestamp=True, source=source.value)
|
| 54 |
if ret is not None:
|
| 55 |
image_data.value, center.value, gridcell.value, timestamp.value = ret
|
| 56 |
zoom.value=12
|
|
@@ -59,8 +59,8 @@ def Page():
|
|
| 59 |
center.value = (20,0)
|
| 60 |
zoom.value = 4
|
| 61 |
|
| 62 |
-
def
|
| 63 |
-
|
| 64 |
update_image()
|
| 65 |
|
| 66 |
with solara.Card(margin=10):
|
|
@@ -80,7 +80,7 @@ def Page():
|
|
| 80 |
)
|
| 81 |
display(m)
|
| 82 |
button = solara.Button("Find Sample", on_click=update_image, height='80px')
|
| 83 |
-
solara.Select(label="Processing Level", value=source, values=['S2-L2A','S2-L1C', 'S1-RTC'], on_value=
|
| 84 |
with solara.Column(align='center'):
|
| 85 |
output = solara.Image(image_data.value)
|
| 86 |
solara.Markdown('''
|
|
|
|
| 50 |
solara.Markdown(instructions_bottom)
|
| 51 |
|
| 52 |
def update_image():
|
| 53 |
+
ret = map_to_image(m, return_centre=True, return_gridcell=True, return_timestamp=True, source=source.value)
|
| 54 |
if ret is not None:
|
| 55 |
image_data.value, center.value, gridcell.value, timestamp.value = ret
|
| 56 |
zoom.value=12
|
|
|
|
| 59 |
center.value = (20,0)
|
| 60 |
zoom.value = 4
|
| 61 |
|
| 62 |
+
def update_source(val):
|
| 63 |
+
source.value = val
|
| 64 |
update_image()
|
| 65 |
|
| 66 |
with solara.Card(margin=10):
|
|
|
|
| 80 |
)
|
| 81 |
display(m)
|
| 82 |
button = solara.Button("Find Sample", on_click=update_image, height='80px')
|
| 83 |
+
solara.Select(label="Processing Level", value=source, values=['S2-L2A','S2-L1C', 'S1-RTC'], on_value=update_source)
|
| 84 |
with solara.Column(align='center'):
|
| 85 |
output = solara.Image(image_data.value)
|
| 86 |
solara.Markdown('''
|