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

# Class Cartesian

                  object --+
                           |
                named._Named --+
                               |
                named._NamedBase --+
                                   |
                   vector3d.Vector3d --+
                                       |
             cartesianBase.CartesianBase --+
                                           |
    ellipsoidalBase.CartesianEllipsoidalBase --+
                                               |
                                              Cartesian

Extended to convert geocentric, Cartesian points to Nvector and n-vector-based, geodetic LatLon.

Instance Methods
toLatLon(self, **kwds) Convert this cartesian point to an `Nvector`-based geodetic point. |
toNvector(self, **kwds) Convert this cartesian to Nvector components, including height. |
Inherited from `ellipsoidalBase.CartesianEllipsoidalBase`: `convertRefFrame` Inherited from `cartesianBase.CartesianBase`: `__init__`, `convertDatum`, `to3llh`, `toEcef`, `toStr` Inherited from `vector3d.Vector3d`: `__abs__`, `__add__`, `__cmp__`, `__div__`, `__eq__`, `__ge__`, `__gt__`, `__le__`, `__lt__`, `__matmul__`, `__mul__`, `__ne__`, `__neg__`, `__pos__`, `__radd__`, `__rmatmul__`, `__rsub__`, `__sub__`, `__truediv__`, `angleTo`, `copy`, `cross`, `dividedBy`, `dot`, `equals`, `isequalTo`, `minus`, `negate`, `others`, `parse`, `plus`, `rotate`, `rotateAround`, `sum`, `times`, `to2ab`, `to2ll`, `to3xyz`, `unit` Inherited from `named._NamedBase`: `__repr__`, `__str__`, `toStr2` Inherited from `named._Named`: `__copy__`, `classof` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
Inherited from `cartesianBase.CartesianBase`: `Ecef`, `datum` Inherited from `vector3d.Vector3d`: `crosserrors`, `length`, `x`, `y`, `z` Inherited from `named._Named`: `classname`, `classnaming`, `name`, `named`, `named2` Inherited from `object`: `__class__`

Method Details

### toLatLon(self, **kwds) |
Convert this cartesian point to an `Nvector`-based geodetic point. Parameters: `kwds` - Optional, additional `LatLon` keyword arguments, ignored if `LatLon=None`. Specify `LatLon=...` to override this LatLon class or set `LatLon=None`. Returns: The `LatLon` point (LatLon) or when `LatLon=None`, an Ecef9Tuple`(x, y, z, lat, lon, height, C, M, datum)` with `C` and `M` if available. Raises: `TypeError` - Invalid `LatLon` or `kwds`. Overrides: cartesianBase.CartesianBase.toLatLon

### toNvector(self, **kwds) |
Convert this cartesian to Nvector components, including height. Parameters: `kwds` - Optional, additional `Nvector` keyword arguments, ignored if `Nvector=None`. Specify `Nvector=...` to override this Nvector class or set `Nvector=None`. Returns: The `Nvector` components (Nvector) or a Vector4Tuple`(x, y, z, h)` if `Nvector=None`. Raises: `TypeError` - Invalid `Nvector` or `kwds`. Overrides: cartesianBase.CartesianBase.toNvector Example:
    >>> from ellipsoidalNvector import LatLon
    >>> c = Cartesian(3980581, 97, 4966825)
    >>> n = c.toNvector()  # (0.62282, 0.000002, 0.78237, +0.24)