/PlanetaryOrbits.jl

Draw lines between orbits of a pair of planets

Primary LanguageJuliaMIT LicenseMIT

PlanetaryOrbits.jl

Draw lines between orbits of a pair of planets.

About

The Pluto Julia notebook PlanetaryOrbits.jl draws the lines connecting two planets (Planet1 and Planet2) in 2D projection of their respective heliocentric coordinates from Date1 until Date2 in positions which are δDays apart.

Planets are 1=Mercury, 2=Venus, 3=Earth, 4=Mars, 5=Jupyter, 6=Saturnus, 7=Uranius, 8=Neptun, and 9=Pluto.

See also link1 and link2 for extended information.

The notebook uses Julia packages AstroLib.jl and Plots.jl, and the module Dates.

Installation and Running

There are two ways to compute the orbits and draw the figures:

  1. Open the file PlanetaryOrbits.jl.html, press Edit or run this notebook button and then choose binder. This will downlaod necessary packages and star the notebook (in few minutes).

  2. Download the notebooks (repository) using git command:

git clone https://github.com/ivanslapnicar/PlanetaryOrbits.jl.git

or download the repository directly as zip file. * Install Julia. In Julia terminal run the commands

> using Pkg
> Pkg.add("Pluto")
> Pkg.add("Plots")

The above commands need to be executed only once. * Start the Pluto notebook server: in Julia terminal run

> using Pluto
> Pluto.run()
* In Pluto notebook server navigate to the notebook and open it.

Example Images

Images show secants between positions of two planets from January 1, 2001 until January 1, 2021 in the intervals of ten days.

Mercury-Venus

Earth-Mars

Earth-Jupyter