Package noaadata :: Module stations :: Class ActiveStations
[hide private]
[frames] | no frames]

Class ActiveStations

source code

Custom wrapper around the ActiveStations that allows the system to fail back to a precaptured list of stations and instruments

Instance Methods [hide private]
 
__init__(self, allowCache=True, forceCache=False)
Fetch the stations from the NOAA web services or a cache.
source code
 
getStationsNameNumb(self)
Get a nice lookup table of station ID to name translations
source code
 
getStationsInBBox(self, lowerleft, upperright)
Specify a bounding box and get the points in that region
source code
 
getStation(self, ID)
Return a station class object
source code
 
getStationXmlFromSoap(self)
Speak soap to the NOAA axis server and return the SOAP xml.
source code
Class Variables [hide private]
  SERVER_ADDR = 'opendap.co-ops.nos.noaa.gov'
Host name for the NOAA Axis soap server
  SERVER_PORT = 80
Axis sits on the normal Apache http port 80
  NS = 'http://opendap.co-ops.nos.noaa.gov/axis/services/ActiveS...
The exact location of the soap call.
Method Details [hide private]

__init__(self, allowCache=True, forceCache=False)
(Constructor)

source code 
Fetch the stations from the NOAA web services or a cache.
Parameters:
  • allowCache - if true, the class will fallback on a precaptured list of stations.

getStationXmlFromSoap(self)

source code 
Speak soap to the NOAA axis server and return the SOAP xml. The xmlns make lxml do weird things.

Class Variable Details [hide private]

NS

The exact location of the soap call. This may be ignored.
Value:
'http://opendap.co-ops.nos.noaa.gov/axis/services/ActiveStations'