Skip to content

Commit

Permalink
fix issues in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
miniufo committed Jul 20, 2023
1 parent af5b893 commit e6ac46f
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 558 deletions.
Binary file removed Data/MassCircQ.nc
Binary file not shown.
1 change: 1 addition & 0 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ dependencies:
- numba
- proplot
- cartopy
- pooch
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"import numpy as np\n",
"\n",
"# load dataset\n",
"ds = xr.open_dataset('../../../Data/Zonalmean.nc')\n",
"ds = xr.open_dataset('../../../Data/ZonalMean.nc')\n",
"print(ds)\n",
"\n",
"cosLat = np.cos(np.deg2rad(ds.lat))\n",
Expand All @@ -216,7 +216,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -272,7 +272,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -304,7 +304,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -357,7 +357,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -430,7 +430,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -488,7 +488,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -526,7 +526,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/source/notebooks/04_Eliassen_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"import numpy as np\n",
"\n",
"# load dataset\n",
"ds = xr.open_dataset('../../../Data/Zonalmean.nc')\n",
"ds = xr.open_dataset('../../../Data/ZonalMean.nc')\n",
"print(ds)\n",
"\n",
"cosLat = np.cos(np.deg2rad(ds.lat))\n",
Expand All @@ -216,7 +216,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -272,7 +272,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -304,7 +304,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -357,7 +357,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -430,7 +430,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -488,7 +488,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -526,7 +526,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down
14 changes: 7 additions & 7 deletions docs/source/notebooks/05_reference_SWM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -241,9 +241,9 @@
" \n",
"except ImportError:\n",
" print('load from a pre-calculated nc file')\n",
" ds_ctr = xr.open_dataset('../../../Data/MassCircQ.nc')\n",
" ds_ctr = xr.open_dataset('../../../Data/contour.nc')\n",
" \n",
" ctr = ds_ctr.ctr\n",
" ctr = ds_ctr.PV\n",
" Mass = ds_ctr.Mass\n",
" Circ = ds_ctr.Circ\n",
"\n",
Expand Down Expand Up @@ -273,7 +273,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -319,7 +319,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -340,7 +340,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -407,7 +407,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down
35 changes: 25 additions & 10 deletions docs/source/notebooks/11_Omega_equation.ipynb

Large diffs are not rendered by default.

439 changes: 0 additions & 439 deletions docs/source/notebooks/test01_Stommel_Arons_model.ipynb

This file was deleted.

76 changes: 0 additions & 76 deletions docs/source/notebooks/test04_3D_Ocean_flow.ipynb

This file was deleted.

0 comments on commit e6ac46f

Please sign in to comment.