mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
notebook cleanup for 18.1.1 release
This commit is contained in:
parent
abd0128b09
commit
808f83a0c4
11 changed files with 747 additions and 1017 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -65,7 +65,7 @@
|
|||
" return fig, ax\n",
|
||||
"\n",
|
||||
"# Server, Data Request Type, and Database Table\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"149.165.156.89\")\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"edex-cloud.unidata.ucar.edu\")\n",
|
||||
"\n",
|
||||
"request = DataAccessLayer.newDataRequest('maps')\n",
|
||||
"request.addIdentifier('table', 'mapdata.county')"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"from metpy.plots import SkewT, Hodograph\n",
|
||||
"from metpy.units import units, concatenate\n",
|
||||
"\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"149.165.156.89\")\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"edex-cloud.unidata.ucar.edu\")\n",
|
||||
"request = DataAccessLayer.newDataRequest()\n",
|
||||
"request.setDatatype(\"modelsounding\")\n",
|
||||
"forecastModel = \"GFS\"\n",
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -26,7 +26,7 @@
|
|||
"import numpy as np\n",
|
||||
"\n",
|
||||
"# Query ESRL/PSD profiler data from Unidata AWIPS\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"149.165.156.89\")\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"edex-cloud.unidata.ucar.edu\")\n",
|
||||
"request = DataAccessLayer.newDataRequest()\n",
|
||||
"request.setDatatype(\"profiler\")\n",
|
||||
"profilerSites = DataAccessLayer.getAvailableLocationNames(request)\n",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -74,7 +74,7 @@
|
|||
"obs_dict = dict({all_params: [] for all_params in all_params})\n",
|
||||
"\n",
|
||||
"# Create EDEX Request\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"149.165.156.89\")\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"edex-cloud.unidata.ucar.edu\")\n",
|
||||
"request = DataAccessLayer.newDataRequest()\n",
|
||||
"request.setDatatype(\"obs\")\n",
|
||||
"request.setParameters(*(all_params))\n",
|
||||
|
@ -296,21 +296,21 @@
|
|||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 2",
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python2"
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 2
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython2",
|
||||
"version": "2.7.15"
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.6.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 26,
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
|
@ -40,27 +40,13 @@
|
|||
"from metpy.units import units, concatenate\n",
|
||||
"\n",
|
||||
"# Set host\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"149.165.156.89\")\n",
|
||||
"DataAccessLayer.changeEDEXHost(\"edex-cloud.unidata.ucar.edu\")\n",
|
||||
"request = DataAccessLayer.newDataRequest()\n",
|
||||
"\n",
|
||||
"# Set data type\n",
|
||||
"request.setDatatype(\"bufrua\")\n",
|
||||
"availableLocs = DataAccessLayer.getAvailableLocationNames(request)\n",
|
||||
"availableLocs.sort()\n",
|
||||
"\n",
|
||||
"# Set Mandatory and Significant Temperature level parameter\n",
|
||||
"#[b'staName', \n",
|
||||
"# b'numSigT',\n",
|
||||
"# b'numSigW', \n",
|
||||
"# b'numMand', \n",
|
||||
"# b'numTrop', \n",
|
||||
"# b'wmoStaNum', \n",
|
||||
"# b'validTime', \n",
|
||||
"# b'staElev', \n",
|
||||
"# b'rptType', \n",
|
||||
"# b'numMwnd']\n",
|
||||
"\n",
|
||||
"\n",
|
||||
" \n",
|
||||
"MAN_PARAMS = set(['prMan', 'htMan', 'tpMan', 'tdMan', 'wdMan', 'wsMan'])\n",
|
||||
"SIGT_PARAMS = set(['prSigT', 'tpSigT', 'tdSigT'])\n",
|
||||
|
@ -130,8 +116,6 @@
|
|||
"tman = tman * units.degC\n",
|
||||
"dman = dman * units.degC\n",
|
||||
"u,v = wind_components(spd, np.deg2rad(direc))\n",
|
||||
"#u,v = wind_components(spd, direc)\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"# Create SkewT/LogP\n",
|
||||
"plt.rcParams['figure.figsize'] = (8, 10)\n",
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue