d10.8: diva online operational in vre - uliege.be

35
1/18 D10.8: DIVA online operaonal in VRE C. Troupin, A. Barth & J.-M. Beckers (GHER - ULiège) 7th TTG meeng, Plouzané, France, 14-15 October, 2019 [email protected] – www.seadatanet.org

Upload: others

Post on 04-Jun-2022

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: D10.8: DIVA online operational in VRE - uliege.be

1/18

D10.8: DIVA online opera onal in VRE

C. Troupin, A. Barth & J.-M. Beckers (GHER - ULiège)

7th TTG mee ng, Plouzané, France, 14-15 October, 2019

[email protected] – www.seadatanet.org

Page 2: D10.8: DIVA online operational in VRE - uliege.be

2/18

Defini ons

DIVA: so ware tool designed for spa al interpola on https://github.com/gher-ulg/DIVA

DIVAnd: n-dimensional version of DIVA https://github.com/gher-ulg/divand.jl

Julia: high-level, high-performance dynamic programming language fornumerical compu ng https://julialang.org/

Notebook: documents that contain live code, equa ons, visualiza ons andnarra ve text

Jupyter: open-source web applica on to create and share notebook http://jupyter.org/

Jupyterhub: mul -user server for Jupyter notebooks https://jupyterhub.readthedocs.io/en/latest/

Page 3: D10.8: DIVA online operational in VRE - uliege.be

3/18

1Context for DIVA in VRE

Page 4: D10.8: DIVA online operational in VRE - uliege.be

4/18

Installing DIVA was some mes…painful

Back in 2007

Page 5: D10.8: DIVA online operational in VRE - uliege.be

4/18

Installing DIVA was some mes…painful

or in 2013

Page 6: D10.8: DIVA online operational in VRE - uliege.be

5/18

What have we improved since then?

1 New mathema cal formula on Barth et al. 20142 Julia language instead of Fortran3 Only 2 (!!!) input files data & bathymetry4 Applica ons as Jupyter notebooks all in one

Page 7: D10.8: DIVA online operational in VRE - uliege.be

5/18

What have we improved since then?

Page 8: D10.8: DIVA online operational in VRE - uliege.be

5/18

What have we improved since then?

Page 9: D10.8: DIVA online operational in VRE - uliege.be

6/18

Jupyter notebooks as guidelines

Page 10: D10.8: DIVA online operational in VRE - uliege.be

6/18

Jupyter notebooks as guidelines

Explenatory text

Page 11: D10.8: DIVA online operational in VRE - uliege.be

6/18

Jupyter notebooks as guidelines

Explenatory text

Code fragment

Page 12: D10.8: DIVA online operational in VRE - uliege.be

6/18

Jupyter notebooks as guidelines

Explenatory text

Code fragment

Results or figure

Page 13: D10.8: DIVA online operational in VRE - uliege.be

6/18

Jupyter notebooks as guidelines

Explenatory text

Code fragment

Results or figure

Kernel (language)

Page 14: D10.8: DIVA online operational in VRE - uliege.be

7/18

What should we improve?

Page 15: D10.8: DIVA online operational in VRE - uliege.be

8/18

What should we improve?

+ Access to compu ng power+ Data availability+ Documenta on

= Virtual Research Environment!

Page 16: D10.8: DIVA online operational in VRE - uliege.be

8/18

What should we improve?

+ Access to compu ng power+ Data availability+ Documenta on

= Virtual Research Environment!

Page 17: D10.8: DIVA online operational in VRE - uliege.be

9/18

2Deployment in the VRE

Page 18: D10.8: DIVA online operational in VRE - uliege.be

10/18

Goals: seamless genera on of DIVA products

Data ToolCompu ngpower

Page 19: D10.8: DIVA online operational in VRE - uliege.be

11/18

Providing users access to notebooks

≡ ×

2017 1st deployment @CINECA2019 Deployment transferred to DKRZ

for the first training workshop

