# use of geodetic 2aer to calculate a satellite to ground receiver elevation angle

9 views (last 30 days)
ysm ony on 23 Aug 2023
Commented: ysm ony on 13 Sep 2023
hi,
I'm trying to calculate elevation and azimuth angles of a satellite to ground receiver. I have the lla coordinates of satellite and recever. Now I'm confused to use [az, elev, slantRange] = geodetic2aer( ...lat, lon, h, lat0, lon0, h0, spheroid, angleUnit) whic one is lat and which one is lat0 and the others sameway. Can you help me?
lat_geosat= 53.0;%degree
lon_geosat= -26.9081;%degree
height_geosat= 2.0138e+07;%meter

akshatsood on 5 Sep 2023
Edited: akshatsood on 5 Sep 2023
Hi ysm,
I understand that you are facing issues while utilizing geodetic2aer function. As per the documentation page, it is defined as follows
[az,elev,slantRange] = geodetic2aer(lat,lon,h,lat0,lon0,h0,spheroid)
In reference to your code, lat0, lon0 and h0 correspond to lat_receiver, lon_receiver and height_receiver while lat, lon and h correspond to lat_geosat, lon_geosat and height_geosat. For identification of the parameters, I have positioned the receiver at the origin of the local AER system and transformed the geodetic coordinates of the satellite to the local azimuth-elevation-range (AER) spherical coordinates specified by az, elev, and slantRange. Here is the code snippet for your reference
spheroid = referenceEllipsoid('GRS 80'); % referenceEllipsoid object
[az,elev,slantRange] = geodetic2aer(lat_geosat,lon_geosat,height_geosat, ...
Have a look at the below documentation page for better understanding
I hope this helps.
ysm ony on 13 Sep 2023
Thank you.