Replies: 1 comment 1 reply
-
I guess I answer that myself. Further investigations revealed that the calculated distances near the extrema differed in hundreth of millimetres only. That is for sure not based on astronomy but on limitations of the computer. So it is no question to Skyfield, and I can close this question. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I try to get the next aphelion and perihelion. Here is a code snippet:
I use the current time for
t0
and 365.25 days later fort1
.Sometimes I get 2 extrema, some seconds apart only. For example if
t0
is 2025-03-13 16:10:00 CET, the results are 2025-07-03 21:54:54 CET and 2025-07-03 21:54:55 CET for the maximum. If I run the script some minutes later, one result is returned only. So it varies between one and two results.I wondered what is the correct definition of aphelion. Is it based on the Earth's center or the barycenter? I looked into the code of Skyfield and found out that the seasons are calculated based on the Earth's center there. But there were explanations of the spring equinox around that referred to the ecliptic, and the ecliptic is based on the barycenter. But in another thread here someone cited a definition of the spring equinox, that was based on the Earth's center. I am a little bit confused after reading all that.
In
skyfield.searchlib._identify_maxima()
I found a comment readingWould it then be ok to round the distance to avoid double results?
Beta Was this translation helpful? Give feedback.
All reactions