Skip to content

Commit

Permalink
change to sst figure
Browse files Browse the repository at this point in the history
  • Loading branch information
cgentemann committed May 29, 2019
1 parent 5603b0d commit f832438
Show file tree
Hide file tree
Showing 11 changed files with 1,629 additions and 2,430 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,48 @@
"files[:10]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Let's see what one day looks like"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"ds_sst = xr.open_dataset(files[0])\n",
"f = plt.figure(figsize=(8, 4))\n",
"ax = plt.axes(projection=ccrs.Orthographic(-80, 35))\n",
"ds_sst.sst[0,:,:].plot(ax=ax, transform=ccrs.PlateCarree())\n",
"ax.coastlines(); ax.gridlines(); "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Change the colormap, colorscale, and add land"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"f = plt.figure(figsize=(8, 4))\n",
"ax = plt.axes(projection=ccrs.Orthographic(-80, 35))\n",
"ds_sst.sst[0,:,:].plot(ax=ax, transform=ccrs.PlateCarree(),cmap='jet',vmin=-1,vmax=34)\n",
"ax.coastlines(); ax.gridlines();\n",
"ax.stock_img();\n",
"#fig_fname='./images/sst_avhrroi.png'\n",
"#f.savefig(fig_fname, transparent=False, format='png')"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"source": [
"<div align='right'><img src='images/first_image.png'></div>\n",
"<div align='right'><img src='images/sst_avhrroi.png'></div>\n",
"\n",
"## Python for Oceanographers \n",
"Chelle Gentemann ([email protected]) \n",
Expand Down
42 changes: 42 additions & 0 deletions GHRSST_tutorial/Intro_07_Xarray-Advanced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,48 @@
"files[:10]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Let's see what one day looks like"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"ds_sst = xr.open_dataset(files[0])\n",
"f = plt.figure(figsize=(8, 4))\n",
"ax = plt.axes(projection=ccrs.Orthographic(-80, 35))\n",
"ds_sst.sst[0,:,:].plot(ax=ax, transform=ccrs.PlateCarree())\n",
"ax.coastlines(); ax.gridlines(); "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Change the colormap, colorscale, and add land"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"f = plt.figure(figsize=(8, 4))\n",
"ax = plt.axes(projection=ccrs.Orthographic(-80, 35))\n",
"ds_sst.sst[0,:,:].plot(ax=ax, transform=ccrs.PlateCarree(),cmap='jet',vmin=-1,vmax=34)\n",
"ax.coastlines(); ax.gridlines();\n",
"ax.stock_img();\n",
"#fig_fname='./images/sst_avhrroi.png'\n",
"#f.savefig(fig_fname, transparent=False, format='png')"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Loading

0 comments on commit f832438

Please sign in to comment.