Accelerating the pace of engineering and science

Documentation Center

• Trial Software

lv2ecef

Convert local vertical to geocentric (ECEF) coordinates

 Note:   lv2ecef will be removed in a future release. Use enu2ecef instead. In enu2ecef, the latitude and longitude of the local origin are in degrees by default, so the optional angleUnit input should be included, with the value 'radians'.

Syntax

[x,y,z] = lv2ecef(xl,yl,zl,phi0,lambda0,h0,ellipsoid)

Description

[x,y,z] = lv2ecef(xl,yl,zl,phi0,lambda0,h0,ellipsoid) converts arrays xl, yl, and zl in the local vertical coordinate system to arrays x, y, and z in the geocentric coordinate system. The origin of the local vertical system is at geodetic latitude phi0, geodetic longitude lambda0, and ellipsoidal height h0. The arrays xl, yl, and zl may have any shape, as long as they are all the same size. They are measured in the same length units as the semimajor axis. phi0 and lambda0 are scalars measured in radians; h0 is a scalar with the same length units as the semimajor axis; and ellipsoid is a referenceEllipsoid (oblateSpheroid) object, a referenceSphere object, or a vector of the form [semimajor axis, eccentricity]). The coordinates x, y, and z also have the same units as the semimajor axis.

Definitions

For a definition of the local vertical system, also known as East-North-Up (ENU), see the help for ecef2lv. For a definition of the geocentric system, also known as Earth-Centered, Earth-Fixed (ECEF), see the help for geodetic2ecef.