-
Hi! First off, thanks so much for Skyfield. I'm a total stranger to astronomy and this package is enabling me to turn my dream world-building project into reality. My situation (to prevent this from being an XY problem): I am trying to use the Moon's position to roughly estimate the time of high & low tides on a particular point on Earth. My naive understanding (based on https://moon.nasa.gov/moon-in-motion/tides/) is that when "Earth's center : my position : Moon center" form a line when projected to Earth's equatorial plane, there's high tide at my position (ignoring the 50' gap for now, and ignoring other instances of high&low tides). I understand this is equivalent to "my position's longitude is the same as one that would be returned by My question: How do I find the longitude on Earth that is directly beneath the Moon's center at a certain point in time? That is, I am looking for eph = Loader.load("de406.bsp")
earth = eph["Earth"]
moon = eph["Moon"]
m = earth.at(my_time).observe(moon)
point = wgs84.latlon_of(m) However, this makes (If there's a better approach to get a rough estimate of tides, I would definitely be interested in that as well) Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. https://rhodesmill.org/skyfield/api-topos.html#skyfield.toposlib.Geoid.subpoint_of If you're getting an array of locations, you might have defined |
Beta Was this translation helpful? Give feedback.
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 usedsubpoint_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
…