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
Date: 2007-01-04
|
|||
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 |
|
|||
|
|||
|
|||
|
|||
|
|
|||
hamptonRoadsBBox =
|
|
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>: {'lat': '21 57.3 N', 'state': 'HI', 'long': '159 21.4 W'}}}>>> 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'
|
Bug: would be better to use regex to nuke the xmlns. Currently very brittle. FIX! |
>>> lonlatText2decimal('21 57.3 N') 21.954999999999998 >>> lonlatText2decimal('159 21.4 W') -159.35666666666665 |
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Sat Mar 31 08:52:59 2007 | http://epydoc.sourceforge.net |