Convert local cartesian North, East, Down (NED) coordinates to Earth Centered
Earth Fixed (ECEF) coordinates.
Inputs:
- n, e, d: look angles and distance to target point
(angle, angle, length). Length unit of u (height) is that of the
used reference ellipsoid (see below). Can be scalars but vector or
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 observer 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.
Examples
[x, y, z] = ned2ecef (286.84, 186.28, -939.69, 42, -82, 200)
x = 6.6093e+05
y = -4.7014e+06
z = 4.2466e+06
With radians
[x, y, z] = ned2ecef (286.84, 186.28, -939.69, pi/4, -pi/2, 200, ...
"wgs84", "radians")
x = 186.28
y = -4.5182e+06
z = 4.4884e+06
See also: ecef2ned, ned2aer, ned2ecefv, ned2geodetic, referenceEllipsoid.