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

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 can be scalars, vectors or 2D matrices. lon, lat, and h will be according to the input dimensions.

See also: _op_geod2geoc.

Package: octproj