Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,13 +9,13 @@ import cartopy.feature as cfeature
|
|
| 9 |
import cftime
|
| 10 |
import fsspec
|
| 11 |
import hvplot.xarray
|
| 12 |
-
|
| 13 |
import matplotlib.pyplot as plt
|
| 14 |
import numpy as np
|
| 15 |
import pandas as pd
|
| 16 |
import panel as pn
|
| 17 |
import xarray as xr
|
| 18 |
-
|
| 19 |
from ipywidgets import (
|
| 20 |
Checkbox,
|
| 21 |
Dropdown,
|
|
@@ -470,33 +470,33 @@ class SADCP_Viewer(param.Parameterized):
|
|
| 470 |
|
| 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 |
|
|
|
|
| 9 |
import cftime
|
| 10 |
import fsspec
|
| 11 |
import hvplot.xarray
|
| 12 |
+
|
| 13 |
import matplotlib.pyplot as plt
|
| 14 |
import numpy as np
|
| 15 |
import pandas as pd
|
| 16 |
import panel as pn
|
| 17 |
import xarray as xr
|
| 18 |
+
|
| 19 |
from ipywidgets import (
|
| 20 |
Checkbox,
|
| 21 |
Dropdown,
|
|
|
|
| 470 |
|
| 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 |
|