astronomical-algorithms
v1.10.2
Published
Astronomical Algorithms for node.js
Downloads
13
Readme
AA.js
Astronomical Algorithms in JavaScript.
Other implementations: Swift (SwiftAA), C# (AASharp).
AA.js is the port in javascript of the C++ implementation of Astronomical Algorithms by J.P. Naughter, called AA+, based on the reference text book by Jean Meeus. It is written in TypeScript, and covered as much as possible with tests validating the correctness of the algorithms. Tests are inspired from Jean Meeus' book and those written in SwiftAA, and are much more extended than what is available in AA+.
AA.js is the backbone of scientific algorithms used in arcsecond.io.
I am the author of the Swift version too. It's called SwiftAA.
Installation
npm install astronomical-algorithms
Usage
import aa from 'astronomical-algorithms'
...
const jd = aa.julianday.getJulianDay(new Date()),
const coords = aa.moon.equatorialCoordinates(jd)
Documentation
Very much in progress for now, sorry.