cleanup Forecast_Model_Vertical_Sounding.ipynb

This commit is contained in:
Michael James 2018-10-11 20:48:59 -06:00
parent 6b591452dc
commit 477316a34a

View file

@ -59,23 +59,8 @@
"response = DataAccessLayer.getAvailableTimes(request, True)\n",
"cycle = response[1]\n",
"refTime = cycle.getValidPeriod().getStart()\n",
"print(cycle.getValidPeriod())"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Found 43 records\n"
]
}
],
"source": [
"print(cycle.getValidPeriod())\n",
"\n",
"SoundingsSupport.changeEDEXHost(server)\n",
"sndObject = SoundingsSupport.getSounding(\n",
" model, parms, all_pres_levels, envelope, refTime=refTime)\n",
@ -116,8 +101,6 @@
" pres.append(float(sndObject._dataDict[t][lvl][parm]))\n",
"\n",
"pres = np.flip(np.array([l.replace('MB','') for l in all_pres_levels], dtype=float))\n",
"print(min(pres), max(pres))\n",
"#pres = np.array(pres)\n",
"tmpc = (np.array(tmpc)-273.15) * units.degC\n",
"dwpt = (np.array(dwpt)-273.15) * units.degC\n",
"wsp = np.array(wsp, dtype=float)\n",
@ -164,10 +147,6 @@
"from metpy.plots import SkewT, Hodograph\n",
"from mpl_toolkits.axes_grid1.inset_locator import inset_axes\n",
"\n",
"print(len(pres), len(tmpc), len(dwpt), len(wsp))\n",
"\n",
"\n",
"\n",
"plt.rcParams['figure.figsize'] = (12, 14)\n",
"# Create a skewT plot\n",
"skew = SkewT()\n",