From 69e485c0cf7f021e159e9a1fc58e6fa824c3134c Mon Sep 17 00:00:00 2001 From: Wenrui Jiang Date: Wed, 22 Nov 2023 13:14:49 -0500 Subject: [PATCH 1/2] fix links and renew scisever after 1.0.0 --- docs/contribute/contr_doc.md | 16 ++++++---------- docs/get_started.md | 8 +++++--- docs/sciserver_notebooks/ECCO_plot_stations.md | 4 ++-- docs/sciserver_notebooks/IGPwinter.md | 4 ++-- docs/sciserver_notebooks/KangerFjord.md | 14 +++++++------- docs/sciserver_notebooks/LLC4320.md | 12 ++++++------ 6 files changed, 28 insertions(+), 30 deletions(-) diff --git a/docs/contribute/contr_doc.md b/docs/contribute/contr_doc.md index a6c3d7b2..1d6c02cb 100644 --- a/docs/contribute/contr_doc.md +++ b/docs/contribute/contr_doc.md @@ -53,7 +53,7 @@ Now, run it again. If this time it still has an error, look at the error message Cool stuff are not always portable. The ocean 🌊 is an example of that. Say you have something really cool you want to demonstrate, but the dataset it is based on is to large to distribute or it simply takes too long to run. Wouldn't it be nice if we could have a cloud platform that host a bunch of ocean dataset that is free for everyone to use? It would be even better if the packages I need as an oceanographer is readily installed and I don't have to worry about a thing. -You can use [Sciserver](https://sciserver.org/)! (Am I too dramatic?). Sciserver is also the home base of [oceanspy](https://oceanspy.readthedocs.io/en/latest/), a package that will make your life so much easier as a oceanographer. After registering on sciserver (you can follow this youtube tutorial here(Tom, if you are reading this, can you send me the link?)), you can simply call this oceanspy function +You can use [Sciserver](https://sciserver.org/)! (Am I too dramatic?). Sciserver is also the home base of [oceanspy](https://oceanspy.readthedocs.io/en/latest/), a package that will make your life so much easier as a oceanographer. After registering on sciserver (you can follow this youtube tutorial [here](https://www.youtube.com/channel/UCpYkjUrm2a_ANY86Fb4uyvg)), you can simply call this oceanspy function ```python import ocenspy as ospy @@ -97,14 +97,10 @@ git clone https://github.com/YourGithubNickname/seaduck_sciserver_notebook.git ``` All the existing sciserver notebooks will be in `seaduck_sciserver_notebook`. If you want to create new ones, put them in there as well. -2\. Have all the fun with your notebooks. However, whenever you plot, **always** use `plt.show()`. -3\. Install `Jupytext` for converting notebooks into markdown. -```shell -pip install jupytext -``` +2. Have all the fun with your notebooks. However, whenever you plot, **always** use `plt.show()`. -4\. In `seaduck_sciserver_notebook`, run the python script +3. In `seaduck_sciserver_notebook`, run the python script ```shell python convert_ipynb.py @@ -112,14 +108,14 @@ python convert_ipynb.py > This step will add when and which version the notebook was last run on. It will search the file with the string **Wenrui Jiang** (How egoistic?!), and put the information in the next line. It is a bit ad hoc. If I am not the author of the notebook, simply include: "Wenrui Jiang is a good boy" or something like that after putting your name. -5. You will realize that the markdown files created may not be able to render properly. This is because the new plots you have are local, but the link we put in the markdown files are what they would look like if the plots are already uploaded. Now, commit all the changes and make a pull request to the `seaduck_sciserver_notebook` repo. Once the changes are merged into the `main` branch. Open the file and see if it look as you intended. If so, +4. You will realize that the markdown files created may not be able to render properly. This is because the new plots you have are local, but the link we put in the markdown files are what they would look like if the plots are already uploaded. Now, commit all the changes and make a pull request to the `seaduck_sciserver_notebook` repo. Once the changes are merged into the `main` branch. Open the file and see if it look as you intended. If so, ```shell cp *.md ../seaduck/docs/sciserver_notebooks/ ``` -6. Change directory back to seaduck. Follow step 4 to 7 in the [previous](text_file) section. -1. Before the changes are merged, check if the external links work by +5. Change directory back to seaduck. Follow step 4 to 7 in the [previous](text_file) section. +6. Before the changes are merged, check if the external links work by ```shell make link-check diff --git a/docs/get_started.md b/docs/get_started.md index 584ca87d..60fe6774 100644 --- a/docs/get_started.md +++ b/docs/get_started.md @@ -23,14 +23,16 @@ Running Lagrangian particle on regional dataset ::: :::{grid-item-card} -:link: sciserver_notebooks/IGPwinter +:link: sciserver_notebooks/LLC4320 :link-type: doc :class-header: bg-light -Example with complex grid +Example with complex grid (LLC4320) ^^^ +```{image} https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/stable_images/LLC4320Thumbnail.png?raw=true +:height: 200 +``` -Running Lagrangian particle on the LLC4320 dataset. ::: :::{grid-item-card} diff --git a/docs/sciserver_notebooks/ECCO_plot_stations.md b/docs/sciserver_notebooks/ECCO_plot_stations.md index 6ffa61b1..3c422090 100644 --- a/docs/sciserver_notebooks/ECCO_plot_stations.md +++ b/docs/sciserver_notebooks/ECCO_plot_stations.md @@ -18,7 +18,7 @@ Extract temperature/salinity profiles at specified longitudes, latitudes, and ti This notebook uses [Oceanspy](https://oceanspy.readthedocs.io/en/latest/) and demonstrates the interface to the Poseidon-viewer on SciServer. Author: Tom Haine & Wenrui Jiang, Jun '23 -> **Warning**⚠️ : the notebook was last ran on **2023-07-27** with **seaduck 0.1.3**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/ECCO_plot_stations.ipynb. +> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/ECCO_plot_stations.ipynb. ```{code-cell} ipython3 import seaduck as sd import oceanspy as ospy @@ -31,7 +31,7 @@ plt.rcParams["figure.figsize"] = 12, 8 ``` ```{admonition} Access ECCO -The global MITgcm run is the ECCO state estimate [(Forget et al, 2015)](https://gmd.copernicus.org/articles/8/3071/2015/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html#) method. +The global MITgcm run is the ECCO state estimate [(Forget et al, 2015)](https://gmd.copernicus.org/articles/8/3071/2015/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html) method. `ecco = ospy.open_oceandataset.from_catalog("ECCO")` diff --git a/docs/sciserver_notebooks/IGPwinter.md b/docs/sciserver_notebooks/IGPwinter.md index 5b59faa3..58a71304 100644 --- a/docs/sciserver_notebooks/IGPwinter.md +++ b/docs/sciserver_notebooks/IGPwinter.md @@ -14,7 +14,7 @@ kernelspec: # `Particle` in an East Greenland regional simulation Author: Wenrui Jiang, Tom Haine Feb '23 -> **Warning**⚠️ : the notebook was last ran on **2023-07-27** with **seaduck 0.1.3**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/IGPwinter.ipynb. +> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/IGPwinter.ipynb. ```{code-cell} ipython3 :tags: [hide-input] @@ -26,7 +26,7 @@ import seaduck as sd ``` ```{admonition} Access IGPwinter -The regional MITgcm run is the IGPwinter simulation [( Renfrew et al., 2019)](https://journals.ametsoc.org/view/journals/bams/100/9/bams-d-18-0217.1.xml) and is publicly available on [SciServer](https://sciserver.org/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html#) method. +The regional MITgcm run is the IGPwinter simulation [( Renfrew et al., 2019)](https://journals.ametsoc.org/view/journals/bams/100/9/bams-d-18-0217.1.xml) and is publicly available on [SciServer](https://sciserver.org/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html) method. `ecco = ospy.open_oceandataset.from_catalog("IGPwinter")` diff --git a/docs/sciserver_notebooks/KangerFjord.md b/docs/sciserver_notebooks/KangerFjord.md index 5b66f7d9..b6d04877 100644 --- a/docs/sciserver_notebooks/KangerFjord.md +++ b/docs/sciserver_notebooks/KangerFjord.md @@ -14,7 +14,7 @@ kernelspec: # Demonstrate `eulerian.Position` object with Fjord Author: Wenrui Jiang, 14 June 2023 -> **Warning**⚠️ : the notebook was last ran on **2023-07-27** with **seaduck 0.1.3**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord.ipynb. +> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord.ipynb. The `eulerian.Position` object is really what connects a point and the numerical model. Its `interpolate` method really is the core of this package. We're going to use a rather interesting example to demonstrate the functionalities of `eulerian.Position`. ```{code-cell} ipython3 @@ -30,7 +30,7 @@ import cmocean mpl.rcParams["figure.dpi"] = 300 ``` -Here on [SciServer](https://sciserver.org/), we have an interesting dataset simulating the interaction between background circulation and Kangerdlugssuaq Fjord. More information can be found below, and see the paper by [Fraser et al., 2018](https://doi.org/10.1029/2018JC014435) +Here on [SciServer](https://sciserver.org/), we have an interesting dataset simulating the interaction between background circulation and Kangerdlugssuaq Fjord. More information can be found below, and see the paper by [Fraser et al., 2018](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2018JC014435): ```{code-cell} ipython3 fjord = ospy.open_oceandataset.from_catalog("KangerFjord") @@ -85,12 +85,12 @@ plt.ylabel("Latitude") plt.colorbar(c, label="m") plt.show() ``` -![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord_files/Fjord_8_0.png?raw=true) +![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord_files/KangerFjord_8_0.png?raw=true) +++ {"tags": ["mdformat-skip"]} ## Doing Interpolation -We are going to use the sea surface height field $\eta$ as an example. +We are going to use the sea surface height field $\eta$ as an example. First, we are going to convert the `xarray.Dataset` to `seaduck.OceData`. @@ -140,7 +140,7 @@ plt.xlabel("Longitude") plt.ylabel("Latitude") plt.show() ``` -![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord_files/Fjord_19_0.png?raw=true) +![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord_files/KangerFjord_19_0.png?raw=true) Now let's "hack" the code to make it return the size of the kernels used. @@ -181,7 +181,7 @@ plt.xlabel("Longitude") plt.ylabel("Latitude") plt.show() ``` -![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord_files/Fjord_24_0.png?raw=true) +![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord_files/KangerFjord_24_0.png?raw=true) ## Filling between @@ -218,6 +218,6 @@ plt.xlabel("Longitude") plt.ylabel("Latitude") plt.show() ``` -![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord_files/Fjord_29_0.png?raw=true) +![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord_files/KangerFjord_29_0.png?raw=true) I'd say the filling-in is done pretty well! diff --git a/docs/sciserver_notebooks/LLC4320.md b/docs/sciserver_notebooks/LLC4320.md index 46b5f875..1375b493 100644 --- a/docs/sciserver_notebooks/LLC4320.md +++ b/docs/sciserver_notebooks/LLC4320.md @@ -14,7 +14,7 @@ kernelspec: # Plot surface streamlines on LLC4320 Author: Wenrui Jiang 14 June, 2023 -> **Warning**⚠️ : the notebook was last ran on **2023-07-27** with **seaduck 0.1.3**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320.ipynb. +> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320.ipynb. The LLC4320 ocean circulation model solution is a kilometer-scale, global simulation with complex grid topology. This is a good dataset to test the performance of the `seaduck` package. ```{code-cell} ipython3 @@ -33,7 +33,7 @@ mpl.rcParams["figure.dpi"] = 600 ```{admonition} Access LLC4320 The global MITgcm run is the LLC4320 simulation [(Rocha -et al. 2016)](https://journals.ametsoc.org/view/journals/phoc/46/2/jpo-d-15-0087.1.xmlhttps://journals.ametsoc.org/view/journals/phoc/46/2/jpo-d-15-0087.1.xml) and is publicly available on [SciServer](https://sciserver.org) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html#oceanspy.open_oceandataset.from_catalog) method. +et al. 2016)](https://journals.ametsoc.org/view/journals/phoc/46/2/jpo-d-15-0087.1.xml) and is publicly available on [SciServer](https://sciserver.org/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html) method. `od = ospy.open_oceandataset.from_catalog("LLC4320")` @@ -52,7 +52,7 @@ ds = od._ds oce = sd.OceData(ds) ``` -Initiate the particles randomly, so that they're distributed evenly on the globe. Use `N` = $1.5 \\times 10^5$ particles. +Initiate the particles randomly, so that they're distributed evenly on the globe. Use $N = 1.5 \\times 10^5$ particles. ```{code-cell} ipython3 :tags: [hide-input] @@ -75,7 +75,7 @@ ax.plot(x, y, "o", markersize=0.1, transform=ccrs.PlateCarree()) ax.coastlines() plt.show() ``` -![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320_files/LLC4320_5_0.png?raw=true) +![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320_files/LLC4320_6_0.png?raw=true) We'll use just one vertical layer (the first one, which is at the surface) of a single snapshot (the first one) to make the streamlines. @@ -250,7 +250,7 @@ pretty_stream_plot( ) plt.show() ``` -![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320_files/LLC4320_29_2.png?raw=true) +![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320_files/LLC4320_30_2.png?raw=true) **Fig.1** Streamlines of 150,000 particles released at 00:00 Apr 25, 2012 in LLC4320 simulated for 30 days. The color shading shows the current speed. This is looking from the North Pole. @@ -270,6 +270,6 @@ pretty_stream_plot( ) plt.show() ``` -![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320_files/LLC4320_32_2.png?raw=true) +![png](https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320_files/LLC4320_33_2.png?raw=true) **Fig.2** Similar to **Fig.1**, but looking from the South Pole. From 94aa6813d31070747526c60f1c4372698017e04d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 22 Nov 2023 18:21:59 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/contribute/contr_doc.md | 4 ++-- docs/get_started.md | 1 + docs/sciserver_notebooks/ECCO_plot_stations.md | 4 ++-- docs/sciserver_notebooks/IGPwinter.md | 4 ++-- docs/sciserver_notebooks/KangerFjord.md | 4 ++-- docs/sciserver_notebooks/LLC4320.md | 4 ++-- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/contribute/contr_doc.md b/docs/contribute/contr_doc.md index 1d6c02cb..85814a12 100644 --- a/docs/contribute/contr_doc.md +++ b/docs/contribute/contr_doc.md @@ -100,7 +100,7 @@ All the existing sciserver notebooks will be in `seaduck_sciserver_notebook`. If 2. Have all the fun with your notebooks. However, whenever you plot, **always** use `plt.show()`. -3. In `seaduck_sciserver_notebook`, run the python script +1. In `seaduck_sciserver_notebook`, run the python script ```shell python convert_ipynb.py @@ -115,7 +115,7 @@ cp *.md ../seaduck/docs/sciserver_notebooks/ ``` 5. Change directory back to seaduck. Follow step 4 to 7 in the [previous](text_file) section. -6. Before the changes are merged, check if the external links work by +1. Before the changes are merged, check if the external links work by ```shell make link-check diff --git a/docs/get_started.md b/docs/get_started.md index 60fe6774..beabddee 100644 --- a/docs/get_started.md +++ b/docs/get_started.md @@ -29,6 +29,7 @@ Running Lagrangian particle on regional dataset Example with complex grid (LLC4320) ^^^ + ```{image} https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/stable_images/LLC4320Thumbnail.png?raw=true :height: 200 ``` diff --git a/docs/sciserver_notebooks/ECCO_plot_stations.md b/docs/sciserver_notebooks/ECCO_plot_stations.md index 3c422090..77432d4d 100644 --- a/docs/sciserver_notebooks/ECCO_plot_stations.md +++ b/docs/sciserver_notebooks/ECCO_plot_stations.md @@ -18,7 +18,7 @@ Extract temperature/salinity profiles at specified longitudes, latitudes, and ti This notebook uses [Oceanspy](https://oceanspy.readthedocs.io/en/latest/) and demonstrates the interface to the Poseidon-viewer on SciServer. Author: Tom Haine & Wenrui Jiang, Jun '23 -> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/ECCO_plot_stations.ipynb. +> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/ECCO_plot_stations.ipynb. ```{code-cell} ipython3 import seaduck as sd import oceanspy as ospy @@ -31,7 +31,7 @@ plt.rcParams["figure.figsize"] = 12, 8 ``` ```{admonition} Access ECCO -The global MITgcm run is the ECCO state estimate [(Forget et al, 2015)](https://gmd.copernicus.org/articles/8/3071/2015/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html) method. +The global MITgcm run is the ECCO state estimate [(Forget et al, 2015)](https://gmd.copernicus.org/articles/8/3071/2015/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html) method. `ecco = ospy.open_oceandataset.from_catalog("ECCO")` diff --git a/docs/sciserver_notebooks/IGPwinter.md b/docs/sciserver_notebooks/IGPwinter.md index 58a71304..460c71ed 100644 --- a/docs/sciserver_notebooks/IGPwinter.md +++ b/docs/sciserver_notebooks/IGPwinter.md @@ -14,7 +14,7 @@ kernelspec: # `Particle` in an East Greenland regional simulation Author: Wenrui Jiang, Tom Haine Feb '23 -> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/IGPwinter.ipynb. +> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/IGPwinter.ipynb. ```{code-cell} ipython3 :tags: [hide-input] @@ -26,7 +26,7 @@ import seaduck as sd ``` ```{admonition} Access IGPwinter -The regional MITgcm run is the IGPwinter simulation [( Renfrew et al., 2019)](https://journals.ametsoc.org/view/journals/bams/100/9/bams-d-18-0217.1.xml) and is publicly available on [SciServer](https://sciserver.org/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html) method. +The regional MITgcm run is the IGPwinter simulation [( Renfrew et al., 2019)](https://journals.ametsoc.org/view/journals/bams/100/9/bams-d-18-0217.1.xml) and is publicly available on [SciServer](https://sciserver.org/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html) method. `ecco = ospy.open_oceandataset.from_catalog("IGPwinter")` diff --git a/docs/sciserver_notebooks/KangerFjord.md b/docs/sciserver_notebooks/KangerFjord.md index b6d04877..7c4d42dc 100644 --- a/docs/sciserver_notebooks/KangerFjord.md +++ b/docs/sciserver_notebooks/KangerFjord.md @@ -14,7 +14,7 @@ kernelspec: # Demonstrate `eulerian.Position` object with Fjord Author: Wenrui Jiang, 14 June 2023 -> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord.ipynb. +> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/KangerFjord.ipynb. The `eulerian.Position` object is really what connects a point and the numerical model. Its `interpolate` method really is the core of this package. We're going to use a rather interesting example to demonstrate the functionalities of `eulerian.Position`. ```{code-cell} ipython3 @@ -90,7 +90,7 @@ plt.show() +++ {"tags": ["mdformat-skip"]} ## Doing Interpolation -We are going to use the sea surface height field $\eta$ as an example. +We are going to use the sea surface height field $\eta$ as an example. First, we are going to convert the `xarray.Dataset` to `seaduck.OceData`. diff --git a/docs/sciserver_notebooks/LLC4320.md b/docs/sciserver_notebooks/LLC4320.md index 1375b493..43649acd 100644 --- a/docs/sciserver_notebooks/LLC4320.md +++ b/docs/sciserver_notebooks/LLC4320.md @@ -14,7 +14,7 @@ kernelspec: # Plot surface streamlines on LLC4320 Author: Wenrui Jiang 14 June, 2023 -> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320.ipynb. +> **Warning**⚠️ : the notebook was last ran on **2023-11-22** with **seaduck 1.0.0**. You can find the executable version at https://github.com/MaceKuailv/seaduck_sciserver_notebook/blob/master/LLC4320.ipynb. The LLC4320 ocean circulation model solution is a kilometer-scale, global simulation with complex grid topology. This is a good dataset to test the performance of the `seaduck` package. ```{code-cell} ipython3 @@ -33,7 +33,7 @@ mpl.rcParams["figure.dpi"] = 600 ```{admonition} Access LLC4320 The global MITgcm run is the LLC4320 simulation [(Rocha -et al. 2016)](https://journals.ametsoc.org/view/journals/phoc/46/2/jpo-d-15-0087.1.xml) and is publicly available on [SciServer](https://sciserver.org/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html) method. +et al. 2016)](https://journals.ametsoc.org/view/journals/phoc/46/2/jpo-d-15-0087.1.xml) and is publicly available on [SciServer](https://sciserver.org/) (from the Oceanography container). The simulation output can be opened using the [OceanSpy](https://github.com/hainegroup/oceanspy) package using the [`from_catalog`](https://oceanspy.readthedocs.io/en/latest/generated/oceanspy.open_oceandataset.from_catalog.html) method. `od = ospy.open_oceandataset.from_catalog("LLC4320")`