- Joined
- Sep 20, 2022
- Messages
- 303
- Reaction score
- 41
An equinox is coming up soon, which made me think about the earth-moon-sun system.
I'm trying to write a program that tells me where the moon is at any time.
I'd like to know the azimuth angle and altitude angle from my current position. Not an exact number, just a ballpark figure.
Roughly simulating the moon's orbit and the rotation of Earth was fairly easy. Translating position into local direction was not so simple.
What I'm stuck on is initialising the model. Knowing the date and time of the latest new moon isn't enough. It would be, if the moon was orbiting on the equatorial plane.
I'm trying to write a program that tells me where the moon is at any time.
I'd like to know the azimuth angle and altitude angle from my current position. Not an exact number, just a ballpark figure.
Roughly simulating the moon's orbit and the rotation of Earth was fairly easy. Translating position into local direction was not so simple.
What I'm stuck on is initialising the model. Knowing the date and time of the latest new moon isn't enough. It would be, if the moon was orbiting on the equatorial plane.