3
$\begingroup$

I need to find the way to plot orbit planets and satellites in a coherent way. Let's say I want to generate a chart of the Moon's orbit around the Earth, or the jovian satellites around Jupiter.

The hard way would be the use of a CAD software, manually. However, I'm not sure if I will be able to represent the orbits excentricity. And it would be a slow process, one by one...

My idea is to do it programmatically and recursively, so I can generate hundreds of charts for my articles. Can AstroPy do it? I'm using Debian 9 and I checked poliastro, but I had problems with the requirements... I also checked Xephem, and I could not compile it (it's too old, I think). Could Celestia or Kstars do that?

Any Linux/Unix tool would be fine! Especially if it works from the command line.

EDIT: I tried to compile ORSA without luck. Also failed.

I'm discovering the combo of python3-ephem with gnuplot. I can generate the data with Ephem and plot it with Gnuplot. What do you think about this combo?

EDIT 2:

Not only python3-ephem... Skyfield and REBOUND are good options!

$\endgroup$
16
  • 2
    $\begingroup$ Most of the answers will somewhat depend on how you want to see the orbits plotted. Anyhow, have a look at Stellarium. $\endgroup$ Aug 13, 2020 at 8:47
  • 1
    $\begingroup$ Skyfield can give you specific data on our solar system and has a Kepler solver module that can generate orbits based on Keplerian elements. Blender can also generate 3D rendered or simply illustrated views of anything and can be scripted from Python and even run programmatically/automatically as a Python module without running the GIU if you like and it even has its own Stack Exchange site! Are these kinds of things along the lines of what you need? If so I can write up a short answer. $\endgroup$
    – uhoh
    Aug 13, 2020 at 9:17
  • 2
    $\begingroup$ See also Where can I find/visualize planets/stars/moons/etc positions? $\endgroup$
    – uhoh
    Aug 13, 2020 at 9:19
  • 1
    $\begingroup$ @uhoh, yeah, Skyfield looks nice. I'm gonna take a look at it, firstly. This other answer you link here has a lot of tools. Now what I need is time to check them. Thanks a lot! $\endgroup$
    – Unix
    Aug 13, 2020 at 9:48
  • 2
    $\begingroup$ I would reccomend, REBOUND for Python. It is very intuitive when you do a few tutorials. As an example it allowed me to plot this: youtube.com/watch?v=BWAIq5gi198 $\endgroup$
    – Swike
    Aug 13, 2020 at 11:38

1 Answer 1

3
$\begingroup$

One keyword to search for is "spice kernel".

SPICE stands for Spacecraft Planet Instrument C-matrix Event. That is a type of data format in which orbital data are commonly provided by ESA, NASA and other institutions dealing with detailed data; it is the recommended format by IAU to use. Often the so-called kernels for objects and missions are also readily available for download and digestion of tools (e.g. here or here).

Quite a few poplular solutions are python modules like HelioPy, SpicePy or PoliAstro and possibly this tutorial might do what you want. They usually have good documentation with extensive examples for simply copy&paste on how to use them. That said, python is not the only option, there are solutions in other languages as well.

It's also worth to note that some missions come with their own dedicated tools like Cassini's JCSN or Cassini orbit plotting tool.

For natural bodies AstroPy, possibly along with JPLEphem might suffice and prove quite versatile.

$\endgroup$
2
  • 1
    $\begingroup$ That's a very good point: «it is the recommended format by IAU to use». I checked SPICE before in the NAIF website and I was not able to find how to install it. But knowing there are so much python modules based on it is really nice. I have a lot of modules to learn, now! I use Python, Bash, C, Go, Ruby, Perl... How do I find more tools in other languages? (Based on SPICE) $\endgroup$
    – Unix
    Aug 14, 2020 at 9:26
  • 2
    $\begingroup$ naif.jpl.nasa.gov/naif/toolkit.html has some further links... more likely at the end of some dedicated search queries with a search engine of your choice. I don't have bookmarks either. $\endgroup$ Aug 14, 2020 at 10:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .