gaelforget / ClimateModels.jl

Julia interface to climate models + tracked workflow framework
https://gaelforget.github.io/ClimateModels.jl/dev/
MIT License
43 stars 4 forks source link

example for seaduck #123

Open gaelforget opened 5 months ago

gaelforget commented 5 months ago

Hi @MaceKuailv

done

I added the dependencies to the conda and pycall extensions + a script example. See https://github.com/gaelforget/ClimateModels.jl/pull/122/files

For now this can only be used from the master branch. For example:

using Pkg
Pkg.add(url="https://github.com/gaelforget/ClimateModels.jl", rev="master")

And then

using ClimateModels, Conda, PyCall
p=dirname(pathof(ClimateModels))
f=joinpath(p,"..","examples","seaduck.jl")
include(f); demo_seaduck()

and ?demo_seaduck to see the docstring of that function.

next steps?

Would you be willing to build up the example and docstring in examples/seaduck.jl ?

1 the code (inside "demo_seaduck() = begin ..."

notes :

2 the docstring is the markdown bloc just above "demo_seaduck() = begin ..."

e.g.

using CairoMakie
lines(rand(100),rand(100))

3 making a Pluto notebook

once the next version of ClimateModels.jl is released then we will be able to take the example from step 2 and put it in Pluto format

MaceKuailv commented 4 months ago

Sounds good. I am going to use the example with AVISO data (https://macekuailv.github.io/seaduck/notebook/AVISO.html), which should take about 20 seconds in total.

I will start working on this in higher capacity hopefully by the end of August.