Skip to content

Commit

Permalink
add small intro text to notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
vadmbertr committed Oct 27, 2023
1 parent d234dd2 commit a93e999
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 82 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/notebooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Notebooks
.. toctree::
:maxdepth: 2

gaussian.eddy
alboran.sea
gaussian_eddy
alboran_sea
5 changes: 5 additions & 0 deletions notebooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Notebooks

We designed two notebooks, one with the extremely idealised scenario of a [gaussian eddy](gaussian_eddy), and a realistic one focusing on the [Alboran sea](alboran_sea) area.

The goal is both to showcase step-by-step how **jaxparrow** can be used, and to demonstrate the interest of the variational approach we propose.
102 changes: 22 additions & 80 deletions notebooks/alboran_sea.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
"# Input data\n",
"\n",
"In this example, we use NEMO model outputs (SSH and velocities), stored in several netCDF files.\n",
"Data can be downloaded [here](https://1drv.ms/f/s!Aq7KsFIdmDGepjMT6o77ko-JRRZu?e=hpxeKa), and the files stored inside the `data` folder.\n",
"\n",
"Measurements are located on a C-grid."
]
},
Expand All @@ -47,10 +49,7 @@
"end_time": "2023-10-24T15:29:58.268892996Z",
"start_time": "2023-10-24T15:29:58.267384387Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand All @@ -66,10 +65,7 @@
"cell_type": "markdown",
"id": "31e2b1b4fab206a6",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"#### Alboran sea\n",
Expand All @@ -86,10 +82,7 @@
"end_time": "2023-10-24T15:29:58.269079811Z",
"start_time": "2023-10-24T15:29:58.267613107Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand All @@ -108,10 +101,7 @@
"end_time": "2023-10-24T15:29:59.594187826Z",
"start_time": "2023-10-24T15:29:58.267788417Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -156,10 +146,7 @@
"cell_type": "markdown",
"id": "1fb1398a5dd8780a",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"We use `masked_array` to restrict the domain to the marine area."
Expand Down Expand Up @@ -299,10 +286,7 @@
"cell_type": "markdown",
"id": "c8946c6e757a7b15",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"#### Coriolis factor\n",
Expand Down Expand Up @@ -388,10 +372,7 @@
"end_time": "2023-10-24T15:30:01.431995140Z",
"start_time": "2023-10-24T15:30:00.348815810Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [
{
Expand Down Expand Up @@ -465,10 +446,7 @@
"cell_type": "markdown",
"id": "c46f9e2e",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"# Cyclogeostrophic balance"
Expand Down Expand Up @@ -530,10 +508,7 @@
"cell_type": "markdown",
"id": "d3e2c5e5e0da2dea",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"#### Comparison to NEMO's velocities"
Expand All @@ -548,10 +523,7 @@
"end_time": "2023-10-24T15:30:06.300383524Z",
"start_time": "2023-10-24T15:30:05.259525231Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [
{
Expand Down Expand Up @@ -664,10 +636,7 @@
"end_time": "2023-10-24T15:30:06.831692322Z",
"start_time": "2023-10-24T15:30:06.789372115Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand All @@ -679,10 +648,7 @@
"cell_type": "markdown",
"id": "eb3c62eac7e2b973",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"#### Comparison to NEMO's velocities"
Expand All @@ -697,10 +663,7 @@
"end_time": "2023-10-24T15:30:07.967620399Z",
"start_time": "2023-10-24T15:30:06.831499573Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [
{
Expand Down Expand Up @@ -762,10 +725,7 @@
"cell_type": "markdown",
"id": "2b64d8ebac4a31ba",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"## Ioannou method\n",
Expand All @@ -782,10 +742,7 @@
"end_time": "2023-10-24T15:30:08.872891446Z",
"start_time": "2023-10-24T15:30:07.967248383Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [
{
Expand Down Expand Up @@ -827,10 +784,7 @@
"end_time": "2023-10-24T15:30:08.919845144Z",
"start_time": "2023-10-24T15:30:08.876337674Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [],
"source": [
Expand All @@ -842,10 +796,7 @@
"cell_type": "markdown",
"id": "ba21c56a0c967d4f",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"#### Comparison to NEMO's velocities"
Expand All @@ -860,10 +811,7 @@
"end_time": "2023-10-24T15:30:09.913220224Z",
"start_time": "2023-10-24T15:30:08.919576667Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [
{
Expand Down Expand Up @@ -925,10 +873,7 @@
"cell_type": "markdown",
"id": "7953c74e27d1e5d",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"source": [
"#### Comparison to Penven velocities"
Expand All @@ -943,10 +888,7 @@
"end_time": "2023-10-24T15:30:10.810287931Z",
"start_time": "2023-10-24T15:30:09.913500587Z"
},
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
"collapsed": false
},
"outputs": [
{
Expand Down
2 changes: 2 additions & 0 deletions notebooks/alboran_sea/alboran_sea.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Input data

In this example, we use NEMO model outputs (SSH and velocities), stored in several netCDF files.
Data can be downloaded [here](https://1drv.ms/f/s!Aq7KsFIdmDGepjMT6o77ko-JRRZu?e=hpxeKa), and the files stored inside the `data` folder.

Measurements are located on a C-grid.

```python
Expand Down

0 comments on commit a93e999

Please sign in to comment.