|
52 | 52 | "import cartopy.crs as ccrs\n", |
53 | 53 | "import cartopy.feature as cfeature\n", |
54 | 54 | "import numpy as np\n", |
55 | | - "from scipy.ndimage import gaussian_filter\n", |
56 | 55 | "from siphon.catalog import TDSCatalog\n", |
57 | 56 | "from siphon.ncss import NCSS\n", |
58 | 57 | "import matplotlib.pyplot as plt\n", |
|
312 | 311 | "n_reps = 50\n", |
313 | 312 | "\n", |
314 | 313 | "# Apply the 9-point smoother\n", |
315 | | - "hght_700s = mpcalc.smooth_n_point(hght_700, 9, n_reps)\n", |
316 | | - "hght_500s = mpcalc.smooth_n_point(hght_500, 9, n_reps)\n", |
| 314 | + "hght_700s = mpcalc.smooth_n_point(hght_700, 9, n_reps).metpy.unit_array\n", |
| 315 | + "hght_500s = mpcalc.smooth_n_point(hght_500, 9, n_reps).metpy.unit_array\n", |
317 | 316 | "\n", |
318 | | - "tmpk_700s = mpcalc.smooth_n_point(tmpk_700, 9, n_reps)\n", |
| 317 | + "tmpk_700s = mpcalc.smooth_n_point(tmpk_700, 9, n_reps).metpy.unit_array\n", |
319 | 318 | "tmpc_700s = tmpk_700s.to('degC')\n", |
320 | 319 | "\n", |
321 | | - "uwnd_700s = mpcalc.smooth_n_point(uwnd_700, 9, n_reps)\n", |
322 | | - "vwnd_700s = mpcalc.smooth_n_point(vwnd_700, 9, n_reps)\n", |
| 320 | + "uwnd_700s = mpcalc.smooth_n_point(uwnd_700, 9, n_reps).metpy.unit_array\n", |
| 321 | + "vwnd_700s = mpcalc.smooth_n_point(vwnd_700, 9, n_reps).metpy.unit_array\n", |
323 | 322 | "\n", |
324 | | - "uwnd_500s = mpcalc.smooth_n_point(uwnd_500, 9, n_reps)\n", |
325 | | - "vwnd_500s = mpcalc.smooth_n_point(vwnd_500, 9, n_reps)\n", |
| 323 | + "uwnd_500s = mpcalc.smooth_n_point(uwnd_500, 9, n_reps).metpy.unit_array\n", |
| 324 | + "vwnd_500s = mpcalc.smooth_n_point(vwnd_500, 9, n_reps).metpy.unit_array\n", |
326 | 325 | "\n", |
327 | | - "uwnd_900s = mpcalc.smooth_n_point(uwnd_900, 9, n_reps)\n", |
328 | | - "vwnd_900s = mpcalc.smooth_n_point(vwnd_900, 9, n_reps)" |
| 326 | + "uwnd_900s = mpcalc.smooth_n_point(uwnd_900, 9, n_reps).metpy.unit_array\n", |
| 327 | + "vwnd_900s = mpcalc.smooth_n_point(vwnd_900, 9, n_reps).metpy.unit_array" |
329 | 328 | ] |
330 | 329 | }, |
331 | 330 | { |
|
0 commit comments