@astronomy-bundle/core
v9.16.3
Published
Core astronomy bundle
Downloads
4,281
Maintainers
Readme
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
@astronomy-bundle/core@astronomy-bundle/earth@astronomy-bundle/moon@astronomy-bundle/sun@astronomy-bundle/planets@astronomy-bundle/solar-eclipse
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 |
| Solar Eclipse | Solar eclipse calculations using Besselian elements. Provides global and local eclipse circumstances for any observer position. | README |
