Skip to content

andrmoel/astronomy-bundle-js

Repository files navigation

Work in progress. This is the next major version of astronomy-bundle and is not yet stable. If you are looking for the current stable release, see the README (version 7.7.7).

Astronomy Bundle

A TypeScript library for astronomical calculations including the position of the Sun, Moon, and planets, sunrise and sunset times, and solar eclipses. Most calculations are based on Jean Meeus' Astronomical Algorithms and the VSOP87 theory.

Packages

API Reference

Package Description Docs
Time The TimeOfInterest object — the central time representation for all calculations. Supports Julian Day, sidereal time, Delta T, and more. README
Location The Location object — a geographic coordinate container with formatting and distance helpers. README
Earth The Earth object — heliocentric VSOP87 coordinates, nutation, and obliquity of the ecliptic. README
Moon The Moon object — geocentric coordinates, apparent and observed topocentric coordinates, phase angle, illuminated fraction, upcoming lunar phases, and apparent magnitude. README
Sun The Sun object — geocentric coordinates, apparent and observed topocentric coordinates, angular diameter, light time, and apparent magnitude. README
Planets The Mercury, Venus, Mars, Jupiter, Saturn, Uranus, and Neptune objects — heliocentric, geocentric, apparent, and topocentric planetary coordinates, plus distance, light time, phase, elongation, and magnitude. README
Solar Eclipse Solar eclipse calculations using Besselian elements. Provides global and local eclipse circumstances for any observer position. README

About

This library provides tools and methods for astronomical calculations. With this bundle it is possible to calculate the position of moon, sun and planets and several coordinate systems. For a higher accuracy, several corrections, like nutation and precision, were taken into account. It is also possible to calculate rise, set and culmination even…

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors