This function converts geodetic coordinates into cartesian tridimensional geocentric coordinates.
lon contains the geodetic longitude, in radians. lat contains the geodetic latitude, in radians. h contains the ellipsoidal height, in meters. a is a scalar containing the semi-major axis of the ellipsoid, in meters. f is a scalar containing the flattening of the ellipsoid.
lon, lat or h can be scalars, vectors or 2D matrices.
X is the X geocentric coordinate, in meters. Y is the Y geocentric coordinate, in meters. Z the Z geocentric coordinate, in meters.
See also: op_geoc2geod.
Package: octproj