Earth-moon-sun orrery

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.
 
Joined
Apr 25, 2017
Messages
276
Reaction score
36
Why do you want to make this system? What benefit or purpose would it serve for you? Are you planning to use it for astronomy learning, a simulation project, or something practical like navigation or stargazing?
 
Joined
Sep 20, 2022
Messages
303
Reaction score
41
No practical reason. Its just a programming exercise.

If I really was concerned about the position of the moon, I could measure it (when visible) every day for a year.

Or, I could write a short program that uses a little bit of geometry.

While I'm writing my programs, I may get an idea about something else.

In this case, I found an interesting use for Gaussian elimination. Which I will use in other programs, that have nothing to do with orbits.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top