Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -471,32 +471,32 @@ class SADCP_Viewer(param.Parameterized):
|
|
| 471 |
|
| 472 |
# Instantiate the SADCP_Viewer class and create a template
|
| 473 |
explorer = SADCP_Viewer()
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
|
| 484 |
sidebar = [
|
| 485 |
"""This application, developed in the frame of Euro Go Shop, helps to interactively visualise and download ship ADCP data.""",
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
]
|
| 500 |
-
template = pn.template.FastListTemplate(title="SADCP data Viewer", sidebar=sidebar
|
| 501 |
template.servable()
|
| 502 |
|
|
|
|
| 471 |
|
| 472 |
# Instantiate the SADCP_Viewer class and create a template
|
| 473 |
explorer = SADCP_Viewer()
|
| 474 |
+
tabs = pn.Tabs(
|
| 475 |
+
("Plots", pn.Column(explorer.update_plots)),
|
| 476 |
+
(
|
| 477 |
+
"Metadata",
|
| 478 |
+
pn.Column(
|
| 479 |
+
explorer.metadata_table, explorer.download_button, height=500, margin=10
|
| 480 |
+
),
|
| 481 |
+
),
|
| 482 |
+
)
|
| 483 |
|
| 484 |
sidebar = [
|
| 485 |
"""This application, developed in the frame of Euro Go Shop, helps to interactively visualise and download ship ADCP data.""",
|
| 486 |
+
explorer.year_slider,
|
| 487 |
+
explorer.file_dropdown,
|
| 488 |
+
explorer.longitude_slider,
|
| 489 |
+
explorer.latitude_slider,
|
| 490 |
+
explorer.bathy_checkbox,
|
| 491 |
+
explorer.depth_range_slider,
|
| 492 |
+
explorer.depth_2_checkbox,
|
| 493 |
+
explorer.depth_3_checkbox,
|
| 494 |
+
explorer.depth2_range_slider,
|
| 495 |
+
explorer.depth3_range_slider,
|
| 496 |
+
explorer.num_vectors_slider,
|
| 497 |
+
explorer.scale_factor_slider,
|
| 498 |
+
explorer.data_table,
|
| 499 |
]
|
| 500 |
+
template = pn.template.FastListTemplate(title="SADCP data Viewer", sidebar=sidebar,main=[tabs])
|
| 501 |
template.servable()
|
| 502 |
|