Package pygeodesy :: Module ltpTuples :: Class XyzLocal |
[frames] | no frames]

# Class XyzLocal

           object --+
                    |
         named._Named --+
                        |
         named._NamedBase --+
                            |
    vector3dBase.Vector3dBase --+
                                |
                vector3d.Vector3d --+
                                    |
                            _Vector3d --+
                                        |
                                       XyzLocal

Known Subclasses:
  - Enu

Local `(x, y, z)` in a local tangent plane (LTP), also base class for local Enu.

Instance Methods
__init__(self, x_xyz, y=0, z=0, ltp=None, name='') New XyzLocal. |
__str__(self) Default `str(self)`. |
classof(self, *args, **kwds) Create another instance of this very class. |
toAer(self, Aer=None, **Aer_kwds) Get the local Azimuth, Elevation, slantRange components. |
toCartesian(self, Cartesian=None, ltp=None, **Cartesian_kwds) Get the geocentric `(x, y, z)` (ECEF) coordinates of this local. |
toEnu(self, Enu=None, **Enu_kwds) Get the local East, North, Up (ENU) components. |
toLatLon(self, LatLon=None, ltp=None, **LatLon_kwds) Get the geodetic `(lat, lon, height)` coordinates if this local. |
toLocal9Tuple(self, M=False, name='') Get this local as a `Local9Tuple`. |
toNed(self, Ned=None, **Ned_kwds) Get the local North, East, Down (Ned) components. |
toXyz(self, Xyz=None, **Xyz_kwds) Get the local X, Y, Z (XYZ) components. |
Inherited from `_Vector3d`: `toRepr`, `toStr` Inherited from `vector3d.Vector3d`: `bearing`, `circin6`, `circum3`, `circum4_`, `iscolinearWith`, `meeus2`, `nearestOn`, `nearestOn6`, `parse`, `radii11`, `soddy4`, `trilaterate2d2`, `trilaterate3d2` Inherited from `vector3dBase.Vector3dBase`: `__abs__`, `__add__`, `__bool__`, `__ceil__`, `__cmp__`, `__div__`, `__divmod__`, `__eq__`, `__float__`, `__floor__`, `__floordiv__`, `__format__`, `__ge__`, `__gt__`, `__hash__`, `__iadd__`, `__idiv__`, `__ifloordiv__`, `__imatmul__`, `__imod__`, `__imul__`, `__int__`, `__ipow__`, `__isub__`, `__itruediv__`, `__le__`, `__long__`, `__lt__`, `__matmul__`, `__mod__`, `__mul__`, `__ne__`, `__neg__`, `__nonzero__`, `__pos__`, `__pow__`, `__radd__`, `__rdiv__`, `__rdivmod__`, `__rfloordiv__`, `__rmatmul__`, `__rmod__`, `__rmul__`, `__round__`, `__rpow__`, `__rsub__`, `__rtruediv__`, `__sub__`, `__truediv__`, `__trunc__`, `angleTo`, `apply`, `cmp`, `cross`, `dividedBy`, `dot`, `equals`, `equirectangular`, `intermediateTo`, `isconjugateTo`, `isequalTo`, `minus`, `minus_`, `negate`, `others`, `plus`, `plus_`, `rotate`, `rotateAround`, `sum`, `times`, `times_`, `to3xyz`, `unit` Inherited from `named._NamedBase`: `__repr__` Inherited from `named._Named`: `attrs`, `copy`, `dup`, `methodname`, `rename`, `toStr2` Inherited from `object`: `__delattr__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| aer4 Get the `(azimuth, elevation, slantrange, ltp)` components (Aer4Tuple).
| azimuth Get the Azimuth, bearing from North (`degrees360`).
| down Get the Down component (`meter`).
| ecef Get this LTP's ECEF converter (`Ecef...` instance).
| east Get the East component (`meter`).
| elevation Get the Elevation, tilt above horizon (`degrees90`).
| enu4 Get the `(east, north, up, ltp)` components (Enu4Tuple).
| groundrange Get the ground range, distance (`meter`).
| ltp Get the local tangent plane (Ltp).
| ned4 Get the `(north, east, down, ltp)` components (Ned4Tuple).
| north Get the North component (`meter`).
| slantrange Get the slant Range, distance (`meter`).
| up Get the Up component (`meter`).
| xyz4 Get the `(x, y, z, ltp)` components (Xyz4Tuple).
| xyzLocal Get this XyzLocal.
Inherited from `vector3dBase.Vector3dBase`: `crosserrors`, `euclid`, `homogeneous`, `length`, `length2`, `x`, `x2y2z2`, `xyz`, `y`, `z` Inherited from `named._Named`: `classname`, `classnaming`, `iteration`, `name`, `named`, `named2`, `named3`, `named4`, `sizeof` Inherited from `object`: `__class__`

Method Details

### __init__ (self, x_xyz, y=0, z=0, ltp=None, name='') (Constructor) |
New XyzLocal. Arguments: `x_xyz` - Scalar X component (`meter`), `positive east` or a previous local instance (XyzLocal, Xyz4Tuple, Aer, Aer4Tuple, Enu, Enu4Tuple, Local9Tuple, Ned or Ned4Tuple). `y` - Scalar Y component (`meter`), only used with scalar `x_xyz`, `positive north`. `z` - Scalar Z component, normal `positive up` from the surface of the ellipsoid or sphere (`meter`), only used with scalar `x_xyz`. `ltp` - The local tangent plane, (geodetic) origin (Ltp, LocalCartesian). Raises: `TypeError` - Invalid `x_xyz` or `ltp`. `UnitError` - Invalid scalar `x_xyz`, `y` or `z`. Overrides: object.__init__

### __str__ (self) (Informal representation operator) |
Default `str(self)`. Overrides: object.__str__ (inherited documentation)

### classof (self, *args, **kwds) |
Create another instance of this very class. Arguments: `args` - Optional, positional arguments. `kwds` - Optional, keyword arguments. Returns: New instance (`self.__class__`). Overrides: named._Named.classof

### toAer (self, Aer=None, **Aer_kwds) |
Get the local Azimuth, Elevation, slantRange components. Arguments: `Aer` - Class to return AER (Aer) or `None`. `Aer_kwds` - Optional, additional `Aer` keyword arguments, ignored if `Aer is None`. Returns: AER as an Aer instance or if `Aer is None`, an Aer4Tuple`(azimuth, elevation, slantrange, ltp)`. Raises: `TypeError` - Invalid `Aer`.

### toCartesian (self, Cartesian=None, ltp=None, **Cartesian_kwds) |
Get the geocentric `(x, y, z)` (ECEF) coordinates of this local. Arguments: `Cartesian` - Optional class to return `(x, y, z)` (`Cartesian`) or `None`. `ltp` - Optional local tangent plane (LTP) (Ltp), overriding this `ltp`. `Cartesian_kwds` - Optional, additional `Cartesian` keyword arguments, ignored if `Cartesian is None`. Returns: A `Cartesian` instance of if `Cartesian is None`, an Ecef9Tuple`(x, y, z, lat, lon, height, C, M, datum)` with `M=None`, always. Raises: `TypeError` - Invalid `ltp`, `Cartesian` or `Cartesian_kwds` argument.

### toEnu (self, Enu=None, **Enu_kwds) |
Get the local East, North, Up (ENU) components. Arguments: `Enu` - Class to return ENU (Enu) or `None`. `Enu_kwds` - Optional, additional `Enu` keyword arguments, ignored if `Enu is None`. Returns: ENU as an Enu instance or if `Enu is None`, an Enu4Tuple`(east, north, up, ltp)`.

### toLatLon (self, LatLon=None, ltp=None, **LatLon_kwds) |
Get the geodetic `(lat, lon, height)` coordinates if this local. Arguments: `LatLon` - Optional class to return `(x, y, z)` (`LatLon`) or `None`. `ltp` - Optional local tangent plane (LTP) (Ltp), overriding this ENU/NED/AER/XYZ's LTP. `LatLon_kwds` - Optional, additional `LatLon` keyword arguments, ignored if `LatLon is None`. Returns: An `LatLon` instance of if `LatLon is None`, an Ecef9Tuple`(x, y, z, lat, lon, height, C, M, datum)` with `M=None`, always. Raises: `TypeError` - Invalid `ltp`, `LatLon` or `LatLon_kwds` argument.

### toLocal9Tuple (self, M=False, name='') |
Get this local as a `Local9Tuple`. Arguments: `M` - Optionally include the rotation matrix (`bool`). `name` - Optional name (`str`). Returns: Local9Tuple`(x, y, z, lat, lon, height, ltp, ecef, M)` with `ltp` this `Ltp`, `ecef` an Ecef9Tuple and `M` EcefMatrix or `None`.

### toNed (self, Ned=None, **Ned_kwds) |
Get the local North, East, Down (Ned) components. Arguments: `Ned` - Class to return NED (Ned) or `None`. `Ned_kwds` - Optional, additional `Ned` keyword arguments, ignored if `Ned is None`. Returns: NED as an Ned instance or if `Ned is None`, an Ned4Tuple`(north, east, down, ltp)`.

### toXyz (self, Xyz=None, **Xyz_kwds) |
Get the local X, Y, Z (XYZ) components. Arguments: `Xyz` - Class to return XYZ (XyzLocal, Enu, Ned, Aer) or `None`. `Xyz_kwds` - Optional, additional `Xyz` keyword arguments, ignored if `Xyz is None`. Returns: XYZ as an `Xyz` instance or if `Xyz is None`, an Xyz4Tuple`(x, y, z, ltp)`.

Property Details

### aer4 Get the `(azimuth, elevation, slantrange, ltp)` components (Aer4Tuple). Get method: aer4(self) - Get the `(azimuth, elevation, slantrange, ltp)` components (Aer4Tuple). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### azimuth Get the Azimuth, bearing from North (`degrees360`). Get method: azimuth(self) - Get the Azimuth, bearing from North (`degrees360`). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value. See Also: Azimuth.

### down Get the Down component (`meter`). Get method: down(self) - Get the Down component (`meter`). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### ecef Get this LTP's ECEF converter (`Ecef...` instance). Get method: ecef(self) - Get this LTP's ECEF converter (`Ecef...` instance). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### east Get the East component (`meter`). Get method: east(self) - Get the East component (`meter`). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### elevation Get the Elevation, tilt above horizon (`degrees90`). Get method: elevation(self) - Get the Elevation, tilt above horizon (`degrees90`). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value. See Also: Elevation.

### enu4 Get the `(east, north, up, ltp)` components (Enu4Tuple). Get method: enu4(self) - Get the `(east, north, up, ltp)` components (Enu4Tuple). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### groundrange Get the ground range, distance (`meter`). Get method: groundrange(self) - Get the ground range, distance (`meter`). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### ltp Get the local tangent plane (Ltp). Get method: ltp(self) - Get the local tangent plane (Ltp). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### ned4 Get the `(north, east, down, ltp)` components (Ned4Tuple). Get method: ned4(self) - Get the `(north, east, down, ltp)` components (Ned4Tuple). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### north Get the North component (`meter`). Get method: north(self) - Get the North component (`meter`). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### slantrange Get the slant Range, distance (`meter`). Get method: slantrange(self) - Get the slant Range, distance (`meter`). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### up Get the Up component (`meter`). Get method: up(self) - Get the Up component (`meter`). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### xyz4 Get the `(x, y, z, ltp)` components (Xyz4Tuple). Get method: xyz4(self) - Get the `(x, y, z, ltp)` components (Xyz4Tuple). Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.

### xyzLocal Get this XyzLocal. Get method: xyzLocal(self) - Get this XyzLocal. Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.