Package pygeodesy :: Module ellipsoidalNvector :: Class Ned
[frames] | no frames]

Class Ned

  object --+    
           |    
named._Named --+
               |
              Ned

North-Eeast-Down (NED), also known as Local Tangent Plane (LTP), is a vector in the local coordinate frame of a body.

Instance Methods
 
__init__(self, north, east, down, name='')
New North-East-Down vector.
 
__str__(self)
Default str(self).
 
to3ned(self)
DEPRECATED, use property ned.
 
toStr(self, prec=3, fmt='[%s]', sep=', ')
Return a string representation of this NED vector.
 
toStr2(self, prec=None, fmt='[%s]', sep=', ')
Return a string representation of this NED vector as length, bearing and elevation.
 
toVector3d(self)
Return this NED vector as a 3-d vector.

Inherited from named._Named: __repr__, _dot_, attrs, classof, copy

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties
  bearing
  down
  east
  elevation
  length
  ned
  north

Inherited from named._Named: classname, classnaming, name, named, named2

Inherited from object: __class__

Method Details

__init__ (self, north, east, down, name='')
(Constructor)

 

New North-East-Down vector.

Arguments:
  • north - North component (meter).
  • east - East component (meter).
  • down - Down component, normal to the surface of the ellipsoid (meter).
  • name - Optional name (str).
Raises:
  • ValueError - Invalid north, east or down.
Overrides: object.__init__

Example:

>>> from ellipsiodalNvector import Ned
>>> delta = Ned(110569, 111297, 1936)
>>> delta.toStr(prec=0)  #  [N:110569, E:111297, D:1936]

__str__ (self)
(Informal representation operator)

 

Default str(self).

Overrides: object.__str__
(inherited documentation)

to3ned (self)

 

DEPRECATED, use property ned.

Returns:
An Ned3Tuple(north, east, down).

toStr (self, prec=3, fmt='[%s]', sep=', ')

 

Return a string representation of this NED vector.

Arguments:
  • prec - Optional number of decimals, unstripped (int).
  • fmt - Optional enclosing backets format (str).
  • sep - Optional separator between NEDs (str).
Returns:
This Ned as "[N:f, E:f, D:f]" (str).
Overrides: named._Named.toStr

toStr2 (self, prec=None, fmt='[%s]', sep=', ')

 

Return a string representation of this NED vector as length, bearing and elevation.

Arguments:
  • prec - Optional number of decimals, unstripped (int).
  • fmt - Optional enclosing backets format (str).
  • sep - Optional separator between NEDs (str).
Returns:
This Ned as "[L:f, B:degrees360, E:degrees90]" (str).
Overrides: named._Named.toStr2

toVector3d (self)

 

Return this NED vector as a 3-d vector.

Returns:
The vector(north, east, down) (Vector3d).

Property Details

bearing

Get method:
bearing(self) - Get the bearing of this NED vector (compass degrees360).
Set method:
immutable(inst, value) - Throws an AttributeError, always.

down

Get method:
down(self) - Gets the Down component of this NED vector (meter).
Set method:
immutable(inst, value) - Throws an AttributeError, always.

east

Get method:
east(self) - Gets the East component of this NED vector (meter).
Set method:
immutable(inst, value) - Throws an AttributeError, always.

elevation

Get method:
elevation(self) - Get the elevation, tilt of this NED vector in degrees from horizontal, i.e.
Set method:
immutable(inst, value) - Throws an AttributeError, always.

length

Get method:
length(self) - Gets the length of this NED vector (meter).
Set method:
immutable(inst, value) - Throws an AttributeError, always.

ned

Get method:
ned(self) - Get the (north, east, down) components of the NED vector (Ned3Tuple).
Set method:
immutable(inst, value) - Throws an AttributeError, always.

north

Get method:
north(self) - Gets the North component of this NED vector (meter).
Set method:
immutable(inst, value) - Throws an AttributeError, always.