Function File: lat1, lon1, alt1 = aer2geodetic (az,el, slantRange, lat0, lon0, alt0)
Function File: lat1, lon1, alt1 = aer2geodetic (az,el, slantRange, lat0, lon0, alt0, spheroid)
Function File: lat1, lon1, alt1 = aer2geodetic (az,el, slantRange, lat0, lon0, alt0, spheroid, angleUnit)

Convert Azimuth, Elevation and Range (AER) coordinates to geodetic coordinates (latitude, longitude, local height).

Inputs:

  • az, el, slantrange: look angles and distance to target point(s) (angle, angle, length). Vectors and nD arrays are accepted if they have equal dimensions. The length unit is those of the used spheroid, the default of which is meters.
  • lat0, lon0, alt0: ellipsoid geodetic coordinates of local observer location (angle, angle, length). 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). The length units of the target point(s) and observer location(s) should match.
  • spheroid: referenceEllipsoid parameter struct, or name (string value) or EPSG code (real numeric) of referenceEllipsoid; default is ’wgs84’.
  • angleUnit: string for angular units (’degrees’ or ’radians’, case-insensitive, just first character will suffice). Default is ’degrees’.

Outputs:

  • lat1, lon1, alt1: geodetic coordinates of target point(s) (angle, angle, length). The length unit matches that of the ellipsoid.

Example

[x, y, z] = aer2geodetic (33, 70, 1e3, 42, -82, 200)
x =  42.000
y = -82.000
z = 1139.7

With radians

[x, y, z] = aer2geodetic (pi/6, pi/3, 1e3, pi/4, -pi/2, 200, ...
                          "wgs84", "radians")
x =  0.78547
y = -1.5707
z =  1066.0

Note: aer2geodetic is a mere wrapper for functions aer2ecef followed by ecef2geodetic.

See also: geodetic2aer, aer2ecef, aer2enu, aer2ned, referenceEllipsoid.

Package: mapping