Trees | Indices | Help |
|
---|
|
object --+ | point.Point --+ | Position
Since: 0.8.0
|
|||
|
|||
str
|
|
||
str
|
|
||
Inherited from Inherited from Inherited from |
|
|||
Fix |
|
|
|||
date Date when position was taken |
|||
latitude Location's latitude |
|||
longitude Locations's longitude |
|||
mode Type of reading |
|||
speed Unit's speed in knots |
|||
status GPS status |
|||
time Time the position was taken |
|||
track Track angle |
|||
variation Magnetic variation |
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
Initialise a new Position object >>> Position(datetime.time(14, 20, 58), True, 53.1440233333, -3.01542833333, ... 109394.7, 202.9, datetime.date(2007, 11, 19), 5.0) Position(datetime.time(14, 20, 58), True, 53.1440233333, -3.01542833333, 109394.7, 202.9, datetime.date(2007, 11, 19), 5.0, None)
|
Pretty printed position string >>> print(Position(datetime.time(14, 20, 58), True, 53.1440233333, ... -3.01542833333, 109394.7, 202.9, ... datetime.date(2007, 11, 19), 5.0)) $GPRMC,142058,A,5308.6414,N,00300.9257,W,109394.7,202.9,191107,5,E*41 |
Return a string version of the reading mode information >>> position = Position(datetime.time(14, 20, 58), True, 53.1440233333, ... -3.01542833333, 109394.7, 202.9, ... datetime.date(2007, 11, 19), 5.0) >>> print(position.mode_string()) Unknown >>> position.mode = "A" >>> print(position.mode_string()) Autonomous
|
Parse position data elements >>> Position.parse_elements(["142058", "A", "5308.6414", "N", ... "00300.9257", "W", "109394.7", "202.9", ... "191107", "5", "E", "A"]) Position(datetime.time(14, 20, 58), True, 53.1440233333, -3.01542833333, 109394.7, 202.9, datetime.date(2007, 11, 19), 5.0, 'A') >>> Position.parse_elements(["142100", "A", "5200.9000", "N", ... "00316.6600", "W", "123142.7", "188.1", ... "191107", "5", "E", "A"]) Position(datetime.time(14, 21), True, 52.015, -3.27766666667, 123142.7, 188.1, datetime.date(2007, 11, 19), 5.0, 'A')
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 20 12:41:26 2008 | http://epydoc.sourceforge.net |