mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
Move the glm_points definition to the correct spot
This commit is contained in:
parent
8cff0278d8
commit
45faf991b4
1 changed files with 6 additions and 6 deletions
|
@ -80,7 +80,11 @@
|
||||||
"request.addIdentifier(\"source\", \"GLMgr\")\n",
|
"request.addIdentifier(\"source\", \"GLMgr\")\n",
|
||||||
"request.setParameters(\"intensity\")\n",
|
"request.setParameters(\"intensity\")\n",
|
||||||
"times = DataAccessLayer.getAvailableTimes(request)\n",
|
"times = DataAccessLayer.getAvailableTimes(request)\n",
|
||||||
"response = DataAccessLayer.getGeometryData(request, [times[-1]])"
|
"response = DataAccessLayer.getGeometryData(request, [times[-1]])",
|
||||||
|
"glm_points = []\n",
|
||||||
|
"for data in response:\n",
|
||||||
|
" glm_points.append(data.getGeometry())\n",
|
||||||
|
"ob = response[0]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -121,11 +125,7 @@
|
||||||
"ax.scatter([point.x for point in glm_points],\n",
|
"ax.scatter([point.x for point in glm_points],\n",
|
||||||
" [point.y for point in glm_points],\n",
|
" [point.y for point in glm_points],\n",
|
||||||
" transform=ccrs.Geodetic(),marker=\"+\",facecolor='red')\n",
|
" transform=ccrs.Geodetic(),marker=\"+\",facecolor='red')\n",
|
||||||
"ax.set_title(str(response[-1].getDataTime().getRefTime()) + \" | \" + ob.getAttribute('source') + \" | \" + edexServer)\n",
|
"ax.set_title(str(response[-1].getDataTime().getRefTime()) + \" | \" + ob.getAttribute('source') + \" | \" + edexServer)\n"
|
||||||
"glm_points = []\n",
|
|
||||||
"for data in response:\n",
|
|
||||||
" glm_points.append(data.getGeometry())\n",
|
|
||||||
"ob = response[0]"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Reference in a new issue