{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Sea ice seasonality in the Southern Ocean\n", "This script calculates days of sea ice advance, retreat, and total sea ice duration over the sea ice season (February 15 to February 14) in the Southern Ocean using outputs from ACCESS-OM2-01. \n", "**Requirements:** It is suggested you use the `conda/analysis3-20.01` (or later) kernel. This can be defined using the drop down list on the left hand corner, or type `!module load conda/analysis3` in a Python cell." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Loading relevant modules\n", "These modules are used to access relevant outputs and to manipulate data. " ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "#This first line will show plots produced by matplotlib inside this Jupyter notebook\n", "%matplotlib inline\n", "\n", "import cosima_cookbook as cc\n", "import matplotlib.pyplot as plt\n", "import netCDF4 as nc\n", "import xarray as xr\n", "import numpy as np\n", "import pandas as pd\n", "import datetime as dt\n", "import calendar\n", "import os\n", "import re\n", "from dask.distributed import Client, progress\n", "import cmocean as cm # Nice colormaps\n", "import cartopy.crs as ccrs # For making maps with different projections\n", "import cartopy.feature as cft # For adding features to maps" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Parallelising work\n", "Start a cluster that uses multiple cores to parallelise work. Remember that the number of cores cannot exceed the number of CPUs requested when accessing GADI. \n", "If the line below does not run, skip it. The result is that the job will not be parallelised, but the script will still run." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n",
"Client\n", "
| \n",
"\n",
"Cluster\n", "
| \n",
"