# How to calculate azimuth and elevation angles from satellite point of view of a ground station?

How to find azimuth and elevation from satellite of a ground station when yaw, pitch, roll, lat, long position of satellite and lat, long position on ground are given?

aflong = 10.3082;% Earth Station Longitude (degrees)
aflat = -6.0636; % Earth Station Latitude (degrees)
lslong = 0;      % Satellite Longitude (degrees)
lslat = 0;       % Satellite Latitude (degrees)
lspol = 0;       % Satellite Polarization (degrees)
alt = 700;       % Satellite altitude (Km)
yaw = 0;         % yaw(degrees)
pitch = 54.7356; % pitch(degrees)
roll = 0;        % roll(degrees)

• Seems like you would need to know the satellite's altitude as well. – Steve Linton Oct 12 '18 at 12:01
• I almost posted an answer based only on deviations from the nadir line, but it didn't use pitch, roll, and yaw. Can you explain how your "altitude-azimuth" coordinate system uses satellite attitude, if it does? – uhoh Oct 13 '18 at 2:10