-
-
Notifications
You must be signed in to change notification settings - Fork 851
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
Add Lunar Eclipses to Astronomical calculations #2190
Conversation
Show magnitude of lunar eclipse
fixed jumping Moon
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files |
I think the main tab should be named "Eclipses" and it should contains at least 2 "inner" tabs (similar to Graphs) - "Lunar eclipses" and "Solar eclipses". Probably "Solar eclipses" subtab in future may be splitted on 2 subtabs. |
I got the idea, it will take some time to add solar eclipse calculations in the second tab. I think I should make it to be draft for now. |
No need implement computation of solar eclipses right now in this branch, but prepared to compute it will be good step. |
Apparently the shortest way to preparation the support of both types of eclipses will be renaming the main tab to "Eclipses" at this step. |
I'm checked the work of tool with Astronomical Calendars and results is very good. Thank you! So, the cosmetic fixes:
|
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.
Thank you very much!
@gzotti I think it's ready to merge |
@gzotti please review the changes. I got accuracy around 1 second for my location. @worachate001 is it possible to add a Gamma column also?
|
Thanks for suggestions. While waiting for the reviews, I have been preparing the solar eclipse calculations and almost finish, it would be ready in a few days. |
@gzotti please share your ΔT algorithm is set to default and ΔT = 71.96 seconds (72 seconds on the NASA website). See for Barnaul location (UTC+00:00 and UTC+07:00 respectively): |
config.ini.txt |
ΔT = 72.73 seconds with your config.ini file... WTF?!? And n-dot value is -23.8000 - why? |
@gzotti your config says that aberration is off. Could that be the reason? |
Yes, of course! After enabling aberration: |
@Atque, many thanks! Indeed. On one of my other tasks I had switched that off and was able to overlook it... I also just checked with WSL. (Its default config.ini). It shows your values. So I welcome this addition, @worachate001 many thanks! |
@worachate001 I'll merge it now and I'll add changes from my comments in the master after merge. |
I just woke up in the morning here, so I missed everything. Thanks for additional improvements. |
Hello @worachate001! Please check the fresh version (development snapshot) of Stellarium: |
I have noticed that the time of greatest eclipse magnitude is always 1-2 seconds ahead of official time for every eclipses!. So it must be systematic errors -- the Moon is a little ahead of the location where it should be. Is it possible that this may caused by the fact that aberration is not currently applied to the Moon? |
@worachate001 It could be that Stellarium currently does not support diurnal aberration. I have noticed that lunar occultations are also off by 1 or 2 seconds when comparing to e.g. Cartes du Ciel (which takes diurnal aberration into account). |
Please see issue #2050 |
We have discussed that in summer. See #1626 . It seems that for the Moon aberration may be included in the ephemeris already. I have modified the lunar position somewhat to reflect the difference between center of figure and center of gravity. If diurnal aberration is noticeable in stellar occultations by the moon by more than 1 second or so, it may be worth considering. But it is not in my priority list. |
@gzotti Thank you for explanation. Modifying the Moon's position that way is really explain the differences. I have read that Astronomical Almanac is using this method but Fred Espenak decided to ignore it in his Catalog of Lunar Eclipses. |
Usually a difference of 2 seconds should not pose a problem in long-time eclipse canons, given uncertainties in ΔT. We would need a couple of (or rather a few thousand) securely timed (observed, not precomputed!) lunar occultations (intros and exits) to understand the limits of the current solution in Stellarium. I do not know the real figure offset between a perfect sphere and our tessellated (triangulated) polygonal Moon. See also discussion in #1959. Again, occultations are not my primary interest, but if somebody finds a solution for #1959, this would also be welcome of course. Anybody in IOTA reading this and and want to help? Of course, we have no model for the Lunar rim, so a difference with real-world conditions will likely persist. (I don't know if the (normal vector) displacement map can be interpreted and rendered in terms of real geometry to make the lunar rim appear jagged with the correct mountain silhouette. Or whether we can add a third texture with actual altitudes and let the GPU do geometrical displacement calculations (if this is at all possible in a fragment shader? Then a GPU could render highly accurate spherical primitives with displacement, even without any tessellation! But I expect overlapping results in some areas.)) |
Description
This PR partially addresses #407 by adding the method to search for lunar eclipses during user-input time span.
It shows:
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: