orbits.js

Javascript library for positional astronomy.

The library has been implemented mainly to facilitate my hobby with Javascript visualizations and positional astronomy. The code is somewhat poorly organized into relatively stand-alone methods but is completely self-contained and written in pure Javascript.

The library implements:

The planetary computations should match JPL Horizons with an average error of 60-300 mas depending on the planet. The error in position of the Moon w.r.t. JPL Horizons should be below 200 meters between 1900-2100.

The JSON files are generated as follows:

Click below to execute an example of a simple application using most features of the library. Screenshot.

Click below for an example drawing constellations. Screenshot.

Click below for an example for visualization of Solar Eclipses. Screenshot.

Click below to execute an example of a simple application drawing visual appearance of planets. Screenshot.