Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- EuroGO-SHIP_logo_wide_tagline_1.2.png +0 -0
- app.py +10 -5
EuroGO-SHIP_logo_wide_tagline_1.2.png
ADDED
|
app.py
CHANGED
|
@@ -10,7 +10,6 @@ import cartopy.crs as ccrs
|
|
| 10 |
import cartopy.feature as cfeature
|
| 11 |
from datatree import open_datatree
|
| 12 |
|
| 13 |
-
pn.extension("tabulator")
|
| 14 |
|
| 15 |
def get_range(da):
|
| 16 |
return ( int(da.min().round() - 1), int(da.max().round() + 1),)
|
|
@@ -18,8 +17,7 @@ def get_range(da):
|
|
| 18 |
@pn.cache(max_items=32,policy='LRU',per_session=True)
|
| 19 |
def load_csv(path='./data/zarr_table.csv'):
|
| 20 |
df = pd.read_csv(path,index_col=None)
|
| 21 |
-
df.sort_values(by="year") #inplace=True)
|
| 22 |
-
return df
|
| 23 |
|
| 24 |
@pn.cache(max_items=4,policy='LRU',per_session=True)
|
| 25 |
def load_bathymetry(path='./data/bathy6min.nc'):
|
|
@@ -374,6 +372,9 @@ class SADCP_Viewer(param.Parameterized):
|
|
| 374 |
return pn.Row(self.plot_left, self.plot_right, sizing_mode="stretch_both")
|
| 375 |
|
| 376 |
|
|
|
|
|
|
|
|
|
|
| 377 |
explorer = SADCP_Viewer()
|
| 378 |
# Instantiate the SADCP_Viewer class and create a template
|
| 379 |
tabs = pn.Tabs(
|
|
@@ -387,6 +388,7 @@ tabs = pn.Tabs(
|
|
| 387 |
)
|
| 388 |
|
| 389 |
sidebar = [
|
|
|
|
| 390 |
"""This application, developed in the frame of Euro Go Shop, helps to interactively visualise and download ship ADCP data.""",
|
| 391 |
explorer.year_slider,
|
| 392 |
explorer.file_dropdown,
|
|
@@ -404,10 +406,13 @@ sidebar = [
|
|
| 404 |
"""You can consult detailed information on this data in the metadata tab shown on the right.
|
| 405 |
To download full dataset, please go to https://cdi.seadatanet.org/search
|
| 406 |
and search with LOCAL_CDI_ID indicated above.""",
|
|
|
|
|
|
|
| 407 |
]
|
| 408 |
|
| 409 |
-
pn.config.theme = 'dark'
|
| 410 |
template = pn.template.FastListTemplate(
|
| 411 |
-
title="SADCP data Viewer",
|
|
|
|
|
|
|
| 412 |
)
|
| 413 |
template.servable()
|
|
|
|
| 10 |
import cartopy.feature as cfeature
|
| 11 |
from datatree import open_datatree
|
| 12 |
|
|
|
|
| 13 |
|
| 14 |
def get_range(da):
|
| 15 |
return ( int(da.min().round() - 1), int(da.max().round() + 1),)
|
|
|
|
| 17 |
@pn.cache(max_items=32,policy='LRU',per_session=True)
|
| 18 |
def load_csv(path='./data/zarr_table.csv'):
|
| 19 |
df = pd.read_csv(path,index_col=None)
|
| 20 |
+
return df.sort_values(by="year") #inplace=True)
|
|
|
|
| 21 |
|
| 22 |
@pn.cache(max_items=4,policy='LRU',per_session=True)
|
| 23 |
def load_bathymetry(path='./data/bathy6min.nc'):
|
|
|
|
| 372 |
return pn.Row(self.plot_left, self.plot_right, sizing_mode="stretch_both")
|
| 373 |
|
| 374 |
|
| 375 |
+
pn.extension("tabulator")
|
| 376 |
+
pn.config.theme = 'dark'
|
| 377 |
+
|
| 378 |
explorer = SADCP_Viewer()
|
| 379 |
# Instantiate the SADCP_Viewer class and create a template
|
| 380 |
tabs = pn.Tabs(
|
|
|
|
| 388 |
)
|
| 389 |
|
| 390 |
sidebar = [
|
| 391 |
+
pn.panel('./EuroGO-SHIP_logo_wide_tagline_1.2.png',width=300 ),
|
| 392 |
"""This application, developed in the frame of Euro Go Shop, helps to interactively visualise and download ship ADCP data.""",
|
| 393 |
explorer.year_slider,
|
| 394 |
explorer.file_dropdown,
|
|
|
|
| 406 |
"""You can consult detailed information on this data in the metadata tab shown on the right.
|
| 407 |
To download full dataset, please go to https://cdi.seadatanet.org/search
|
| 408 |
and search with LOCAL_CDI_ID indicated above.""",
|
| 409 |
+
#pn.panel('https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png', ),
|
| 410 |
+
#width=10)
|
| 411 |
]
|
| 412 |
|
|
|
|
| 413 |
template = pn.template.FastListTemplate(
|
| 414 |
+
title="SADCP data Viewer", logo='https://avatars.githubusercontent.com/u/123177533?s=200&v=4',
|
| 415 |
+
sidebar=sidebar, main=[tabs]
|
| 416 |
+
|
| 417 |
)
|
| 418 |
template.servable()
|