Don Cross bf2eeed105 Implemented C version of Horizon function. Fixed bug in C GeoPos.
The C version of GeoPos was returning an ante-dated time value,
not the time the caller asked about. In other words, it was
returning the time when the observed body emitted the light
the observer sees, not the time the observation was made on the
Earth, like it was supposed to. Fortunately, my unit test caught that.
2019-05-18 18:46:08 -04:00
2019-05-05 20:54:10 -04:00
2019-04-07 16:55:21 -04:00

Astronomy Engine Build Status

Supported Programming Languages

Browser
JavaScript
Node.js
Node.js
Examples Examples
Documentation Documentation

Overview

The Astronomy Engine is a suite of open source libraries for calculating positions of the Sun, Moon, and planets, and for predicting interesting events like oppositions, conjunctions, rise and set times, lunar phases, and more.

It supports several popular programming langauges with a consistent API. Function and type names are uniform across all the supported languages.

The Astronomy Engine is designed to be small, fast, and accurate to within ±1 arcminute. It is based on the authoritative and well-tested models VSOP87 and NOVAS C 3.1.

These libraries are rigorously unit-tested against NOVAS, JPL Horizons, and other reliable sources of ephemeris data. Calculations are also verified to be identical among all the supported programming languages.

Features

  • Provides calculations for the Sun, Moon, Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, and Pluto.

  • Calculates for any calendar date and time between the years 1600 and 2200.

  • Provides heliocentric and geocentric Cartesian vectors of all the above bodies.

  • Determines apparent horizon-based positions for an observer anywhere on the Earth, given that observer's latitude, longitude, and elevation in meters. Optionally corrects for atmospheric refraction.

  • Calculates rise, set and culmination times of Sun, Moon, and planets.

  • Finds date and time of Moon phases: new, first quarter, full, third quarter (or anywhere in between as expressed in degrees of ecliptic longitude).

  • Predicts lunar apogee and perigee dates, times, and distances.

  • Predicts date and time of equinoxes and solstices for a given calendar year.

  • Determines apparent visual magnitudes of all the supported celestial bodies.

  • Predicts dates of planetary conjunctions and oppositions.

  • Predicts dates of Venus' peak visual magnitude.

  • Predicts dates of maximum elongation for Mercury and Venus.

Description
No description provided
Readme MIT 55 MiB
Languages
C 23%
JavaScript 15.9%
C# 14.2%
Python 11.1%
HTML 10.2%
Other 25.6%