mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
notebook updates for bytestring encoding refactor
This commit is contained in:
parent
9ed66f22c6
commit
580453acf0
10 changed files with 1924 additions and 1890 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -66,7 +66,6 @@
|
||||||
"\n",
|
"\n",
|
||||||
"# Server, Data Request Type, and Database Table\n",
|
"# Server, Data Request Type, and Database Table\n",
|
||||||
"DataAccessLayer.changeEDEXHost(\"edex-cloud.unidata.ucar.edu\")\n",
|
"DataAccessLayer.changeEDEXHost(\"edex-cloud.unidata.ucar.edu\")\n",
|
||||||
"\n",
|
|
||||||
"request = DataAccessLayer.newDataRequest('maps')\n",
|
"request = DataAccessLayer.newDataRequest('maps')\n",
|
||||||
"request.addIdentifier('table', 'mapdata.county')"
|
"request.addIdentifier('table', 'mapdata.county')"
|
||||||
]
|
]
|
||||||
|
@ -297,9 +296,9 @@
|
||||||
"cityname = []\n",
|
"cityname = []\n",
|
||||||
"# For BOU, progressive disclosure values above 50 and pop above 5000 looks good\n",
|
"# For BOU, progressive disclosure values above 50 and pop above 5000 looks good\n",
|
||||||
"for ob in cities:\n",
|
"for ob in cities:\n",
|
||||||
" if ob.getNumber(\"population\"):\n",
|
" if ob.getString(\"population\"):\n",
|
||||||
" if ob.getNumber(\"prog_disc\") > 50:\n",
|
" if ob.getNumber(\"prog_disc\") > 50:\n",
|
||||||
" if int(ob.getNumber(\"population\")) > 5000:\n",
|
" if int(ob.getString(\"population\")) > 5000:\n",
|
||||||
" citylist.append(ob.getGeometry())\n",
|
" citylist.append(ob.getGeometry())\n",
|
||||||
" cityname.append(ob.getString(\"name\"))\n",
|
" cityname.append(ob.getString(\"name\"))\n",
|
||||||
"print(\"Plotting \" + str(len(cityname)) + \" cities\")\n",
|
"print(\"Plotting \" + str(len(cityname)) + \" cities\")\n",
|
||||||
|
@ -440,7 +439,7 @@
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"[<awips.dataaccess.PyGridData.PyGridData object at 0x11fb083c8>]\n",
|
"[<awips.dataaccess.PyGridData.PyGridData object at 0x1165d15f8>]\n",
|
||||||
"Number of grid records: 1\n",
|
"Number of grid records: 1\n",
|
||||||
"Sample grid data shape:\n",
|
"Sample grid data shape:\n",
|
||||||
"(778, 1058)\n",
|
"(778, 1058)\n",
|
||||||
|
@ -459,8 +458,7 @@
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"import numpy.ma as ma\n",
|
"import numpy.ma as ma\n",
|
||||||
"request = DataAccessLayer.newDataRequest()\n",
|
"request = DataAccessLayer.newDataRequest(\"topo\")\n",
|
||||||
"request.setDatatype(\"topo\")\n",
|
|
||||||
"request.addIdentifier(\"group\", \"/\")\n",
|
"request.addIdentifier(\"group\", \"/\")\n",
|
||||||
"request.addIdentifier(\"dataset\", \"full\")\n",
|
"request.addIdentifier(\"dataset\", \"full\")\n",
|
||||||
"request.setEnvelope(envelope)\n",
|
"request.setEnvelope(envelope)\n",
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue