Skip to content

Commit 88eb5bd

Browse files
committed
⚰️ Minor fixes to spelling and imports in extract_anomalies
1 parent 48535b8 commit 88eb5bd

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

notebooks/extract_anomalies.ipynb

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"cell_type": "markdown",
3939
"metadata": {},
4040
"source": [
41-
"Download only data for the Southern emisphere. You can do the same for the Northern emisphere by changing the `area` key to `[90, -180, 0, 180]`, or leave out the key altogether to get global data. The data is saved in `msl_monthly_south_1979_2020.nc`. Provide the full path if you want it saved under another directory, e.g. `../data/msl_monthly_south_1979_2020.nc`."
41+
"Download only data for the Southern hemisphere. You can do the same for the Northern hemisphere by changing the `area` key to `[90, -180, 0, 180]`, or leave out the key altogether to get global data. The data is saved in `msl_monthly_south_1979_2020.nc`. Provide the full path if you want it saved under another directory, e.g. `../data/msl_monthly_south_1979_2020.nc`."
4242
]
4343
},
4444
{
@@ -937,13 +937,7 @@
937937
"outputs": [],
938938
"source": [
939939
"import matplotlib.pyplot as plt\n",
940-
"import matplotlib.animation as animation\n",
941940
"import numpy as np\n",
942-
"import xarray as xr\n",
943-
"from IPython.display import Image\n",
944-
"from matplotlib.cm import ScalarMappable\n",
945-
"from matplotlib.colors import Normalize\n",
946-
"from matplotlib.animation import PillowWriter\n",
947941
"import cartopy.crs as ccrs\n",
948942
"import cartopy.feature as cfeature\n",
949943
"import cmocean\n",
@@ -953,7 +947,7 @@
953947
" is_arctic = msl_data.latitude.mean().item() > 0\n",
954948
" proj = ccrs.NorthPolarStereo() if is_arctic else ccrs.SouthPolarStereo()\n",
955949
"\n",
956-
" fig = plt.figure(figsize=(8, 8))\n",
950+
" plt.figure(figsize=(8, 8))\n",
957951
" ax = plt.axes(projection=proj)\n",
958952
"\n",
959953
" # Set appropriate extent for polar views\n",
@@ -981,9 +975,7 @@
981975
" )\n",
982976
"\n",
983977
" # Colorbar\n",
984-
" cbar = plt.colorbar(\n",
985-
" cs, orientation=\"horizontal\", pad=0.05, aspect=50, label=\"MSLP (hPa)\"\n",
986-
" )\n",
978+
" plt.colorbar(cs, orientation=\"horizontal\", pad=0.05, aspect=50, label=\"MSLP (hPa)\")\n",
987979
"\n",
988980
" ax.set_title(title)\n",
989981
"\n",

0 commit comments

Comments
 (0)