A Python application that calculates the azimuth and elevation angles for pointing a satellite antenna towards a specific geostationary satellite. The calculation takes into account the location of the antenna and the magnetic declination at that location. The list of available geostationary satellites is obtained using the N2YO API.
G=S-N
G=S-N
Magnetic declination, also known as magnetic variance, is the angle between true north and magnetic north. It is important because compasses, which are used for navigation, are based on the Earth's magnetic field and not true north. If the declination is not taken into account, the compass will give an incorrect reading and lead to an incorrect destination. In some areas, the declination can be quite large and can cause significant errors if not accounted for.
For example, if the declination in a particular location is 15 degrees east of true north, the equation would be:
Declination = (Magnetic North - True North) + East = (Magnetic North - True North) + 15 degrees
This means that if you are facing magnetic north with a compass, you will need to add 15 degrees to your bearing in order to get your true bearing.
- Install Python
- Register on https://www.n2yo.com/api/ get your own API key for geostationary satellites list
- Register on https://geocode.xyz/api get your own API key for geographic coordinates
- Register on https://www.ngdc.noaa.gov/ get your own API key needed to calculate magnetic declination
- Put your API keys into sat_config.ini file
- Tested on Windows 10 OS.
https://tiij.org/issues/issues/3_2/3_2e.html
This project is licensed under the ISC License - see the LICENSE.md file for details
M.Witczak