<p>I would like to simulate the three object distance, specifically the distance of the moon to both, sun and earth for further investigation into tide prediction. </p>

<p>What would be a good starting point to browse?
Do any (preferably python) libraries exist for this?
My use is to query the function with a date and it would spit out the distance. </p>

<p>A first model I would be happy to start with would be basic circular trajectories and expand to elliptical &amp; inclinations from there.</p>

CC BY-SA 4.0
2019-10-08T04:39:51.520Z
Hi @ElDude for Python solutions my personal recommendation is to use [Skyfield](https://rhodesmill.org/skyfield/) as a quick, self-contained solution. It downloads an ephemeris and interpolates it for you in a very pythonic way, so with just a few lines you can get everything you want, including "query wtih a date and spit out the distance" using [`.separation_from()`](https://stackoverflow.com/a/36323725/3904031).
uhoh
CC BY-SA 4.0
2019-10-08T04:40:03.110Z
Check [issue #228](https://github.com/skyfielders/python-skyfield/issues/228) for updates on constellations. See barrycarter's comment above for a wide range of options. Consider closing as dupicate(?) or perhaps refine your question to something specific that's not answered there?
uhoh
<the-sun><the-moon><earth><n-body-simulations>
Simulate earth, moon, sun constellation with dates
El Dude
# Simulate earth, moon, sun constellation with dates

(Asked by: username_0 on 2019-10-07)

I would like to simulate the three object distance, specifically the distance of the moon to both, sun and earth for further investigation into tide prediction.

What would be a good starting point to browse?
Do any (preferably python) libraries exist for this?
My use is to query the function with a date and it would spit out the distance.

A first model I would be happy to start with would be basic circular trajectories and expand to elliptical & inclinations from there.

**Tags:** the-sun, the-moon, earth, n-body-simulations

> **Comments:**
> **username_1**: Hi @ElDude for Python solutions my personal recommendation is to use [Skyfield](https://rhodesmill.org/skyfield/) as a quick, self-contained solution. It downloads an ephemeris and interpolates it for you in a very pythonic way, so with just a few lines you can get everything you want, including "query wtih a date and spit out the distance" using [`.separation_from()`](https://stackoverflow.com/a/36323725/3904031).  
> **username_1**: Check [issue #228](https://github.com/skyfielders/python-skyfield/issues/228) for updates on constellations. See barrycarter's comment above for a wide range of options. Consider closing as dupicate(?) or perhaps refine your question to something specific that's not answered there?  

---

## 0 answers

