Package noaadata :: Module dumpallwl
[hide private]
[frames] | no frames]

Module dumpallwl

source code

Functions [hide private]
 
splitNoaaDateTimeSoap(datetimeStr)
Splits a noaa utc time into fields that are more usable.
source code
 
noaawaterlevel2aisMsg8Nmea(stationID, mmsi, datum, wl, verbose=False, debug=False)
Return one long NMEA string.
source code
BitVector
noaawaterlevel2aisBits(stationID, mmsi, datum, wl, verbose=False, debug=False)
Return an AIS string of the latest waterlevel.
source code
Variables [hide private]
  __version__ = '$Revision: 6041 $'.split() [1]
  __date__ = '$Date: 2007-04-23 11:22:18 -0400 (Mon, 23 Apr 2007...
  __author__ = ''
  __doc__ = '...
  stations = Stations.ActiveStations(forceCache= True)
  url = 'http://opendap.co-ops.nos.noaa.gov/axis/services/WaterL...
  namespace = 'urn:WaterLevelRawSixMin'
  daysPerMon = [-1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
  monthLUT = {'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4, 'May': 5, ...
Function Details [hide private]

splitNoaaDateTimeSoap(datetimeStr)

source code 

Splits a noaa utc time into fields that are more usable.

#>>> splitNoaaDateTime('Jan 4 2007 4:36PM') #(2007,1,4,16,36)
>>> splitNoaaDateTime('2007-01-31 00:06:00.0')
(2007,1,13,00,06)

noaawaterlevel2aisMsg8Nmea(stationID, mmsi, datum, wl, verbose=False, debug=False)

source code 
Return one long NMEA string. This will be oversized for the nmea spec.

noaawaterlevel2aisBits(stationID, mmsi, datum, wl, verbose=False, debug=False)

source code 
Return an AIS string of the latest waterlevel.
Parameters:
  • stationID (str) - which station to query (e.g. '8639348')
  • wl - one entry from a soap query
  • verbose - Set to true for print messages
  • debug - Do not actually fetch any real data (fast for debugging)
  • datum - MSL,MLLW
Returns: BitVector
bits for the message payload

Variables Details [hide private]

__date__

Value:
'$Date: 2007-04-23 11:22:18 -0400 (Mon, 23 Apr 2007) $'.split() [1]

__doc__

Value:
''' 
Create AIS NMEA strings for NOAA CO-OPS tide data. Try to pull all the
water level messages for a station over a long time period

fugly code

@requires: U{Python<http://python.org/>} >= 2.4
@requires: U{epydoc<http://epydoc.sourceforge.net/>} >= 3.0beta1
...

url

Value:
'http://opendap.co-ops.nos.noaa.gov/axis/services/WaterLevelRawSixMin'

monthLUT

Value:
{'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4, 'May': 5, 'Jun': 6, 'Jul': 7,\
 'Aug': 8, 'Sep': 9, 'Oct': 10, 'Nov': 11, 'Dec': 12}