From 2349e2846908b4588c20675d01b87e5ce826d31b Mon Sep 17 00:00:00 2001 From: "Navid C. Constantinou" Date: Tue, 5 Sep 2023 16:00:55 +1000 Subject: [PATCH] run all cells (#290) --- Tutorials/Spatial_selection.ipynb | 176 +++++++++++++++--------------- 1 file changed, 89 insertions(+), 87 deletions(-) diff --git a/Tutorials/Spatial_selection.ipynb b/Tutorials/Spatial_selection.ipynb index 9966733b..21db23ef 100644 --- a/Tutorials/Spatial_selection.ipynb +++ b/Tutorials/Spatial_selection.ipynb @@ -10,20 +10,21 @@ "\n", "This means any plotting or analysis in this region needs to use 2D curvilinear latitude and longitude coordinates.\n", "\n", - "This notebook will cover how to use the curvilinear coordinates to select data within latitude and longitude limits, and how to plot data in the tripole region correctly. There is also a [full tutorial on plotting with projections](https://github.com/hrsdawson/cosima-recipes/blob/master/Tutorials/Making_Maps_with_Cartopy.ipynb).\n", + "This notebook will cover how to use the curvilinear coordinates to select data within latitude and longitude limits, and how to plot data in the tripole region correctly. There is also a [full tutorial on plotting with projections](https://cosima-recipes.readthedocs.io/en/latest/Tutorials/Making_Maps_with_Cartopy.html).\n", "\n", - "Below the tripole area it is sufficient to use 1D latitude and longitude coordinates, which are much more convenient to use as they can use the [`xarray`](http://xarray.pydata.org/en/stable/index.html) [`sel`](http://xarray.pydata.org/en/stable/generated/xarray.DataArray.sel.html) method with `slice` notation.\n", + "Below the tripole area it is sufficient to use 1D latitude and longitude coordinates, which are much more convenient to use as they can use the [xarray](http://xarray.pydata.org/en/stable/index.html)'s [sel](http://xarray.pydata.org/en/stable/generated/xarray.DataArray.sel.html) method with `slice` notation.\n", "\n", "This notebook will also demonstrate how to do this.\n", "\n", - "The data output from the CICE model component do not have a convenient to use 1D latitude and longitude coordinates. As the ice and ocean models share a grid the coordinates from each model can be used interchangeably with the other. A method to add 1D latitude and longitude coordinates to an ice [`xarray.DataArray`](http://xarray.pydata.org/en/stable/generated/xarray.DataArray.html) is also demonstrated.\n", - "\n" + "The data output from the CICE model component do not have a convenient to use 1D latitude and longitude coordinates. As the ice and ocean models share a grid the coordinates from each model can be used interchangeably with the other. A method to add 1D latitude and longitude coordinates to an ice [`xarray.DataArray`](http://xarray.pydata.org/en/stable/generated/xarray.DataArray.html) is also demonstrated." ] }, { "cell_type": "code", - "execution_count": 67, - "metadata": {}, + "execution_count": 1, + "metadata": { + "tags": [] + }, "outputs": [], "source": [ "import cosima_cookbook as cc\n", @@ -45,10 +46,12 @@ { "cell_type": "code", "execution_count": 2, - "metadata": {}, + "metadata": { + "tags": [] + }, "outputs": [], "source": [ - "session = cc.database.create_session(db='/g/data/ik11/databases/cosima_master.db')" + "session = cc.database.create_session()" ] }, { @@ -61,10 +64,12 @@ { "cell_type": "code", "execution_count": 3, - "metadata": {}, + "metadata": { + "tags": [] + }, "outputs": [], "source": [ - "expt='01deg_jra55v140_iaf'" + "expt = '01deg_jra55v140_iaf'" ] }, { @@ -130,7 +135,7 @@ "metadata": {}, "outputs": [], "source": [ - "aice_m = cc.querying.getvar(expt,'aice_m', session, n=12)" + "aice_m = cc.querying.getvar(expt, 'aice_m', session, n=12)" ] }, { @@ -531,7 +536,7 @@ " email: andrew.kiss@anu.edu.au\n", " created: 2020-06-09\n", " description: 0.1 degree ACCESS-OM2 global model configuration under in...\n", - " notes: Source code: https://github.com/COSIMA/access-om2 License...