UNPKG

@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.

5 lines (4 loc) 5.78 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./epoch-BuLOjzKu.cjs");// @license Copyright © 2021-2023 observerly const c=[{A:175347046,B:0,C:0},{A:3341656,B:4.6692568,C:6283.07585},{A:34894,B:4.6261,C:12566.1517},{A:3497,B:2.7441,C:5753.3849},{A:3418,B:2.8289,C:3.5231},{A:3136,B:3.6277,C:77713.7715},{A:2676,B:4.4181,C:7860.4194},{A:2343,B:6.1352,C:3930.2097},{A:1324,B:.7425,C:11506.7698},{A:1273,B:2.0371,C:529.691},{A:1199,B:1.1096,C:1577.3435},{A:990,B:5.233,C:5884.927},{A:902,B:2.045,C:26.298},{A:857,B:3.508,C:398.149},{A:780,B:1.179,C:5223.694},{A:753,B:2.533,C:5507.553},{A:505,B:4.583,C:18849.228},{A:492,B:4.205,C:775.523},{A:357,B:2.92,C:.067},{A:317,B:5.849,C:11790.629},{A:284,B:1.899,C:796.298},{A:271,B:.315,C:10977.079},{A:243,B:.345,C:5486.778},{A:206,B:4.806,C:2544.314},{A:205,B:1.869,C:5573.143},{A:202,B:2.458,C:6069.777},{A:156,B:.833,C:213.299},{A:132,B:3.411,C:2942.463},{A:126,B:1.083,C:20.775},{A:115,B:.645,C:.98},{A:103,B:.636,C:4694.003},{A:102,B:.976,C:15720.839},{A:102,B:4.267,C:7.114},{A:99,B:6.21,C:2146.17},{A:98,B:.68,C:155.42},{A:86,B:5.98,C:161000.69},{A:85,B:1.3,C:6275.96},{A:85,B:3.67,C:71430.7},{A:80,B:1.81,C:17260.15},{A:79,B:3.04,C:12036.46},{A:75,B:1.76,C:5088.63},{A:74,B:3.5,C:3154.69},{A:74,B:4.68,C:801.82},{A:70,B:.83,C:9437.76},{A:62,B:3.98,C:8827.39},{A:61,B:1.82,C:7084.9},{A:57,B:2.78,C:6286.6},{A:56,B:4.39,C:14143.5},{A:56,B:3.47,C:6279.55},{A:52,B:.19,C:12139.55},{A:52,B:1.33,C:1748.02},{A:51,B:.28,C:5856.48},{A:49,B:.49,C:1194.45},{A:41,B:5.37,C:8429.24},{A:41,B:2.4,C:19651.05},{A:39,B:6.17,C:10447.39},{A:37,B:6.04,C:10213.29},{A:37,B:2.57,C:1059.38},{A:36,B:1.71,C:2352.87},{A:36,B:1.78,C:6812.77},{A:33,B:.59,C:17789.85},{A:30,B:.44,C:83996.85},{A:30,B:2.74,C:4690.48}],e=[{A:628331966747,B:0,C:0},{A:206059,B:2.678235,C:6283.07585},{A:4303,B:2.6351,C:12566.1517},{A:425,B:1.59,C:3.523},{A:119,B:5.796,C:26.298},{A:109,B:2.966,C:1577.344},{A:93,B:2.59,C:18849.23},{A:72,B:1.14,C:529.69},{A:68,B:1.87,C:398.15},{A:67,B:4.41,C:5507.55},{A:59,B:2.89,C:5223.69},{A:56,B:2.17,C:155.42},{A:45,B:.4,C:796.3},{A:36,B:.47,C:775.52},{A:29,B:2.65,C:7.11},{A:21,B:5.34,C:.98},{A:19,B:1.85,C:5486.78},{A:19,B:4.97,C:213.3},{A:17,B:2.99,C:10977.08},{A:16,B:.03,C:2544.31},{A:16,B:1.43,C:2146.17},{A:15,B:1.21,C:1748.02},{A:12,B:2.83,C:1194.45},{A:12,B:3.26,C:5088.63},{A:12,B:5.27,C:1748.02},{A:10,B:.47,C:553.57},{A:9,B:4.24,C:4690.48},{A:9,B:.38,C:1349.87},{A:8,B:3.09,C:11790.63},{A:8,B:1.79,C:2352.87},{A:7,B:3.46,C:4694},{A:6,B:5.57,C:242.73},{A:6,B:6.04,C:5486.78},{A:6,B:2.4,C:16730.68}],n=[{A:52919,B:0,C:0},{A:8720,B:1.0721,C:6283.0758},{A:309,B:.867,C:12566.152},{A:27,B:.05,C:3.52},{A:16,B:5.19,C:26.3},{A:16,B:3.68,C:155.42},{A:10,B:.76,C:18849.23},{A:9,B:2.06,C:77713.77},{A:7,B:.83,C:775.52},{A:5,B:4.66,C:1577.34},{A:4,B:1.03,C:7.11},{A:4,B:3.44,C:5573.14},{A:3,B:5.14,C:796.3},{A:3,B:6.05,C:5507.55},{A:3,B:1.19,C:242.73},{A:3,B:6.12,C:529.69},{A:3,B:.31,C:398.15},{A:2,B:2.28,C:553.57},{A:2,B:4.38,C:5223.69},{A:2,B:3.75,C:.98}],o=[{A:289,B:5.844,C:6283.076},{A:35,B:0,C:0},{A:17,B:5.49,C:12566.15},{A:3,B:5.2,C:155.42},{A:1,B:4.72,C:3.52},{A:1,B:5.3,C:18849.23},{A:1,B:5.97,C:242.73}],i=[{A:114,B:3.142,C:0},{A:8,B:4.13,C:6283.08},{A:1,B:3.84,C:12566.15}],s=[{A:1,B:3.14,C:0}],r=[{A:280,B:3.199,C:84334.662},{A:102,B:5.422,C:5507.553},{A:80,B:3.88,C:5223.69},{A:44,B:3.7,C:2352.87},{A:32,B:4,C:1577.34}],a=[{A:9,B:3.9,C:5507.55},{A:6,B:1.73,C:5223.69}],l=[{A:100013989,B:0,C:0},{A:1670700,B:3.0984635,C:6283.07585},{A:13956,B:3.05525,C:12566.1517},{A:3084,B:5.1985,C:77713.7715},{A:1628,B:1.1739,C:5753.3849},{A:1576,B:2.8469,C:7860.4194},{A:925,B:5.453,C:11506.77},{A:542,B:4.564,C:3930.21},{A:472,B:3.661,C:5884.927},{A:346,B:.964,C:5507.553},{A:329,B:5.9,C:5223.694},{A:307,B:.299,C:5573.143},{A:243,B:4.273,C:11790.629},{A:212,B:5.847,C:1577.344},{A:186,B:5.022,C:10977.079},{A:175,B:3.012,C:18849.228},{A:110,B:5.055,C:5486.778},{A:98,B:.89,C:6069.78},{A:86,B:5.69,C:15720.84},{A:86,B:1.27,C:161000.69},{A:65,B:.27,C:17260.15},{A:63,B:.92,C:529.69},{A:57,B:2.01,C:83996.85},{A:56,B:5.24,C:71430.7},{A:49,B:3.25,C:2544.31},{A:47,B:2.58,C:775.52},{A:45,B:5.54,C:9437.76},{A:43,B:6.01,C:6275.96},{A:39,B:5.36,C:4694},{A:38,B:2.39,C:8827.39},{A:37,B:.83,C:19651.05},{A:37,B:4.9,C:12139.55},{A:36,B:1.67,C:12036.46},{A:35,B:1.84,C:2942.46},{A:33,B:.24,C:7084.9},{A:32,B:.18,C:5088.63},{A:32,B:1.78,C:398.15},{A:28,B:1.21,C:6286.6},{A:28,B:1.9,C:6279.55},{A:26,B:4.59,C:10447.39}],u=[{A:103019,B:1.10749,C:6283.07585},{A:1721,B:1.0644,C:12566.1517},{A:702,B:3.142,C:0},{A:32,B:1.02,C:18849.23},{A:31,B:2.84,C:5507.55},{A:25,B:1.32,C:5223.69},{A:18,B:1.42,C:1577.34},{A:10,B:5.91,C:10977.08},{A:9,B:1.42,C:6275.96},{A:9,B:.27,C:5486.78}],f=[{A:4359,B:5.7846,C:6283.0758},{A:124,B:5.579,C:12566.152},{A:12,B:3.14,C:0},{A:9,B:3.63,C:77713.77},{A:6,B:1.87,C:5573.14},{A:3,B:5.47,C:18849.23}],g=[{A:145,B:4.273,C:6283.076},{A:7,B:3.92,C:12566.15}],J=[{A:4,B:2.56,C:6283.08}];// @license Copyright © 2021-2023 observerly const O={uid:"01HD4AM60QS3SXKKJWY1A2Z3JF",name:"Earth",symbol:"♁",T:1.0000174,m:1,r:6378140,e:.01671123,a:1.0000003,i:-1531e-8,ε:100.464572,ϖ:102.937682,Ω:null,isInferior:!1},D=[c,e,n,o,i,s],y=[r,a],L=[l,u,f,g,J],b=A=>{const B=(C.getJulianDate(A)-2451545)/36525;return .0167086342-42037e-9*B-1267e-10*B**2%360},E=A=>{const B=(C.getJulianDate(A)-2451545)/36525;return 23.4392911111-.0130041667*B-1639e-10*B**2+5036e-10*B**3-6e-10*B**4-18e-12*B*B*B*B*B},R=A=>{const B=(C.getJulianDate(A)-2451545)/36525;return 1-.002516*B-74e-7*B**2};exports.B=y;exports.L=D;exports.R=L;exports.earth=O;exports.getCoefficientOfEccentricity=R;exports.getEccentricityOfOrbit=b;exports.getObliquityOfEcliptic=E; //# sourceMappingURL=earth.cjs.map