hannorein / rebound

💫 An open-source multi-purpose N-body code.
https://rebound.readthedocs.io/
GNU General Public License v3.0
862 stars 221 forks source link

[enhancement] document using ephemeris to set up reb_simulation #328

Closed chriscamacho closed 6 years ago

chriscamacho commented 6 years ago

in the solar_system example it states

"The data comes from the NASA HORIZONS system."

(presumably https://ssd.jpl.nasa.gov/horizons.cgi?s_body=1#top)

while things like mass are obvious its is less obvious how position and velocity data as used in this example is derived. Additionally are there other values used or inferred by the information provided by the Nasa data that has an impact on global value of a reb_simulation

hannorein commented 6 years ago

I'm not sure I understand what your question is, but if you want to get data from NASA Horizons, you can look at this example: https://github.com/hannorein/rebound/blob/master/ipython_examples/Horizons.ipynb

chriscamacho commented 6 years ago

I guess I could write a python app to set a solar system up and save it as a binary file to load up in my C experiments, but I'd rather learn how to take ephemeris data and convert it into the data rebound requires

for example I see nothing in the nasa data like Cartesian coordinates and vectors for velocity