-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
find_events on highly elliptical orbit satellite inconsistent #1017
Comments
Hi, TLE:
Observer location: 53°N, 5°E Calling the following code to find all passes/events between the start and end time (2 days) results in the following events being returned: Passes/Events:
So in this example the prediction has missed that passes have ended/new passes have started. It would be great if this could be fixed as its hard to know in production when this happens and can have significant impact when missed! I found a comment in the sgp4lib.py that might be a starting point to fixing this: |
Thanks for this bug report! I have just landed a fix for your first issue, the missing rising event. I'll release a new version of Skyfield tomorrow, hopefully, with the fix. It makes your first output look like:
So I think it's fixed! By the way, your script might be my favorite bug report test script ever! Some test scripts simply print a wall of numbers, and I need to wade through the person's explanation to learn where I should be looking in the output. But your little script explains, complete with arrows, exactly what output I'm supposed to look at and why! Your third case, I think, is the result of a slight error in your bracketing. Your full track shows the satellite still above 10° at your end time of
—produces the correct output:
The reason for the two culminations will, I think, be clear if you review your diagram: the satellite passes the zenith not once, but twice. Maybe you could graph its altitude alone to see the two culminations. Since I'm hopeful the bug here is fixed, I'm going to close the issue. If you want to go ahead and try the fix yourself before the actual release, you can install the development version of this project like this:
Please feel free to comment further here if there's a subtlety I haven't caught and there's still a problem. Thanks again for the bug report! |
Excellent, thank you! I've tested out the latest release, and things do seem to work as expected now. Thanks for your patience, I did indeed goof on the 2 culminations and the end time, but I'm glad it didn't cause too much grief. I'll let you know if we encounter any other unusual behavior. |
I'm glad it now works for you! Out of curiosity — what's the grey snake peeking into your plot from the left edge? Is it the Sun or Moon? |
I believe that one shows the sun, yeah. We've written an internal tool to plan tracks on our telescope ahead of time, and have a separate tool that shows the track when it gets scheduled on our telescope. |
Hi! Thanks for the work you've done on Skyfield. I'm using it to find rise/set times of objects, and recently came across this corner case(?) where the find_events method is giving incomplete results.
The track of the object that I noticed this on:
I wrote a small program to demo this behavior:
The output, trimmed a bit for brevity:
I would prefer to continue using Skyfield for finding rise and set events, and I don't think I'm doing anything wrong. Is this a bug/limitation in Skyfield? Are there intentional limitations here that I should work around?
Thanks again!
The text was updated successfully, but these errors were encountered: