-
-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to detect planetary occultation by the moon #1001
Comments
I think you are right that an occultation is considered to be at its maximum when the angular separation is smallest. Could you share a short script that prints an answer, and share the date and time that you wish it was printing out instead? Thanks! |
I thought the snippet I provided was good enough, but I understand the problem. Here is a working script:
This gives: I don't know the exact time or distance that it is supposed to be because I compared it with in-the-sky.org and that site seems to be down at the moment I write this. This source code is not optimized because I adapted it from a much larger project that I created. |
Thanks for the full script! It helps me see exactly what the arguments to each routine are. It took me several readings to realize that you carefully build the
Try doing:
Hopefully that will drop the angle low enough that Saturn goes behind the Moon! |
Wow, thank you. I found something interesting: The site is up again and the result of the original version of the script (geocenter) is exactly the same as: https://in-the-sky.org/news.php?id=20240821_15_100&latitude=52.092876&longitude=5.104480&timezone=%2B02%3A00. But I gets weirder: It looks like in-the-sky.org uses an 'alternative' method to calculate the moment of appulse. |
I'm glad we got your script working, and successfully detecting occultations! I hope you continue to enjoy using Skyfield. |
I certainly will. Skyfield is the best software for astronomical calculations that I've encountered so far: Only the mathematics are provided, no predefined layout stuff, so complete freedom of the presentation of the results. It's not very difficult to devise new calculations (if the theory behind those calculations is completely understood ;-) ). |
As I already told in #980 I'm still trying to calculate several astronomical events with Skyfield.
Now I want to see if it is possible to find a planetary occultation by the moon. I've searched the internet and this question (some mention Skyfield) shows up several times, but apparently no one tried it. So I did.
I use this function (based upon what I found in your source code):
And feed that to find_minima to figure out the smallest value returned by the function.
When I try this with the objects moon and saturn barycenter I get a minimum returned for August 21 2024 which is correct because at that date there was an occultation of Saturn (at least in the part of the world where I live). However the result is not entirely correct because the smallest separation found is larger than half the width of the moon, so that means no occultation. According to Stellarium there was an occultation at my location. Also the found time is a bit off because it is a little less than a hour to early.
I assume that the minimum distance between the objects occurs during the occultation but apparently I'm wrong.
Do you see a problem with this approach?
I hope this is not the same thinking error as in #980...
The text was updated successfully, but these errors were encountered: