forward (self,
latlonh,
lon=None,
height=0,
M=False,
**name)
|
|
Convert from geodetic (lat, lon, height) to geocentric
(x, y, z) .
- Arguments:
latlonh - Either a LatLon , an Ecef9Tuple or scalar latitude
(degrees ).
lon - Optional scalar longitude for scalar
latlonh (degrees ).
height - Optional height (meter ), vertically above (or below)
the surface of the ellipsoid.
M - Optionally, return the rotation EcefMatrix (bool ).
name - Optional name=NN (str ).
- Returns:
- An Ecef9Tuple
(x, y, z, lat, lon, height, C,
M, datum) with geocentric (x, y, z)
coordinates for the given geodetic ones (lat, lon,
height) , case C 0, optional M
(EcefMatrix) and datum if available.
- Raises:
EcefError - If latlonh not LatLon , Ecef9Tuple or scalar or
lon not scalar for
scalar latlonh or
abs(lat) exceeds 90°.
Note:
Use method .forward_ to specify lat and
lon in radians and avoid double angle
conversions.
|