Mul ple copies of a Docker container are run(https://hub.docker.com/r/abarth/divand-jupyterhub)

Page 20: D10.8: DIVA online operational in VRE - uliege.be

12/18

What’s the recipe for the container?

✓ Libraries: netCDF, unzip, git, …

✓ Julia language (V1.2.0)✓ Julia packages: PyPlot, NCDatasets, DataStructures, …✓ DIVAnd.jl (V2.4.0, August 2019)✓ DIVAnd notebooks (latest version)

Page 21: D10.8: DIVA online operational in VRE - uliege.be

12/18

What’s the recipe for the container?

✓ Libraries: netCDF, unzip, git, …✓ Julia language (V1.2.0)

✓ Julia packages: PyPlot, NCDatasets, DataStructures, …✓ DIVAnd.jl (V2.4.0, August 2019)✓ DIVAnd notebooks (latest version)

Page 22: D10.8: DIVA online operational in VRE - uliege.be

12/18

What’s the recipe for the container?

✓ Libraries: netCDF, unzip, git, …✓ Julia language (V1.2.0)✓ Julia packages: PyPlot, NCDatasets, DataStructures, …

✓ DIVAnd.jl (V2.4.0, August 2019)✓ DIVAnd notebooks (latest version)

Page 23: D10.8: DIVA online operational in VRE - uliege.be

12/18

What’s the recipe for the container?

✓ Libraries: netCDF, unzip, git, …✓ Julia language (V1.2.0)✓ Julia packages: PyPlot, NCDatasets, DataStructures, …✓ DIVAnd.jl (V2.4.0, August 2019)

✓ DIVAnd notebooks (latest version)

Page 24: D10.8: DIVA online operational in VRE - uliege.be

12/18

What’s the recipe for the container?

✓ Libraries: netCDF, unzip, git, …✓ Julia language (V1.2.0)✓ Julia packages: PyPlot, NCDatasets, DataStructures, …✓ DIVAnd.jl (V2.4.0, August 2019)✓ DIVAnd notebooks (latest version)

Page 25: D10.8: DIVA online operational in VRE - uliege.be

12/18

What’s the recipe for the container?

✓ Libraries: netCDF, unzip, git, …✓ Julia language (V1.2.0)✓ Julia packages: PyPlot, NCDatasets, DataStructures, …✓ DIVAnd.jl (V2.4.0, August 2019)✓ DIVAnd notebooks (latest version)

Note: no need to edit the docker file when the DIVAnd code or thenotebooks are modifiedRUN j u l i a −−eva l ’ u s i n g Pkg ;pkg ” add h t t p s : / / g i t hub . com/ gher−u l g / DIVAnd . j l #master ” ’

Page 26: D10.8: DIVA online operational in VRE - uliege.be

13/18

Julia is becoming more famous!

https://www.nature.com/articles/d41586-019-02310-3

Page 27: D10.8: DIVA online operational in VRE - uliege.be

13/18

Julia is becoming more famous!

https://www.nature.com/articles/d41586-019-02310-3

Page 28: D10.8: DIVA online operational in VRE - uliege.be

14/18

3Files I/O

Page 29: D10.8: DIVA online operational in VRE - uliege.be

15/18

DIVAnd file I/O

Pre-processing Input Output Visualisa on

Observa ons Gridded fieldsSeaDataNet (netCDF)WOD

webODV CMEMS Metadata Deltares VIZ(XML)

BathymetryEMODnetGEBCO

Page 30: D10.8: DIVA online operational in VRE - uliege.be

15/18

DIVAnd file I/O

Protocol: web (Web Distributed Authoring and Versioning)

WEBDAV_USERNAMEWEBDAV_PASSWORD defined at user loginWEBDAV_URL

Page 31: D10.8: DIVA online operational in VRE - uliege.be

15/18

DIVAnd file I/O

ge t ( ” n e x t c l o u d _ f i l e ” , ” j u p y t e r h u b _ f i l e ” )

put ( ” j u p y t e r h u b _ f i l e ” , ” n e x t c l o u d _ f i l e ” )

Page 32: D10.8: DIVA online operational in VRE - uliege.be

16/18

4Mul -user performance during theSDN training course

Page 33: D10.8: DIVA online operational in VRE - uliege.be

17/18

Oostende, 19–26 June, 2019

1 Introduc on to Julia2 Extrac on of a regional bathymetry3 Data import using ODV4 Climatology genera on

Page 34: D10.8: DIVA online operational in VRE - uliege.be

17/18

Oostende, 19–26 June, 2019

✓ Almost all the users managed to create a small climatology✓ Despite the computa on load, the VRE stayed alive

Page 35: D10.8: DIVA online operational in VRE - uliege.be

18/18

Thanksfor your a en on