Function File: x, y, z = enu2ecef (e, n, u, lat, lon, alt)
Function File: x, y, z = enu2ecef (e, n, u, lat, lon, alt, spheroid)
Function File: x, y, z = enu2ecef (e, n, u, lat, lon, alt, spheroid, angleUnit)

Convert local cartesian East, North, Up (ENU) coordinates to Earth Centered Earth Fixed (ECEF) coordinates.

Inputs:

  • e, n, u: look angles and distance to point under consideration (angle, angle, length). Length unit of u (height) is that of the used reference ellipsoid (see below). Can be scalars but vectoror nD-array values are accepted if they have equal dimensions.
  • lat, lon, alt: ellipsoid geodetic coordinates of observer location (angle, angle, length). Length unit of alt (height) is that of the used reference ellipsoid (see below). In case of multiple local locations their numbers and dimensions should match those of the target points (i.e., one observer location for each target point).
  • spheroid: referenceEllipsoid parameter struct, name or EPSG number; default is wgs84. Can be an empty string or empty numeric array (’[]’) to indicate default value.
  • angleUnit: string for angular units (’degrees’ or ’radians’, case-insensitive, just the first character will do). Default is ’degrees’.

Outputs:

  • x, y, z: Earth Centered Earth Fixed (ECEF) coordinates. Length units are those of the used reference ellipsoid.

Example

[x, y, z] = enu2ecef (186.28, 286.84, 939.69, 42, -82, 200)
x = 6.6093e+05
y = -4.7014e+06
z = 4.2466e+06

With radians

[x, y, z] = enu2ecef (186.28, 286.84, 939.69, pi/4, -pi/2, 200, "wgs84", "radians")
x =  186.28
y =  -4.5182e+06
z =  4.4884e+06

See also: ecef2enu, enu2aer, enu2ecefv, enu2geodetic, enu2uvw.

Package: mapping