I am trying to find an exact "plug and chug" formula for calculating magnetic declination given time, date, latitude, longitude, elevation, etc. Everywhere I look tells me to use their web based calculator. I was hoping there was a way that I could figure this out myself and maybe code my own calculator.
Asked
Active
Viewed 59 times
1
-
Welcome to Mathematics Stack Exchange! A quick tour will enhance your experience. Here are helpful tips to write a good question and write a good answer. For typesetting, please use MathJax. – dantopa May 26 '19 at 02:18
1 Answers
2
I don't think an "exact plug and chug" formula exists for this problem.
A free fully documented implementation that does the job is available here:
https://www.ngdc.noaa.gov/geomag/WMM/soft.shtml
It's a substantial piece of software.
You might be able to read the code and the documentation and put together a crude approximation of your own.
Ethan Bolker
- 95,224
- 7
- 108
- 199