-
-
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
Fix planetocentric rectangular coordinates #2244
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files |
@gzotti Thanks. |
Part of code in Planes.cpp and AstroCalcDialog.cpp files are identical - why not reuse it? |
Yes. Thinking about that, but I need a rest soon, it's almost midnight here. |
Update: the revision is going well until I found a new bug in AstroCalc/Eclipses. Trying to fix it before pushing this commit. |
Why not use official term instead of "Sun/Moon diameter ratio"? |
This is an example of total eclipse when you're standing near the limit of umbra. We already have 'Eclipse magnitude' below 'Eclipse obscuration' - eclipse magnitude here indicates how close you are to the northern or southern limit of umbra. It will be close to 1.0 if you are just inside the umbra. Moon/Sun diameter ratio is different value, if we use the same term, it will be contradict to Eclipse magnitude above it. I think users may be confused of having two magnitudes at the same time. Moon/Sun diameter ratio is central eclipse magnitude in NASA web site. If we use this value in the place below eclipse obscuration, it will cause confusion when an eclipse reaches magnitude 1.0 at 2nd contact and jump to 1.078 in this case. |
Example of magnitude at greatest eclipse from two sources that show different value for the same event (look at 1955 Jun 20)
|
Probably we should re-arrange the lines, though:
By this, we would have the "coverage" items first, then the geographic data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for improving!
@gzotti the PR is good for me, please merge it if he is good for you too |
Description
As mentioned in #2237 Sun & Moon are not aligned at greatest solar eclipse. I suspect that something is wrong with observer's coordinates on Earth and it's right.
There is a bug in planetocentric rectangular coordinate calculations that give wrong values of rhoCosPhiPrime and rhoSinPhiPrime. After fixing this issue, the Sun and Moon are aligned perfectly for all central solar eclipses! This should also improve the accuracy of topocentric coordinates for all objects.
Type of change
Test Configuration:
Checklist: