how to determine the date and time when the moon will be in a certain part of the sky #308
Replies: 3 comments 4 replies
-
This is an interesting problem! I will think about the best way to solve it... |
Beta Was this translation helpful? Give feedback.
-
One question: which programming language do you want to use? |
Beta Was this translation helpful? Give feedback.
-
Try taking a look at altazsearch.cpp, I demo program I just added. It implements the idea of doing a two-part search. In the first part, it finds when the body passes closest to the center of your alt/az window. If the body is inside the window at that time, it steps forward and backward using a pair of binary searches to find when the body will enter and leave the window. It also handles the case where the azimuth range includes north. To represent this, specify I hope this helps you with your project! |
Beta Was this translation helpful? Give feedback.
-
how to determine the date and time when the moon will appear and leave a certain area of the sky, which is behind two elevation (e1, e2) and two azimuths (a1, a2), you need to calculate all events within 27 days, there may also be a situation that the moon will never appear in the given area.
![photo_2023-06-17_19-23-54](https://private-user-images.githubusercontent.com/46930139/246620745-ffd9b366-b678-41be-b9c9-d76fc4b64c9d.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NDg5NTQsIm5iZiI6MTczOTU0ODY1NCwicGF0aCI6Ii80NjkzMDEzOS8yNDY2MjA3NDUtZmZkOWIzNjYtYjY3OC00MWJlLWI5YzktZDc2ZmM0YjY0YzlkLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE1NTczNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTczNjEwMjVlNWFiYjI0ODYwMWE5YjRjMDQ0ZjE2MzZjZGNmNjFjZjg5NmM2YTY0OGI3YjM3YTBkNjRlY2U3ZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.l1N56_KdTCWYn6CRO5XpyvIiP4JVelN0TUSiRtDPM1E)
I will gladly buy coffee for your help.
a - azimuth
e - elevation
Beta Was this translation helpful? Give feedback.
All reactions