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

# Class Ned

     object --+
              |
    bases.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) str(x) |
to3ned(self) Return this NED vector as north/east/down components. |
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 vector3. |
Inherited from `bases.Named`: `copy` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| bearing Get the bearing of this NED vector in compass degrees (degrees360).
| elevation Get 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 `bases.Named`: `classname`, `classnaming`, `name` Inherited from `object`: `__class__`

Method Details

### __init__(self, north, east, down, name=`'````'`) (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). `name` - Optional name (string). 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=`'``,` `'`) |
Return a string representation of this NED vector. Parameters: `prec` - Optional number of decimals, unstripped (int). `fmt` - Optional enclosing backets format (string). `sep` - Optional separator between NEDs (string). Returns: This Ned as "[N:f, E:f, D:f]" (string).

### toStr2(self, prec=None, fmt=`'``[%s]``'`, sep=`'``,` `'`) |
Return a string representation of this NED vector as length, bearing and elevation. Parameters: `prec` - Optional number of decimals, unstripped (int). `fmt` - Optional enclosing backets format (string). `sep` - Optional separator between NEDs (string). Returns: This Ned as "[L:f, B:degrees360, E:degrees90]" (string).

### toVector3d(self) |
Return this NED vector as a 3-d vector3. Returns: North, east, down vector (Vector3d).

Property Details

### bearing Get the bearing of this NED vector in compass degrees (degrees360). Get Method: bearing(self) - Get the bearing of this NED vector in compass degrees (degrees360). Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.

### elevation Get the elevation, tilt of this NED vector in degrees from horizontal, i.e. tangent to ellipsoid surface (degrees90). Get Method: elevation(self) - Get the elevation, tilt of this NED vector in degrees from horizontal, i.e. Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.

### 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). Set Method: Read_Only(self, ignored) - Throws an `AttributeError`, always.