astronomical-algorithms

Astronomical Algorithms for node.js

Usage no npm install needed!

<script type="module">
  import astronomicalAlgorithms from 'https://cdn.skypack.dev/astronomical-algorithms';
</script>

README

SwiftAAAA.jsQLFitsFITSImporterObjCFITSIO

Become a Patreon

AA.js

Build Status

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.