Function File: az, el, slantrangee, n, u = aer2enu (e, n, u)
Function File: az, el, slantrangee, n, u = aer2enu (e, n, u, angleUnit))

Convert cartesian ENU (East, North, Up) coordinates into spherical AER) (Azimuth, Elevation, Range) coordinates.

Inputs:

  • e, n, u: East, North, Up cartesian coordinates (in consistent length units).
  • angleUnit (optional): string for angular units (’degrees’ or ’radians’, case-insensitive, just the first character will do). Default is ’degrees’.

Outputs:

  • az: azimuth angle clockwise from local north (angle).
  • el: elevation angle above local horizon (angle).
  • slantrange: distance from origin in local spherical system (length unit same as input length units).

Example:

[az, el, slantrange] = enu2aer (186.28, 286.84, 939.69)
az = 33.001
el = 70.000
slantrange = 1000.00

In radians

[az, el, slantrange] = enu2aer (353.55, 353.55, -866.03, "r")
az = 0.78540
el = 1.0472
slantrange = 1000.0

See also: aer2enu, enu2ecef, enu2ecefv, enu2geodetic, enu2uvw.

Package: mapping