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

Class Ned

object --+
         |
        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)
New North-East-Down vector.
 
__str__(self)
str(x)
 
to3ned(self)
Return this NED vector as north/east/down components.
 
toStr(self, prec=3, fmt='[%s]', sep=', ')
Returns a string representation of this NED vector.
 
toStr2(self, prec=None, fmt='[%s]', sep=', ')
Returns a string representation of this NED vector as length, bearing and elevation.
 
toVector3d(self)
Returns this NED vector as a Vector3d.

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

Properties
  bearing
Gets the bearing of this NED vector in compass degrees (degrees360).
  elevation
Gets the elevation, tilt of this NED vector in degrees from horizontal, i.e.
  length
Gets the length of this NED vector in meter (scalar).

Inherited from object: __class__

Method Details

__init__(self, north, east, down)
(Constructor)

 

New North-East-Down vector.

Parameters:
  • north - North component in meter (scalar).
  • east - East component in meter (scalar).
  • down - Down component (normal to the surface of the ellipsoid) in meter (scalar).
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)

 

str(x)

Overrides: object.__str__
(inherited documentation)

to3ned(self)

 

Return this NED vector as north/east/down components.

Returns:
3-Tuple (north, east, down) in (degrees).

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

 

Returns a string representation of this NED vector.

Parameters:
  • prec - Number of decimals, unstripped (int).
  • fmt - Enclosing backets format (string).
  • sep - Separator between NEDs (string).
Returns:
This Ned as "[N:f, E:f, D:f]" (string).

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

 

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

Parameters:
  • prec - Number of decimals, unstripped (int).
  • fmt - Enclosing backets format (string).
  • sep - Separator between NEDs (string).
Returns:
This Ned as "[L:f, B:degrees360, E:degrees90]" (string).

toVector3d(self)

 

Returns this NED vector as a Vector3d.

Returns:
North, east, down vector (Vector3d).

Property Details

bearing

Gets the bearing of this NED vector in compass degrees (degrees360).

Get Method:
bearing(self) - Gets the bearing of this NED vector in compass degrees (degrees360).

elevation

Gets the elevation, tilt of this NED vector in degrees from horizontal, i.e. tangent to ellipsoid surface (degrees90).

Get Method:
elevation(self) - Gets the elevation, tilt of this NED vector in degrees from horizontal, i.e.

length

Gets the length of this NED vector in meter (scalar).

Get Method:
length(self) - Gets the length of this NED vector in meter (scalar).