mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
cleanup Forecast_Model_Vertical_Sounding.ipynb
This commit is contained in:
parent
6b591452dc
commit
477316a34a
1 changed files with 2 additions and 23 deletions
|
@ -59,23 +59,8 @@
|
||||||
"response = DataAccessLayer.getAvailableTimes(request, True)\n",
|
"response = DataAccessLayer.getAvailableTimes(request, True)\n",
|
||||||
"cycle = response[1]\n",
|
"cycle = response[1]\n",
|
||||||
"refTime = cycle.getValidPeriod().getStart()\n",
|
"refTime = cycle.getValidPeriod().getStart()\n",
|
||||||
"print(cycle.getValidPeriod())"
|
"print(cycle.getValidPeriod())\n",
|
||||||
]
|
"\n",
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 14,
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"Found 43 records\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
|
||||||
"SoundingsSupport.changeEDEXHost(server)\n",
|
"SoundingsSupport.changeEDEXHost(server)\n",
|
||||||
"sndObject = SoundingsSupport.getSounding(\n",
|
"sndObject = SoundingsSupport.getSounding(\n",
|
||||||
" model, parms, all_pres_levels, envelope, refTime=refTime)\n",
|
" model, parms, all_pres_levels, envelope, refTime=refTime)\n",
|
||||||
|
@ -116,8 +101,6 @@
|
||||||
" pres.append(float(sndObject._dataDict[t][lvl][parm]))\n",
|
" pres.append(float(sndObject._dataDict[t][lvl][parm]))\n",
|
||||||
"\n",
|
"\n",
|
||||||
"pres = np.flip(np.array([l.replace('MB','') for l in all_pres_levels], dtype=float))\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",
|
"tmpc = (np.array(tmpc)-273.15) * units.degC\n",
|
||||||
"dwpt = (np.array(dwpt)-273.15) * units.degC\n",
|
"dwpt = (np.array(dwpt)-273.15) * units.degC\n",
|
||||||
"wsp = np.array(wsp, dtype=float)\n",
|
"wsp = np.array(wsp, dtype=float)\n",
|
||||||
|
@ -164,10 +147,6 @@
|
||||||
"from metpy.plots import SkewT, Hodograph\n",
|
"from metpy.plots import SkewT, Hodograph\n",
|
||||||
"from mpl_toolkits.axes_grid1.inset_locator import inset_axes\n",
|
"from mpl_toolkits.axes_grid1.inset_locator import inset_axes\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(len(pres), len(tmpc), len(dwpt), len(wsp))\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"plt.rcParams['figure.figsize'] = (12, 14)\n",
|
"plt.rcParams['figure.figsize'] = (12, 14)\n",
|
||||||
"# Create a skewT plot\n",
|
"# Create a skewT plot\n",
|
||||||
"skew = SkewT()\n",
|
"skew = SkewT()\n",
|
||||||
|
|
Loading…
Add table
Reference in a new issue