After a couple weeks of work, I have completed an implementation of "Lunar Tables and Programs" published in 1991 by Michelle Chapront-Touzé and Jean
Chapront of France. I then took the position of the moon relative to the center of the earth (calculated using their method from the tables) and went
further with it by converting into topocentric coordinates for a given location and also included functions to compensate for atmospheric refraction,
calculate the phase angle and calculate the orientation relative to the local horizon. The output is all numerical as opposed to the visual output of
programs like Stellarium, and unlike stellarium you can see the formulas all right there in front of you.
Patched version 1: www.filedropper.com...
There was a bug with quadrant disambiguation in the azimuth that could cause erroneous values for azimuth in some cases.
I was told that the file didn't work when downloaded from that link, so here's an alternative link (also fixed another disambiguation bug): dropcanvas.com...
edit on 16-2-2013 by ngchunter because: (no reason given)