Trees | Indices | Help |
---|
|
1 #!/usr/bin/env python 2 ''' 3 4 @todo: turn this into a real test runner for everything in the test subdir. 5 ''' 6 import sys 7 import binary 8 import ais_msg_1 9 10 if __name__=='__main__': 11 for aisfile in sys.argv[1:]: 12 for line in file(aisfile): 13 #print aisfile, line 14 msg = line.split(',')[5] 15 if '1' != msg[0]: continue 16 bv = binary.ais6tobitvec(msg) 17 r = ais_msg_1.positionDecode(bv) 18 print str(r['Position_longitude'])[:10], str(r['Position_latitude'])[:10], aisfile 19 break 20
Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Tue May 1 09:40:30 2007 | http://epydoc.sourceforge.net |