@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.
3 lines (2 loc) • 1.08 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./epoch-BuLOjzKu.cjs"),e=require("./utilities-HBcnbrPA.cjs"),v=(c,o)=>{const s=(h.getJulianDate(c)-2451545)/36525,a=(2306.2181*s+.30188*s**2+.017998*s**3)/3600,r=(2306.2181*s+1.09468*s**2+.018203*s**3)/3600,n=(2004.3109*s-.42665*s**2-.041833*s**3)/3600,t=Math.cos(e.convertDegreesToRadians(o.dec))*Math.sin(e.convertDegreesToRadians(o.ra+a)),i=Math.cos(e.convertDegreesToRadians(n))*Math.cos(e.convertDegreesToRadians(o.dec))*Math.cos(e.convertDegreesToRadians(o.ra+a))-Math.sin(e.convertDegreesToRadians(n))*Math.sin(e.convertDegreesToRadians(o.dec)),d=Math.sin(e.convertDegreesToRadians(n))*Math.cos(e.convertDegreesToRadians(o.dec))*Math.cos(e.convertDegreesToRadians(o.ra+a))+Math.cos(e.convertDegreesToRadians(n))*Math.sin(e.convertDegreesToRadians(o.dec)),T=e.convertRadiansToDegrees(Math.atan2(t,i))+r,D=e.convertRadiansToDegrees(Math.asin(d));return{ra:T-o.ra,dec:D-o.dec}};exports.getCorrectionToEquatorialForPrecessionOfEquinoxes=v;
//# sourceMappingURL=precession.cjs.map