diff --git a/examples/notebooks/Grid_Levels_and_Parameters.ipynb b/examples/notebooks/Grid_Levels_and_Parameters.ipynb index 6336193..2829db5 100644 --- a/examples/notebooks/Grid_Levels_and_Parameters.ipynb +++ b/examples/notebooks/Grid_Levels_and_Parameters.ipynb @@ -912,10 +912,13 @@ " gl.yformatter = LATITUDE_FORMATTER\n", " return fig, ax\n", "\n", + "#convert temp from K to F\n", + "dataf = data*1.8-459.67\n", + "\n", "cmap = plt.get_cmap('rainbow')\n", "bbox = [lons.min(), lons.max(), lats.min(), lats.max()]\n", "fig, ax = make_map(bbox=bbox)\n", - "cs = ax.pcolormesh(lons, lats, data, cmap=cmap)\n", + "cs = ax.pcolormesh(lons, lats, dataf, cmap=cmap)\n", "cbar = fig.colorbar(cs, extend='both', shrink=0.5, orientation='horizontal')\n", "cbar.set_label(grid.getLocationName() +\" \" + grid.getLevel() + \" \" \\\n", " + grid.getParameter() + \" (\" + grid.getUnit() + \") \" \\\n", @@ -949,8 +952,8 @@ ], "source": [ "fig2, ax2 = make_map(bbox=bbox)\n", - "cs2 = ax2.contourf(lons, lats, data, 80, cmap=cmap,\n", - " vmin=data.min(), vmax=data.max(), extend='both')\n", + "cs2 = ax2.contourf(lons, lats, dataf, 80, cmap=cmap,\n", + " vmin=dataf.min(), vmax=dataf.max(), extend='both')\n", "cbar2 = fig2.colorbar(cs2, shrink=0.5, orientation='horizontal')\n", "cbar2.set_label(grid.getLocationName() +\" \" + grid.getLevel() + \" \" \\\n", " + grid.getParameter() + \" (\" + grid.getUnit() + \") \" \\\n",