Convert geocentric (ECEF) to local vertical coordinates
[xl,yl,zl] = ecef2lv(x,y,z,phi0,lambda0,h0,ellipsoid)
[xl,yl,zl] = ecef2lv(x,y,z,phi0,lambda0,h0,ellipsoid) converts
geocentric point locations specified by the coordinate arrays
z to the local vertical coordinate system,
with its origin at geodetic latitude
and ellipsoidal height
h0. The arrays
z may be of any shape, as long as they all
match in size.
h0 must be scalars.
oblateSpheroid) object, a
referenceSphere object, or a vector
of the form
[semimajor axis, eccentricity]).
h0 must have the same length units as the semimajor
be in radians. The output coordinate arrays,
zl are the local vertical coordinates of the
input points. They have the same size as
z and have the same length units as the semimajor
In the local vertical Cartesian system defined by
xl axis is
parallel to the plane tangent to the ellipsoid at (
and points due east. The
yl axis is parallel to
the same plane and points due north. The
is normal to the ellipsoid at (
and points outward into space. The local vertical system is sometimes
referred to as east-north-up or ENU.
For a definition of the geocentric system,
also known as Earth-Centered, Earth-Fixed (ECEF), see the help for