Module imo_001_22_area_notice
[hide private]
[frames] | no frames]

Module imo_001_22_area_notice

source code

Trying to do a more sane design for AIS BBM message


Requires:

License: GPL v3

Since: 2009-Jun-01

Status: under development

Organization: CCOM

To Do:

Version: 4799

Date: 2006-09-25

Author: Kurt Schwehr

Contact: kurt at ccom.unh.edu

Copyright: 2009

Classes [hide private]
  AisException
  AisPackingException
  AisUnpackingException
  AIVDM
AIS VDM Object for AIS top level messages 1 through 64.
  BBM
Binary Broadcast Message - MessageID 8.
  AreaNoticeSubArea
  AreaNoticeCirclePt
  AreaNoticeRectangle
  AreaNoticeSector
  AreaNoticePolyline
  AreaNoticePolygon
Polyline that wraps back to the beginning
  AreaNoticeFreeText
  AreaNotice
Functions [hide private]
 
lon_to_utm_zone(lon) source code
 
_make_short_notice() source code
 
frange(start, stop=None, step=None)
range but with float steps
source code
 
vec_add(a, b) source code
 
vec_rot(a, theta)
counter clockwise rotation by theta radians
source code
 
deg2rad(degrees) source code
 
rad2deg(radians) source code
 
geom2kml(geom_dict)
Convert a geointerface geometry to KML
source code
 
nmea_checksum_hex(sentence) source code
Variables [hide private]
  __revision__ = '4799'
  __license__ = 'GPL v3'
  kml_head = '<?xml version="1.0" encoding="UTF-8"?>\n<kml xmlns...
Beginning of a KML file for visualization
  kml_tail = '</Document>\n</kml>\n'
Finish a kml file
  iso8601_timeformat = '%Y-%m-%dT%H:%M:%SZ'
ISO time format for NetworkLinkControl strftime
  nmea_talkers = {'AG': 'Autopilot - General', 'AI': 'Automatic ...
Prefixes for NMEA strings that say where a message originated.
  notice_type = {0: 'Caution Area: Marine mammals NOT observed',...
by name or number.
  short_notice = {0: 'cau_mammals_not_obs', 1: 'cau_mammals_redu...
  __package__ = None
Function Details [hide private]

geom2kml(geom_dict)

source code 

Convert a geointerface geometry to KML

Parameters:
  • geom_dict - Dictionary containing 'geometry' as defined by the geo interface / geojson / shapely

Variables Details [hide private]

kml_head

Beginning of a KML file for visualization

Value:
'''<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.googl\
e.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:at\
om="http://www.w3.org/2005/Atom">
<Document>
'''

iso8601_timeformat

ISO time format for NetworkLinkControl strftime

See Also: KML Tutorial

Value:
'%Y-%m-%dT%H:%M:%SZ'

nmea_talkers

Prefixes for NMEA strings that say where a message originated. http://gpsd.berlios.de/NMEA.txt BBM messages may require having EC as the prefix.

Value:
{'AG': 'Autopilot - General',
 'AI': 'Automatic Identification System',
 'AP': 'Autopilot - Magnetic',
 'CC': 'Computer - Programmed Calculator (outdated)',
 'CD': 'Communications - Digital Selective Calling (DSC)',
 'CM': 'Computer - Memory Data (outdated)',
 'CS': 'Communications - Satellite',
 'CT': 'Communications - Radio-Telephone (MF/HF)',
...

notice_type

by name or number.

cau == caution area res == restricted anc == anchorage env == environmental caution sec == security des == distress inst == instructional info == informational chart == chart features

Value:
{0: 'Caution Area: Marine mammals NOT observed',
 1: 'Caution Area: Marine mammals in area - Reduce Speed',
 2: 'Caution Area: Marine mammals in area - Stay Clear',
 3: 'Caution Area: Marine mammals in area - Report Sightings',
 4: 'Caution Area: Protected Habitat - Reduce Speed',
 5: 'Caution Area: Protected Habitat - Stay Clear',
 6: 'Caution Area: Protected Habitat - No fishing or anchoring',
 7: 'Reserved',
...

short_notice

Value:
{0: 'cau_mammals_not_obs',
 1: 'cau_mammals_reduce_speed',
 2: 'cau_mammals_stay_clear',
 3: 'cau_mammals_report_sightings',
 4: 'cau_habitat_reduce_speed',
 5: 'cau_habitat_stay_clear',
 6: 'cau_habitat_no_fishing_or_anchoring',
 8: 'cau_congestion',
...