forward(self,
latlonh,
lon=None,
height=0,
M=False,
**name)
|
|
Convert geodetic (lat, lon, height) to
local cartesian (x, y, z).
- Parameters:
latlonh - Either a LatLon, Ltp,
Ecef9Tuple or scalar
(geodetic) latitude (degrees).
lon - Optional scalar (geodetic) longitude
(degrees) iff latlonh is
scalar, ignored otherwise.
height - Optional height (meter, conventionally)
perpendicular to and above (or below) the ellipsoid's surface,
iff latlonh is scalar, ignored
otherwise.
M - Optionally, return the concatenated rotation EcefMatrix, iff available
(bool).
name - Optional name=NN (str).
- Returns:
- A
Local9Tuple(x, y, z, lat, lon,
height, ltp, ecef, M) with local x,
y, z, geodetic
(lat, lon, height, this
ltp, ecef (Ecef9Tuple) with geocentric
x, y, z (and
geodetic lat, lon,
height) and the concatenated rotation matrix
M (EcefMatrix) if
requested.
- Raises:
LocalError - If latlonh not scalar,
LatLon, Ltp, Ecef9Tuple or invalid or if
lon not scalar for
scalar latlonh or invalid or if
height invalid.
|