Contents

GEODETIC2AER converts geodetic coordinates to azimuth, elevation, slant range

from an observer's perspective, convert target coordinates to azimuth, elevation, slant range.

Inputs

Outputs

function [az, el, slantRange] = geodetic2aer(lat, lon, alt, lat0, lon0, alt0, spheroid, angleUnit)
arguments
  lat {mustBeReal}
  lon {mustBeReal}
  alt {mustBeReal}
  lat0 {mustBeReal}
  lon0 {mustBeReal}
  alt0 {mustBeReal}
  spheroid (1,1) matmap3d.referenceEllipsoid = matmap3d.wgs84Ellipsoid()
  angleUnit (1,1) string = "d"
end

[e, n, u] = matmap3d.geodetic2enu(lat, lon, alt, lat0, lon0, alt0, spheroid, angleUnit);
[az, el, slantRange] = matmap3d.enu2aer(e, n, u, angleUnit);

end