Function file: [lon,lat,h] = _op_geod2geoc(X,Y,Z,a,e2)

This function converts cartesian tridimensional geodentric coordinates into geodetic coordinates.

INPUT ARGUMENTS:

  • X is a column vector containing the X geocentric coordinate, in meters.
  • Y is a column vector containing the Y geocentric coordinate, in meters.
  • Z is a column vector containing the Z geocentric coordinate, in meters.
  • a is a scalar containing the semi-major axis of the ellipsoid, in meters.
  • e2 is a scalar containing the squared first eccentricity of the ellipsoid.

OUTPUT ARGUMENTS:

  • lon is a column vector containing the geodetic longitude, in radians.
  • lat is a column vector containing the geodetic latitude, in radians.
  • h is a column vector containing the ellipsoidal height, in meters

The coordinate vectors X, Y and Z must be all scalars or all column vectors (of the same size).

See also: _op_geod2geoc.

Package: octproj