Trees | Indices | Help |
---|
|
Handling code for noaa stations data.
The Web Services Description Language (WSDL) definition for the query/response from the NOAA Axis server.Version: 5303
License: GPL v2
Copyright: (C) 2006 Kurt Schwehr
|
|||
|
Station A single station |
||
|
ActiveStations Custom wrapper around the ActiveStations that allows the system to fail back to a precaptured list of stations and instruments |
|
|||
|
getActiveStationsSoappy(debug=False) Use the old SOAPpy interface to get the stations |
||
|
stripNameSpaces(xmlString) Nuke the xmlns sections. |
||
|
lonlatText2decimal(lonlatString) Convert positions as found in the xml into decimal lon/lat |
||
|
getWaterLevelStationsBBox(ll,
ur) Return a list of Station Class objects. |
|
|||
|
__date__ = '2007-01-04' Date of last svn commit |
||
|
hamptonRoadsBBox = [(-77.5, 36.5), (-74.5, 38.0)]
|
|
Use the old SOAPpy interface to get the stations Here is the results for one station: print response.station[1] <SOAPpy.Types.structType station at 20681072>: {'parameter': ['', ''], 'metadata': <SOAPpy.Types.structType metadata at 20683272>: 'date_established': '1954-11-24', 'location': <SOAPpy.Types.structType location at 20635240>: }}>>> response = getActiveStationsSoappy() >>> str(response.station[1].metadata.location.lat) '21 57.3 N' >>> str(response.station[1].metadata.location.long) '159 21.4 W' >>> str(response.station[1].metadata.location.state) 'HI'
|
|
>>> lonlatText2decimal('21 57.3 N') 21.954999999999998 >>> lonlatText2decimal('159 21.4 W') -159.35666666666665 |
|
|
__date__Date of last svn commit
|
hamptonRoadsBBoxNone
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Fri Jan 5 15:42:49 2007 | http://epydoc.sourceforge.net |