Skip to content

Commit c1f5d66

Browse files
committed
Change to import all of the declarative functionality.
1 parent b92d91a commit c1f5d66

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

pages/gallery/Declarative_300hPa.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"from datetime import datetime\n",
3030
"\n",
3131
"import metpy.calc as mpcalc\n",
32-
"import metpy.plots as mpplots\n",
32+
"from metpy.plots.declarative import *\n",
3333
"from metpy.units import units\n",
3434
"import xarray as xr"
3535
]
@@ -115,7 +115,7 @@
115115
"outputs": [],
116116
"source": [
117117
"# Countour Plot of Geopotential Heights\n",
118-
"contour = mpplots.ContourPlot()\n",
118+
"contour = ContourPlot()\n",
119119
"contour.data = ds\n",
120120
"contour.time = datetime(2010, 10, 31, 12)\n",
121121
"contour.field = 'Geopotential_height_isobaric'\n",
@@ -127,7 +127,7 @@
127127
"contour.contours = list(range(0, 20000, 120))\n",
128128
"\n",
129129
"# Colorfilled Plot of Wind Speed\n",
130-
"cfill = mpplots.FilledContourPlot()\n",
130+
"cfill = FilledContourPlot()\n",
131131
"cfill.data = ds\n",
132132
"cfill.field = 'wind_speed'\n",
133133
"cfill.level = 300 * units.hPa\n",
@@ -136,7 +136,7 @@
136136
"cfill.colorbar = 'vertical'\n",
137137
"\n",
138138
"# Plot wind barbs\n",
139-
"barb = mpplots.BarbPlot()\n",
139+
"barb = BarbPlot()\n",
140140
"barb.data = ds\n",
141141
"barb.level = 300 * units.hPa\n",
142142
"barb.field = ['u-component_of_wind_isobaric', 'v-component_of_wind_isobaric']\n",
@@ -146,15 +146,15 @@
146146
"barb.earth_relative = False\n",
147147
"\n",
148148
"# Panel for plot with Map features\n",
149-
"panel = mpplots.MapPanel()\n",
149+
"panel = MapPanel()\n",
150150
"panel.layout = (1, 1, 1)\n",
151151
"panel.area = (-124, -72, 20, 53)\n",
152152
"panel.projection = 'lcc'\n",
153153
"panel.layers = ['coastline', 'borders', 'states', 'land']\n",
154154
"panel.plots = [cfill, contour, barb]\n",
155155
"\n",
156156
"# Bringing it all together\n",
157-
"pc = mpplots.PanelContainer()\n",
157+
"pc = PanelContainer()\n",
158158
"pc.size = (15, 9)\n",
159159
"pc.panels = [panel]\n",
160160
"\n",

pages/workshop/XArray/XArray and CF.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"</div>\n",
1212
"\n",
1313
"<h1>XArray & CF Introduction</h1>\n",
14-
"<h3>Unidata Sustainable Science Workshop</h3>\n",
1514
"\n",
1615
"<div style=\"clear:both\"></div>\n",
1716
"</div>\n",
@@ -247,7 +246,7 @@
247246
},
248247
{
249248
"cell_type": "code",
250-
"execution_count": 1,
249+
"execution_count": null,
251250
"metadata": {},
252251
"outputs": [],
253252
"source": [

pages/workshop/workshop_intro.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ Atmospheric Science & Meteorology Packages and Applications
3939
* :doc:`Introduction to Cartopy <cartopy>`
4040
* MetPy
4141
* :doc:`Introduction to MetPy <introduction-to-metpy>`
42-
* :doc:`MetPy Case Study <metpy_case_study>`
42+
* :doc:`MetPy Case Study <metpy-case-study>`
4343
* :doc:`Isentropic Analysis <isentropic-analysis>`
4444
* :doc:`QG Analysis <qg-analysis>`
4545
* Siphon
4646
* :doc:`Siphon Overview <siphon-overview>`
4747
* Model Output
4848
* :doc:`Downloading Model Data with NCSS <downloading-model-fields-with-NCSS>`
4949
* SkewT
50-
* :doc:`SkewTs and Hodographs <skewt_and_hodograph>`
50+
* :doc:`SkewTs and Hodographs <skewt-and-hodograph>`
5151
* Satellite Analysis
5252
* :doc:`Plotting Satellite Data <plotting-satellite-data>`
5353
* :doc:`GOES Interactive Plotting <goes-interactive-plot>`
@@ -59,7 +59,7 @@ Atmospheric Science & Meteorology Packages and Applications
5959
* Bonus
6060
* :doc:`GFS Download with Siphon <downloading-gfs-with-siphon>`
6161
* :doc:`Write netCDF files <netcdf-writing>`
62-
* :doc:`Plot HRRR Output with Siphon and XArray <siphon_xarray_cartopy_hrrr>`
62+
* :doc:`Plot HRRR Output with Siphon and XArray <siphon-xarray-cartopy-and-hrrr>`
6363
* :doc:`Debugging and Troubleshooting Your Code <what-to-do-when-things-go-wrong>`
6464
* :doc:`NetCDF CF Conventions: The Basics <netcdf-and-cf-the-basics>`
6565

0 commit comments

Comments
 (0)