-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
Planet RTS #1852
Planet RTS #1852
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hello @gzotti! Thank you for this enhancement. |
This comment has been minimized.
This comment has been minimized.
By the fact |
DebugAid should be available in Debug mode only |
A quick test: RTS time for planets give very strange results - like a double application of the time zone shift |
re1: One is public, the other is not. But that's easy to decide... I tried the "goto next setting" etc. functions on hotkey which are really nice in principle. While this version is usually much better (esp. Moon), the case where the solution provides times for the previous or next day needs to be discovered and solved. There are however 2 special cases: Sidereal day is 23h56m, so a star may rise twice on a single calendar day. And with moonrise/-set ~25 hours apart, the Moon may not rise/set on some particular date. If anybody has a worked-out solution or a better algorithm than Meeus (how dare you!), this could really help. We actually need to "find nearest event" (maybe with a way to flag it "will occur on next day only") and "goto next moonrise" (not "find moonrise date from algorithm, then set current date with that time"). |
Well, the calendars and duration of the day on extraterrestrial locations is separate big problem. :( |
Well, the special cases for the Sun on high latitudes also need to remember. :) |
Yes, indeed. This PR is currently only a partial fix. I think I should invent a different algorithm that starts with the current hour angle, find nearest transit, then estimates for rise/set from semidiurnal arc, with final solutions from binary search or those correction terms given by Meeus. And if sun rises above horizon in Polar summer, it will have a rise and transit time, but no more setting this day. The "next setting" call would switch to 24 o'clock of that day. Not sure, do we accept this (maybe some more fixes?) for 0.21.2 and see to devise sth more complete ~ end of year? |
I think we may postpone implementing the special cases to other release. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@alex-w How shall we report circumpolarity to the InfoMap? Return transit time (or lower culmination), or use a verbal annotation? |
Probably verbal annotation will be enough here |
This pull request introduces 1 alert when merging c3bf117 into 0647452 - view on LGTM.com new alerts:
|
Hello @gzotti! Please check the fresh version (development snapshot) of Stellarium: |
Uh, I'm not sure if I'm missing something here, but selecting the Moon will give different rise/transit/set values over different times of the same day. Is that intentional? |
No, this is wrong |
There is a slight change in time by a few minutes if you are using topographic correction. For geocentric computation is should be stable. Given atmospheric vagaries the difference should be negligible. We accept better-working solutions in code :-) |
Hello @gzotti! Please check the latest stable version of Stellarium: |
Description
This should solve the inaccurate rise/set times given for planets, esp. the Moon. It is based on the method given by Meeus but with some optimisations.
Fixes #554
Screenshots (if appropriate):
Type of change
How Has This Been Tested?
Observe Moon (or Sun, or planet) on screen, see behaviour and times.
I have still to make tests around reaching circumpolarity and other funny things.
There is still the problem that sometimes rise time for the next day or setting time for the previous day is found.
Still not fully tested: behaviour on other planets.
The fine corrections are also applied to StelObject.
Test Configuration:
Checklist: