Skip to content

Commit 34496f0

Browse files
author
Andrew Delman
committed
New steric height tutorial, still in progress
1 parent a989269 commit 34496f0

4 files changed

Lines changed: 1565 additions & 16 deletions

File tree

Intro_to_PO_Tutorials/Steric_height.ipynb

Lines changed: 1563 additions & 0 deletions
Large diffs are not rendered by default.

Intro_to_PO_Tutorials/Thermal_wind.ipynb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -292,22 +292,6 @@
292292
"dens_anom_atdepth = dens.isel(isel_dict) - dens_mean_atdepth\n",
293293
"\n",
294294
"\n",
295-
"# function to scale colormap, coordinating among multiple plots\n",
296-
"def cmap_zerocent_scale_multiplots(plot_objs,scale_factor):\n",
297-
" \"\"\"\n",
298-
" Center colormap at zero and scale relative to existing |maximum| value across multiple plots, \n",
299-
" given plot objects (as list) and scale_factor, a number of type float.\n",
300-
" Returns new colormap limits as new_clim.\n",
301-
" \"\"\"\n",
302-
" clim_plots = np.empty((len(plot_objs),2))\n",
303-
" for count,curr_obj in enumerate(plot_objs):\n",
304-
" clim_plots[count,:] = curr_obj.get_clim()\n",
305-
" new_clim = (scale_factor*np.nanmax(np.abs(clim_plots)))*np.array([-1,1])\n",
306-
" for curr_obj in plot_objs:\n",
307-
" curr_obj.set_clim(new_clim)\n",
308-
" return new_clim\n",
309-
"\n",
310-
"\n",
311295
"# make figure\n",
312296
"curr_mask = land_mask.isel(isel_dict).squeeze()\n",
313297
"fig,axs = depth_two_subplots(ds_grid.XG.isel(isel_dict_ig),-ds_grid.Zl,\\\n",

doc/Steric_height.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Intro_to_PO_Tutorials/Steric_height.ipynb

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ The `ecco_v4_py`_ package used in this tutorial was inspired by the `xmitgcm`_ p
7676

7777
Geostrophic_balance.ipynb
7878
Thermal_wind.ipynb
79+
Steric_height.ipynb
7980

8081
.. toctree::
8182
:maxdepth: 2

0 commit comments

Comments
 (0)