-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from gaelforget/seaduck
Seaduck
- Loading branch information
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
using ClimateModels, PyCall, Conda | ||
|
||
""" | ||
demo_seaduck() | ||
Example copied from [seaduck documentation](https://macekuailv.github.io/seaduck/one_min_guide.html) | ||
``` | ||
using ClimateModels, PyCall, Conda | ||
include("examples/seaduck.jl") | ||
demo_seaduck() | ||
""" | ||
demo_seaduck() = begin | ||
ClimateModels.conda(:seaduck) | ||
sd=ClimateModels.pyimport(:seaduck) | ||
|
||
ds = sd.utils.get_dataset("ecco") | ||
|
||
longitude = -11.0 | ||
latitude = 71.0 | ||
depth = -5.0 | ||
time = sd.utils.convert_time("1992-02") | ||
|
||
time = sd.utils.convert_time("1992-02") | ||
s = sd.OceInterp(ds, "SALT", longitude, latitude, depth, time) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
Documentation : https://macekuailv.github.io/seaduck/intro.html | ||
|
||
## add packages | ||
|
||
``` | ||
pip install seaduck | ||
pip install pooch | ||
pip install zarr | ||
pip install matplotlib | ||
pip install cartopy | ||
git clone https://github.com/MaceKuailv/seaduck | ||
``` | ||
|
||
## then run | ||
|
||
``` | ||
./docs/one_min_guide.ipynb | ||
./docs/idealize_test/ver_stream.ipynb | ||
./docs/idealize_test/tilted_stream.ipynb | ||
./docs/idealize_test/hor_stream.ipynb | ||
./docs/notebook/global_ECCO.ipynb | ||
./docs/notebook/AVISO.ipynb | ||
./docs/notebook/topology_tutorial.ipynb | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters