@observerly/astrometry
Version:
observerly's lightweight, zero-dependency, type safe astrometry library written in Typescript for calculating the position of celestial objects in the sky.
17 lines (16 loc) • 980 B
JavaScript
import { getObliquityOfTheEcliptic as d } from "./astrometry.js";
import { getLunarMeanEclipticLongitudeOfTheAscendingNode as m, getLunarMeanGeometricLongitude as p } from "./moon.js";
import { getSolarMeanGeometricLongitude as f } from "./sun.js";
import { c as t } from "./utilities-BM-rBPno.js";
// @license Copyright © 2021-2023 observerly
const O = (o, i) => {
const n = t(i.ra), r = t(i.dec), c = m(o), e = f(o), M = p(o), h = -17.2 * Math.sin(t(c)) - 1.32 * Math.sin(2 * t(e)) - 0.23 * Math.sin(2 * t(M)) + 0.21 * Math.sin(2 * t(c)), a = 9.2 * Math.cos(t(c)) + 0.57 * Math.cos(2 * t(e)) + 0.1 * Math.cos(2 * t(M)) - 0.09 * Math.cos(2 * t(c)), s = t(d(o) + a / 3600), g = Math.cos(s) + Math.sin(s) * Math.sin(n) * Math.tan(r) * h - Math.cos(n) * Math.tan(r) * a, u = Math.sin(s) * Math.cos(n) * h + Math.sin(n) * a;
return {
ra: g / 3600,
dec: u / 3600
};
};
export {
O as getCorrectionToEquatorialForNutation
};
//# sourceMappingURL=nutation.js.map