Skip to content

How to get position of the Moon's center? #802

Answered by psbaltar
Angew asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure that tides can be calculated just by knowing the position of the moon. But to answer your specific question, what you have looks to be on the right track. m should be the distance between the center of Earth and the center of the Moon. There's a few different latlon functions and I'm not sure what the exact differences are, but I would have used subpoint_of. It will return the location that is directly under a given position. e.g. wgs84.subpoint_of(m) should be the location on Earth where the Moon will be directly overhead.

https://rhodesmill.org/skyfield/api-topos.html#skyfield.toposlib.Geoid.subpoint_of

If you're getting an array of locations, you might have defined my_time

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Angew
Comment options

Answer selected by Angew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants