Convert spherical Azimuth, Elevation and Range (AER) coordinates into
cartesian East, North, Up (ENU) coordinates.
Inputs:
- az, el, slantrange: look angles and distance to target
points (angle, angle, length). Scalars, vectors and nD-arrays are accepted
and should have the same dimensions and length units.
- az: azimuth angle clockwise from local north.
- el: elevation angle above local horizon.
- slantrange: distance from origin in local spherical system.
- (Optional) angleUnit: string for angular units (radians or degrees).
Default is ’d’: degrees
Outputs:
- e, n, u: East, North, Up Cartesian coordinates
(length units and dimensions same as slantrange).
Example:
[e, n, u] = aer2enu (33, 70, 1e3)
e = 186.28
n = 286.84
u = 939.69
In radians
[e, n, u] = aer2enu (pi/4, pi/3,1e3, "radians")
e = 353.55
n = 353.55
u = 866.03
See also: enu2aer, aer2ecef, aer2geodetic, aer2ned.