geodetic2cart

typhon.geodesy.geodetic2cart(h, lat, lon, ellipsoid=None)[source]

Convert from geodetic to geocentric cartesian coordinates.

The geodetic coordinates refer to the reference ellipsoid specified by input ellipsoid. See module docstring for a defintion of the geocentric coordinate system.

Parameters:
  • h – Geodetic height (height above the reference ellipsoid).
  • lat – Geodetic latitude.
  • lon – Geodetic longitude.
  • ellipsoid – A tuple with the form (semimajor axis, eccentricity). Default is ‘WGS84’ from ellipsoidmodels.
Returns:

x, y, z coordinates.

Return type:

tuple