@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.
4 lines (3 loc) • 1.14 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./astrometry.cjs"),u=require("./moon.cjs"),v=require("./sun.cjs"),e=require("./utilities-HBcnbrPA.cjs");// @license Copyright © 2021-2023 observerly
const l=(o,r)=>{const t=e.convertDegreesToRadians(r.ra),c=e.convertDegreesToRadians(r.dec),n=u.getLunarMeanEclipticLongitudeOfTheAscendingNode(o),i=v.getSolarMeanGeometricLongitude(o),g=u.getLunarMeanGeometricLongitude(o),M=-17.2*Math.sin(e.convertDegreesToRadians(n))-1.32*Math.sin(2*e.convertDegreesToRadians(i))-.23*Math.sin(2*e.convertDegreesToRadians(g))+.21*Math.sin(2*e.convertDegreesToRadians(n)),s=9.2*Math.cos(e.convertDegreesToRadians(n))+.57*Math.cos(2*e.convertDegreesToRadians(i))+.1*Math.cos(2*e.convertDegreesToRadians(g))-.09*Math.cos(2*e.convertDegreesToRadians(n)),a=e.convertDegreesToRadians(T.getObliquityOfTheEcliptic(o)+s/3600),d=Math.cos(a)+Math.sin(a)*Math.sin(t)*Math.tan(c)*M-Math.cos(t)*Math.tan(c)*s,h=Math.sin(a)*Math.cos(t)*M+Math.sin(t)*s;return{ra:d/3600,dec:h/3600}};exports.getCorrectionToEquatorialForNutation=l;
//# sourceMappingURL=nutation.cjs.map