@arcosmos/erfa 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (478) hide show
  1. package/LICENSE +56 -0
  2. package/README.md +109 -2
  3. package/dist/a2af.d.ts +36 -0
  4. package/dist/a2af.d.ts.map +1 -0
  5. package/dist/a2af.js +44 -0
  6. package/dist/a2af.js.map +1 -0
  7. package/dist/a2tf.d.ts +36 -0
  8. package/dist/a2tf.d.ts.map +1 -0
  9. package/dist/a2tf.js +42 -0
  10. package/dist/a2tf.js.map +1 -0
  11. package/dist/af2a.d.ts +19 -0
  12. package/dist/af2a.d.ts.map +1 -0
  13. package/dist/af2a.js +34 -0
  14. package/dist/af2a.js.map +1 -0
  15. package/dist/anp.d.ts +8 -0
  16. package/dist/anp.d.ts.map +1 -0
  17. package/dist/anp.js +16 -0
  18. package/dist/anp.js.map +1 -0
  19. package/dist/anpm.d.ts +8 -0
  20. package/dist/anpm.d.ts.map +1 -0
  21. package/dist/anpm.js +16 -0
  22. package/dist/anpm.js.map +1 -0
  23. package/dist/bi00.d.ts +27 -0
  24. package/dist/bi00.d.ts.map +1 -0
  25. package/dist/bi00.js +40 -0
  26. package/dist/bi00.js.map +1 -0
  27. package/dist/bp06.d.ts +27 -0
  28. package/dist/bp06.d.ts.map +1 -0
  29. package/dist/bp06.js +46 -0
  30. package/dist/bp06.js.map +1 -0
  31. package/dist/c2s.d.ts +14 -0
  32. package/dist/c2s.d.ts.map +1 -0
  33. package/dist/c2s.js +21 -0
  34. package/dist/c2s.js.map +1 -0
  35. package/dist/cal2jd.d.ts +27 -0
  36. package/dist/cal2jd.d.ts.map +1 -0
  37. package/dist/cal2jd.js +58 -0
  38. package/dist/cal2jd.js.map +1 -0
  39. package/dist/constants.d.ts +59 -0
  40. package/dist/constants.d.ts.map +1 -0
  41. package/dist/constants.js +60 -0
  42. package/dist/constants.js.map +1 -0
  43. package/dist/cp.d.ts +9 -0
  44. package/dist/cp.d.ts.map +1 -0
  45. package/dist/cp.js +10 -0
  46. package/dist/cp.js.map +1 -0
  47. package/dist/cpv.d.ts +9 -0
  48. package/dist/cpv.d.ts.map +1 -0
  49. package/dist/cpv.js +12 -0
  50. package/dist/cpv.js.map +1 -0
  51. package/dist/cr.d.ts +9 -0
  52. package/dist/cr.d.ts.map +1 -0
  53. package/dist/cr.js +12 -0
  54. package/dist/cr.js.map +1 -0
  55. package/dist/d2dtf.d.ts +49 -0
  56. package/dist/d2dtf.d.ts.map +1 -0
  57. package/dist/d2dtf.js +142 -0
  58. package/dist/d2dtf.js.map +1 -0
  59. package/dist/d2tf.d.ts +36 -0
  60. package/dist/d2tf.d.ts.map +1 -0
  61. package/dist/d2tf.js +77 -0
  62. package/dist/d2tf.js.map +1 -0
  63. package/dist/dat.d.ts +55 -0
  64. package/dist/dat.d.ts.map +1 -0
  65. package/dist/dat.js +168 -0
  66. package/dist/dat.js.map +1 -0
  67. package/dist/datini.d.ts +26 -0
  68. package/dist/datini.d.ts.map +1 -0
  69. package/dist/datini.js +37 -0
  70. package/dist/datini.js.map +1 -0
  71. package/dist/dtdb.d.ts +105 -0
  72. package/dist/dtdb.d.ts.map +1 -0
  73. package/dist/dtdb.js +1076 -0
  74. package/dist/dtdb.js.map +1 -0
  75. package/dist/dtf2d.d.ts +45 -0
  76. package/dist/dtf2d.d.ts.map +1 -0
  77. package/dist/dtf2d.js +112 -0
  78. package/dist/dtf2d.js.map +1 -0
  79. package/dist/eceq06.d.ts +24 -0
  80. package/dist/eceq06.d.ts.map +1 -0
  81. package/dist/eceq06.js +44 -0
  82. package/dist/eceq06.js.map +1 -0
  83. package/dist/ecm06.d.ts +30 -0
  84. package/dist/ecm06.d.ts.map +1 -0
  85. package/dist/ecm06.js +45 -0
  86. package/dist/ecm06.js.map +1 -0
  87. package/dist/epb.d.ts +24 -0
  88. package/dist/epb.d.ts.map +1 -0
  89. package/dist/epb.js +30 -0
  90. package/dist/epb.js.map +1 -0
  91. package/dist/epb2jd.d.ts +14 -0
  92. package/dist/epb2jd.d.ts.map +1 -0
  93. package/dist/epb2jd.js +20 -0
  94. package/dist/epb2jd.js.map +1 -0
  95. package/dist/epj.d.ts +24 -0
  96. package/dist/epj.d.ts.map +1 -0
  97. package/dist/epj.js +29 -0
  98. package/dist/epj.js.map +1 -0
  99. package/dist/epj2jd.d.ts +14 -0
  100. package/dist/epj2jd.d.ts.map +1 -0
  101. package/dist/epj2jd.js +20 -0
  102. package/dist/epj2jd.js.map +1 -0
  103. package/dist/eqec06.d.ts +24 -0
  104. package/dist/eqec06.d.ts.map +1 -0
  105. package/dist/eqec06.js +44 -0
  106. package/dist/eqec06.js.map +1 -0
  107. package/dist/era00.d.ts +29 -0
  108. package/dist/era00.d.ts.map +1 -0
  109. package/dist/era00.js +51 -0
  110. package/dist/era00.js.map +1 -0
  111. package/dist/fw2m.d.ts +51 -0
  112. package/dist/fw2m.d.ts.map +1 -0
  113. package/dist/fw2m.js +61 -0
  114. package/dist/fw2m.js.map +1 -0
  115. package/dist/g2icrs.d.ts +33 -0
  116. package/dist/g2icrs.d.ts.map +1 -0
  117. package/dist/g2icrs.js +69 -0
  118. package/dist/g2icrs.js.map +1 -0
  119. package/dist/gmst06.d.ts +32 -0
  120. package/dist/gmst06.d.ts.map +1 -0
  121. package/dist/gmst06.js +49 -0
  122. package/dist/gmst06.js.map +1 -0
  123. package/dist/icrs2g.d.ts +33 -0
  124. package/dist/icrs2g.d.ts.map +1 -0
  125. package/dist/icrs2g.js +69 -0
  126. package/dist/icrs2g.js.map +1 -0
  127. package/dist/index.d.ts +95 -0
  128. package/dist/index.d.ts.map +1 -0
  129. package/dist/index.js +106 -0
  130. package/dist/index.js.map +1 -0
  131. package/dist/internal.d.ts +23 -0
  132. package/dist/internal.d.ts.map +1 -0
  133. package/dist/internal.js +32 -0
  134. package/dist/internal.js.map +1 -0
  135. package/dist/ir.d.ts +9 -0
  136. package/dist/ir.d.ts.map +1 -0
  137. package/dist/ir.js +14 -0
  138. package/dist/ir.js.map +1 -0
  139. package/dist/jd2cal.d.ts +31 -0
  140. package/dist/jd2cal.d.ts.map +1 -0
  141. package/dist/jd2cal.js +106 -0
  142. package/dist/jd2cal.js.map +1 -0
  143. package/dist/jdcalf.d.ts +28 -0
  144. package/dist/jdcalf.d.ts.map +1 -0
  145. package/dist/jdcalf.js +84 -0
  146. package/dist/jdcalf.js.map +1 -0
  147. package/dist/leap-seconds.d.ts +30 -0
  148. package/dist/leap-seconds.d.ts.map +1 -0
  149. package/dist/leap-seconds.js +42 -0
  150. package/dist/leap-seconds.js.map +1 -0
  151. package/dist/obl06.d.ts +19 -0
  152. package/dist/obl06.d.ts.map +1 -0
  153. package/dist/obl06.js +32 -0
  154. package/dist/obl06.js.map +1 -0
  155. package/dist/pap.d.ts +19 -0
  156. package/dist/pap.d.ts.map +1 -0
  157. package/dist/pap.js +45 -0
  158. package/dist/pap.js.map +1 -0
  159. package/dist/pas.d.ts +17 -0
  160. package/dist/pas.d.ts.map +1 -0
  161. package/dist/pas.js +24 -0
  162. package/dist/pas.js.map +1 -0
  163. package/dist/pdp.d.ts +8 -0
  164. package/dist/pdp.d.ts.map +1 -0
  165. package/dist/pdp.js +9 -0
  166. package/dist/pdp.js.map +1 -0
  167. package/dist/pfw06.d.ts +43 -0
  168. package/dist/pfw06.d.ts.map +1 -0
  169. package/dist/pfw06.js +73 -0
  170. package/dist/pfw06.js.map +1 -0
  171. package/dist/pm.d.ts +8 -0
  172. package/dist/pm.d.ts.map +1 -0
  173. package/dist/pm.js +9 -0
  174. package/dist/pm.js.map +1 -0
  175. package/dist/pmat06.d.ts +26 -0
  176. package/dist/pmat06.d.ts.map +1 -0
  177. package/dist/pmat06.js +34 -0
  178. package/dist/pmat06.js.map +1 -0
  179. package/dist/pmp.d.ts +10 -0
  180. package/dist/pmp.d.ts.map +1 -0
  181. package/dist/pmp.js +11 -0
  182. package/dist/pmp.js.map +1 -0
  183. package/dist/pmpx.d.ts +29 -0
  184. package/dist/pmpx.d.ts.map +1 -0
  185. package/dist/pmpx.js +59 -0
  186. package/dist/pmpx.js.map +1 -0
  187. package/dist/pmsafe.d.ts +60 -0
  188. package/dist/pmsafe.d.ts.map +1 -0
  189. package/dist/pmsafe.js +91 -0
  190. package/dist/pmsafe.js.map +1 -0
  191. package/dist/pn.d.ts +12 -0
  192. package/dist/pn.d.ts.map +1 -0
  193. package/dist/pn.js +25 -0
  194. package/dist/pn.js.map +1 -0
  195. package/dist/ppp.d.ts +10 -0
  196. package/dist/ppp.d.ts.map +1 -0
  197. package/dist/ppp.js +11 -0
  198. package/dist/ppp.js.map +1 -0
  199. package/dist/ppsp.d.ts +11 -0
  200. package/dist/ppsp.d.ts.map +1 -0
  201. package/dist/ppsp.js +17 -0
  202. package/dist/ppsp.js.map +1 -0
  203. package/dist/pv2s.d.ts +19 -0
  204. package/dist/pv2s.d.ts.map +1 -0
  205. package/dist/pv2s.js +61 -0
  206. package/dist/pv2s.js.map +1 -0
  207. package/dist/pvdpv.d.ts +14 -0
  208. package/dist/pvdpv.d.ts.map +1 -0
  209. package/dist/pvdpv.js +24 -0
  210. package/dist/pvdpv.js.map +1 -0
  211. package/dist/pvm.d.ts +9 -0
  212. package/dist/pvm.d.ts.map +1 -0
  213. package/dist/pvm.js +15 -0
  214. package/dist/pvm.js.map +1 -0
  215. package/dist/pvmpv.d.ts +10 -0
  216. package/dist/pvmpv.d.ts.map +1 -0
  217. package/dist/pvmpv.js +12 -0
  218. package/dist/pvmpv.js.map +1 -0
  219. package/dist/pvppv.d.ts +10 -0
  220. package/dist/pvppv.d.ts.map +1 -0
  221. package/dist/pvppv.js +12 -0
  222. package/dist/pvppv.js.map +1 -0
  223. package/dist/pvstar.d.ts +51 -0
  224. package/dist/pvstar.d.ts.map +1 -0
  225. package/dist/pvstar.js +97 -0
  226. package/dist/pvstar.js.map +1 -0
  227. package/dist/pvu.d.ts +15 -0
  228. package/dist/pvu.d.ts.map +1 -0
  229. package/dist/pvu.js +19 -0
  230. package/dist/pvu.js.map +1 -0
  231. package/dist/pvxpv.d.ts +15 -0
  232. package/dist/pvxpv.d.ts.map +1 -0
  233. package/dist/pvxpv.js +29 -0
  234. package/dist/pvxpv.js.map +1 -0
  235. package/dist/pxp.d.ts +8 -0
  236. package/dist/pxp.d.ts.map +1 -0
  237. package/dist/pxp.js +15 -0
  238. package/dist/pxp.js.map +1 -0
  239. package/dist/rx.d.ts +21 -0
  240. package/dist/rx.d.ts.map +1 -0
  241. package/dist/rx.js +30 -0
  242. package/dist/rx.js.map +1 -0
  243. package/dist/rxp.d.ts +10 -0
  244. package/dist/rxp.d.ts.map +1 -0
  245. package/dist/rxp.js +21 -0
  246. package/dist/rxp.js.map +1 -0
  247. package/dist/rxr.d.ts +10 -0
  248. package/dist/rxr.d.ts.map +1 -0
  249. package/dist/rxr.js +27 -0
  250. package/dist/rxr.js.map +1 -0
  251. package/dist/ry.d.ts +21 -0
  252. package/dist/ry.d.ts.map +1 -0
  253. package/dist/ry.js +30 -0
  254. package/dist/ry.js.map +1 -0
  255. package/dist/rz.d.ts +21 -0
  256. package/dist/rz.d.ts.map +1 -0
  257. package/dist/rz.js +30 -0
  258. package/dist/rz.js.map +1 -0
  259. package/dist/s2c.d.ts +10 -0
  260. package/dist/s2c.d.ts.map +1 -0
  261. package/dist/s2c.js +12 -0
  262. package/dist/s2c.js.map +1 -0
  263. package/dist/s2pv.d.ts +14 -0
  264. package/dist/s2pv.d.ts.map +1 -0
  265. package/dist/s2pv.js +27 -0
  266. package/dist/s2pv.js.map +1 -0
  267. package/dist/s2xpv.d.ts +11 -0
  268. package/dist/s2xpv.d.ts.map +1 -0
  269. package/dist/s2xpv.js +13 -0
  270. package/dist/s2xpv.js.map +1 -0
  271. package/dist/sepp.d.ts +16 -0
  272. package/dist/sepp.d.ts.map +1 -0
  273. package/dist/sepp.js +26 -0
  274. package/dist/sepp.js.map +1 -0
  275. package/dist/seps.d.ts +11 -0
  276. package/dist/seps.d.ts.map +1 -0
  277. package/dist/seps.js +20 -0
  278. package/dist/seps.js.map +1 -0
  279. package/dist/starpm.d.ts +56 -0
  280. package/dist/starpm.d.ts.map +1 -0
  281. package/dist/starpm.js +90 -0
  282. package/dist/starpm.js.map +1 -0
  283. package/dist/starpv.d.ts +62 -0
  284. package/dist/starpv.d.ts.map +1 -0
  285. package/dist/starpv.js +147 -0
  286. package/dist/starpv.js.map +1 -0
  287. package/dist/sxp.d.ts +10 -0
  288. package/dist/sxp.d.ts.map +1 -0
  289. package/dist/sxp.js +11 -0
  290. package/dist/sxp.js.map +1 -0
  291. package/dist/sxpv.d.ts +10 -0
  292. package/dist/sxpv.d.ts.map +1 -0
  293. package/dist/sxpv.js +12 -0
  294. package/dist/sxpv.js.map +1 -0
  295. package/dist/taitt.d.ts +19 -0
  296. package/dist/taitt.d.ts.map +1 -0
  297. package/dist/taitt.js +36 -0
  298. package/dist/taitt.js.map +1 -0
  299. package/dist/taiut1.d.ts +20 -0
  300. package/dist/taiut1.d.ts.map +1 -0
  301. package/dist/taiut1.js +36 -0
  302. package/dist/taiut1.js.map +1 -0
  303. package/dist/taiutc.d.ts +33 -0
  304. package/dist/taiutc.d.ts.map +1 -0
  305. package/dist/taiutc.js +73 -0
  306. package/dist/taiutc.js.map +1 -0
  307. package/dist/tcbtdb.d.ts +29 -0
  308. package/dist/tcbtdb.d.ts.map +1 -0
  309. package/dist/tcbtdb.js +51 -0
  310. package/dist/tcbtdb.js.map +1 -0
  311. package/dist/tcgtt.d.ts +18 -0
  312. package/dist/tcgtt.d.ts.map +1 -0
  313. package/dist/tcgtt.js +35 -0
  314. package/dist/tcgtt.js.map +1 -0
  315. package/dist/tdbtcb.d.ts +29 -0
  316. package/dist/tdbtcb.d.ts.map +1 -0
  317. package/dist/tdbtcb.js +55 -0
  318. package/dist/tdbtcb.js.map +1 -0
  319. package/dist/tdbtt.d.ts +27 -0
  320. package/dist/tdbtt.d.ts.map +1 -0
  321. package/dist/tdbtt.js +43 -0
  322. package/dist/tdbtt.js.map +1 -0
  323. package/dist/tf2a.d.ts +19 -0
  324. package/dist/tf2a.d.ts.map +1 -0
  325. package/dist/tf2a.js +34 -0
  326. package/dist/tf2a.js.map +1 -0
  327. package/dist/tr.d.ts +9 -0
  328. package/dist/tr.d.ts.map +1 -0
  329. package/dist/tr.js +22 -0
  330. package/dist/tr.js.map +1 -0
  331. package/dist/trxp.d.ts +10 -0
  332. package/dist/trxp.d.ts.map +1 -0
  333. package/dist/trxp.js +15 -0
  334. package/dist/trxp.js.map +1 -0
  335. package/dist/tttai.d.ts +19 -0
  336. package/dist/tttai.d.ts.map +1 -0
  337. package/dist/tttai.js +36 -0
  338. package/dist/tttai.js.map +1 -0
  339. package/dist/tttcg.d.ts +18 -0
  340. package/dist/tttcg.d.ts.map +1 -0
  341. package/dist/tttcg.js +37 -0
  342. package/dist/tttcg.js.map +1 -0
  343. package/dist/tttdb.d.ts +27 -0
  344. package/dist/tttdb.d.ts.map +1 -0
  345. package/dist/tttdb.js +43 -0
  346. package/dist/tttdb.js.map +1 -0
  347. package/dist/ttut1.d.ts +19 -0
  348. package/dist/ttut1.d.ts.map +1 -0
  349. package/dist/ttut1.js +35 -0
  350. package/dist/ttut1.js.map +1 -0
  351. package/dist/ut1tai.d.ts +20 -0
  352. package/dist/ut1tai.d.ts.map +1 -0
  353. package/dist/ut1tai.js +36 -0
  354. package/dist/ut1tai.js.map +1 -0
  355. package/dist/ut1tt.d.ts +19 -0
  356. package/dist/ut1tt.d.ts.map +1 -0
  357. package/dist/ut1tt.js +35 -0
  358. package/dist/ut1tt.js.map +1 -0
  359. package/dist/ut1utc.d.ts +35 -0
  360. package/dist/ut1utc.d.ts.map +1 -0
  361. package/dist/ut1utc.js +107 -0
  362. package/dist/ut1utc.js.map +1 -0
  363. package/dist/utctai.d.ts +33 -0
  364. package/dist/utctai.d.ts.map +1 -0
  365. package/dist/utctai.js +94 -0
  366. package/dist/utctai.js.map +1 -0
  367. package/dist/utcut1.d.ts +34 -0
  368. package/dist/utcut1.d.ts.map +1 -0
  369. package/dist/utcut1.js +63 -0
  370. package/dist/utcut1.js.map +1 -0
  371. package/dist/zp.d.ts +8 -0
  372. package/dist/zp.d.ts.map +1 -0
  373. package/dist/zp.js +9 -0
  374. package/dist/zp.js.map +1 -0
  375. package/dist/zpv.d.ts +8 -0
  376. package/dist/zpv.d.ts.map +1 -0
  377. package/dist/zpv.js +10 -0
  378. package/dist/zpv.js.map +1 -0
  379. package/dist/zr.d.ts +9 -0
  380. package/dist/zr.d.ts.map +1 -0
  381. package/dist/zr.js +14 -0
  382. package/dist/zr.js.map +1 -0
  383. package/package.json +42 -3
  384. package/src/a2af.ts +48 -0
  385. package/src/a2tf.ts +45 -0
  386. package/src/af2a.ts +38 -0
  387. package/src/anp.ts +15 -0
  388. package/src/anpm.ts +15 -0
  389. package/src/bi00.ts +42 -0
  390. package/src/bp06.ts +51 -0
  391. package/src/c2s.ts +23 -0
  392. package/src/cal2jd.ts +67 -0
  393. package/src/constants.ts +60 -0
  394. package/src/cp.ts +12 -0
  395. package/src/cpv.ts +13 -0
  396. package/src/cr.ts +13 -0
  397. package/src/d2dtf.ts +153 -0
  398. package/src/d2tf.ts +87 -0
  399. package/src/dat.ts +186 -0
  400. package/src/datini.ts +49 -0
  401. package/src/dtdb.ts +1110 -0
  402. package/src/dtf2d.ts +124 -0
  403. package/src/eceq06.ts +54 -0
  404. package/src/ecm06.ts +51 -0
  405. package/src/epb.ts +31 -0
  406. package/src/epb2jd.ts +21 -0
  407. package/src/epj.ts +30 -0
  408. package/src/epj2jd.ts +21 -0
  409. package/src/eqec06.ts +54 -0
  410. package/src/era00.ts +54 -0
  411. package/src/fw2m.ts +64 -0
  412. package/src/g2icrs.ts +74 -0
  413. package/src/gmst06.ts +51 -0
  414. package/src/icrs2g.ts +74 -0
  415. package/src/index.ts +108 -0
  416. package/src/internal.ts +46 -0
  417. package/src/ir.ts +16 -0
  418. package/src/jd2cal.ts +117 -0
  419. package/src/jdcalf.ts +93 -0
  420. package/src/leap-seconds.ts +47 -0
  421. package/src/obl06.ts +34 -0
  422. package/src/pap.ts +54 -0
  423. package/src/pas.ts +25 -0
  424. package/src/pdp.ts +11 -0
  425. package/src/pfw06.ts +78 -0
  426. package/src/pm.ts +11 -0
  427. package/src/pmat06.ts +37 -0
  428. package/src/pmp.ts +13 -0
  429. package/src/pmpx.ts +75 -0
  430. package/src/pmsafe.ts +109 -0
  431. package/src/pn.ts +26 -0
  432. package/src/ppp.ts +13 -0
  433. package/src/ppsp.ts +20 -0
  434. package/src/pv2s.ts +71 -0
  435. package/src/pvdpv.ts +30 -0
  436. package/src/pvm.ts +19 -0
  437. package/src/pvmpv.ts +14 -0
  438. package/src/pvppv.ts +14 -0
  439. package/src/pvstar.ts +113 -0
  440. package/src/pvu.ts +20 -0
  441. package/src/pvxpv.ts +33 -0
  442. package/src/pxp.ts +17 -0
  443. package/src/rx.ts +32 -0
  444. package/src/rxp.ts +24 -0
  445. package/src/rxr.ts +29 -0
  446. package/src/ry.ts +32 -0
  447. package/src/rz.ts +32 -0
  448. package/src/s2c.ts +14 -0
  449. package/src/s2pv.ts +30 -0
  450. package/src/s2xpv.ts +15 -0
  451. package/src/sepp.ts +28 -0
  452. package/src/seps.ts +20 -0
  453. package/src/starpm.ts +108 -0
  454. package/src/starpv.ts +167 -0
  455. package/src/sxp.ts +13 -0
  456. package/src/sxpv.ts +14 -0
  457. package/src/taitt.ts +38 -0
  458. package/src/taiut1.ts +41 -0
  459. package/src/taiutc.ts +76 -0
  460. package/src/tcbtdb.ts +54 -0
  461. package/src/tcgtt.ts +37 -0
  462. package/src/tdbtcb.ts +59 -0
  463. package/src/tdbtt.ts +48 -0
  464. package/src/tf2a.ts +38 -0
  465. package/src/tr.ts +24 -0
  466. package/src/trxp.ts +18 -0
  467. package/src/tttai.ts +38 -0
  468. package/src/tttcg.ts +40 -0
  469. package/src/tttdb.ts +48 -0
  470. package/src/ttut1.ts +40 -0
  471. package/src/ut1tai.ts +41 -0
  472. package/src/ut1tt.ts +40 -0
  473. package/src/ut1utc.ts +115 -0
  474. package/src/utctai.ts +97 -0
  475. package/src/utcut1.ts +66 -0
  476. package/src/zp.ts +11 -0
  477. package/src/zpv.ts +12 -0
  478. package/src/zr.ts +16 -0
package/dist/taiut1.js ADDED
@@ -0,0 +1,36 @@
1
+ // Translated from ERFA 2.0.1 eraTaiut1 (taiut1.c); see LICENSE.
2
+ import { DAYSEC } from './constants.js';
3
+ /**
4
+ * Time scale transformation: International Atomic Time, TAI, to Universal Time, UT1.
5
+ *
6
+ * Notes:
7
+ * 1. tai1+tai2 is Julian Date, apportioned in any convenient way between the two arguments,
8
+ * for example where tai1 is the Julian Day Number and tai2 is the fraction of a day. The
9
+ * returned ut11,ut12 follow suit.
10
+ * 2. The argument dta, i.e. UT1-TAI, is an observed quantity, and is available from IERS
11
+ * tabulations.
12
+ *
13
+ * Reference: Explanatory Supplement to the Astronomical Almanac, P. Kenneth Seidelmann
14
+ * (ed), University Science Books (1992)
15
+ *
16
+ * @param tai1 TAI as a 2-part Julian Date
17
+ * @param tai2 TAI as a 2-part Julian Date
18
+ * @param dta UT1-TAI in seconds
19
+ * @returns [ut11, ut12, status]: UT1 as a 2-part Julian Date, and status: 0 = OK
20
+ */
21
+ export function taiut1(tai1, tai2, dta) {
22
+ let ut11, ut12;
23
+ // Result, safeguarding precision.
24
+ const dtad = dta / DAYSEC;
25
+ if (Math.abs(tai1) > Math.abs(tai2)) {
26
+ ut11 = tai1;
27
+ ut12 = tai2 + dtad;
28
+ }
29
+ else {
30
+ ut11 = tai1 + dtad;
31
+ ut12 = tai2;
32
+ }
33
+ // Status (always OK).
34
+ return [ut11, ut12, 0];
35
+ }
36
+ //# sourceMappingURL=taiut1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiut1.js","sourceRoot":"","sources":["../src/taiut1.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,MAAM,CACpB,IAAY,EACZ,IAAY,EACZ,GAAW;IAEX,IAAI,IAAY,EAAE,IAAY,CAAA;IAE9B,kCAAkC;IAClC,MAAM,IAAI,GAAG,GAAG,GAAG,MAAM,CAAA;IACzB,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,IAAI,GAAG,IAAI,CAAA;QACX,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACpB,CAAC;SAAM,CAAC;QACN,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;QAClB,IAAI,GAAG,IAAI,CAAA;IACb,CAAC;IAED,sBAAsB;IACtB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AACxB,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Time scale transformation: International Atomic Time, TAI, to Coordinated Universal Time,
3
+ * UTC.
4
+ *
5
+ * Notes:
6
+ * 1. tai1+tai2 is Julian Date, apportioned in any convenient way between the two arguments,
7
+ * for example where tai1 is the Julian Day Number and tai2 is the fraction of a day. The
8
+ * returned utc1 and utc2 form an analogous pair, except that a special convention is
9
+ * used, to deal with the problem of leap seconds - see the next note.
10
+ * 2. JD cannot unambiguously represent UTC during a leap second unless special measures are
11
+ * taken. The convention in the present function is that the JD day represents UTC days
12
+ * whether the length is 86399, 86400 or 86401 SI seconds. In the 1960-1972 era there
13
+ * were smaller jumps (in either direction) each time the linear UTC(TAI) expression was
14
+ * changed, and these "mini-leaps" are also included in the ERFA convention.
15
+ * 3. The function d2dtf can be used to transform the UTC quasi-JD into calendar date and
16
+ * clock time, including UTC leap second handling.
17
+ * 4. The warning status "dubious year" flags UTCs that predate the introduction of the time
18
+ * scale or that are too far in the future to be trusted. See dat for further details.
19
+ * 5. Where the status is negative, utc1 and utc2 are NaN.
20
+ *
21
+ * References:
22
+ * - McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003), IERS Technical Note No. 32,
23
+ * BKG (2004)
24
+ * - Explanatory Supplement to the Astronomical Almanac, P. Kenneth Seidelmann (ed),
25
+ * University Science Books (1992)
26
+ *
27
+ * @param tai1 TAI as a 2-part Julian Date (Note 1)
28
+ * @param tai2 TAI as a 2-part Julian Date (Note 1)
29
+ * @returns [utc1, utc2, status]: UTC as a 2-part quasi Julian Date (Notes 1-3), and status:
30
+ * +1 = dubious year (Note 4), 0 = OK, -1 = unacceptable date
31
+ */
32
+ export declare function taiutc(tai1: number, tai2: number): [utc1: number, utc2: number, status: number];
33
+ //# sourceMappingURL=taiutc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiutc.d.ts","sourceRoot":"","sources":["../src/taiutc.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAyC/F"}
package/dist/taiutc.js ADDED
@@ -0,0 +1,73 @@
1
+ // Translated from ERFA 2.0.1 eraTaiutc (taiutc.c); see LICENSE.
2
+ import { utctai } from './utctai.js';
3
+ /**
4
+ * Time scale transformation: International Atomic Time, TAI, to Coordinated Universal Time,
5
+ * UTC.
6
+ *
7
+ * Notes:
8
+ * 1. tai1+tai2 is Julian Date, apportioned in any convenient way between the two arguments,
9
+ * for example where tai1 is the Julian Day Number and tai2 is the fraction of a day. The
10
+ * returned utc1 and utc2 form an analogous pair, except that a special convention is
11
+ * used, to deal with the problem of leap seconds - see the next note.
12
+ * 2. JD cannot unambiguously represent UTC during a leap second unless special measures are
13
+ * taken. The convention in the present function is that the JD day represents UTC days
14
+ * whether the length is 86399, 86400 or 86401 SI seconds. In the 1960-1972 era there
15
+ * were smaller jumps (in either direction) each time the linear UTC(TAI) expression was
16
+ * changed, and these "mini-leaps" are also included in the ERFA convention.
17
+ * 3. The function d2dtf can be used to transform the UTC quasi-JD into calendar date and
18
+ * clock time, including UTC leap second handling.
19
+ * 4. The warning status "dubious year" flags UTCs that predate the introduction of the time
20
+ * scale or that are too far in the future to be trusted. See dat for further details.
21
+ * 5. Where the status is negative, utc1 and utc2 are NaN.
22
+ *
23
+ * References:
24
+ * - McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003), IERS Technical Note No. 32,
25
+ * BKG (2004)
26
+ * - Explanatory Supplement to the Astronomical Almanac, P. Kenneth Seidelmann (ed),
27
+ * University Science Books (1992)
28
+ *
29
+ * @param tai1 TAI as a 2-part Julian Date (Note 1)
30
+ * @param tai2 TAI as a 2-part Julian Date (Note 1)
31
+ * @returns [utc1, utc2, status]: UTC as a 2-part quasi Julian Date (Notes 1-3), and status:
32
+ * +1 = dubious year (Note 4), 0 = OK, -1 = unacceptable date
33
+ */
34
+ export function taiutc(tai1, tai2) {
35
+ let a1, a2, utc1, utc2;
36
+ let j = 0;
37
+ // Put the two parts of the TAI into big-first order.
38
+ const big1 = Math.abs(tai1) >= Math.abs(tai2);
39
+ if (big1) {
40
+ a1 = tai1;
41
+ a2 = tai2;
42
+ }
43
+ else {
44
+ a1 = tai2;
45
+ a2 = tai1;
46
+ }
47
+ // Initial guess for UTC.
48
+ const u1 = a1;
49
+ let u2 = a2;
50
+ // Iterate (though in most cases just once is enough).
51
+ for (let i = 0; i < 3; i++) {
52
+ // Guessed UTC to TAI.
53
+ const [g1, g2, jg] = utctai(u1, u2);
54
+ j = jg;
55
+ if (j < 0)
56
+ return [NaN, NaN, j];
57
+ // Adjust guessed UTC.
58
+ u2 += a1 - g1;
59
+ u2 += a2 - g2;
60
+ }
61
+ // Return the UTC result, preserving the TAI order.
62
+ if (big1) {
63
+ utc1 = u1;
64
+ utc2 = u2;
65
+ }
66
+ else {
67
+ utc1 = u2;
68
+ utc2 = u1;
69
+ }
70
+ // Status.
71
+ return [utc1, utc2, j];
72
+ }
73
+ //# sourceMappingURL=taiutc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiutc.js","sourceRoot":"","sources":["../src/taiutc.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,UAAU,MAAM,CAAC,IAAY,EAAE,IAAY;IAC/C,IAAI,EAAU,EAAE,EAAU,EAAE,IAAY,EAAE,IAAY,CAAA;IACtD,IAAI,CAAC,GAAG,CAAC,CAAA;IAET,qDAAqD;IACrD,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAC7C,IAAI,IAAI,EAAE,CAAC;QACT,EAAE,GAAG,IAAI,CAAA;QACT,EAAE,GAAG,IAAI,CAAA;IACX,CAAC;SAAM,CAAC;QACN,EAAE,GAAG,IAAI,CAAA;QACT,EAAE,GAAG,IAAI,CAAA;IACX,CAAC;IAED,yBAAyB;IACzB,MAAM,EAAE,GAAG,EAAE,CAAA;IACb,IAAI,EAAE,GAAG,EAAE,CAAA;IAEX,sDAAsD;IACtD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3B,sBAAsB;QACtB,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;QACnC,CAAC,GAAG,EAAE,CAAA;QACN,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;QAE/B,sBAAsB;QACtB,EAAE,IAAI,EAAE,GAAG,EAAE,CAAA;QACb,EAAE,IAAI,EAAE,GAAG,EAAE,CAAA;IACf,CAAC;IAED,mDAAmD;IACnD,IAAI,IAAI,EAAE,CAAC;QACT,IAAI,GAAG,EAAE,CAAA;QACT,IAAI,GAAG,EAAE,CAAA;IACX,CAAC;SAAM,CAAC;QACN,IAAI,GAAG,EAAE,CAAA;QACT,IAAI,GAAG,EAAE,CAAA;IACX,CAAC;IAED,UAAU;IACV,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AACxB,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Time scale transformation: Barycentric Coordinate Time, TCB, to Barycentric Dynamical
3
+ * Time, TDB.
4
+ *
5
+ * Notes:
6
+ * 1. tcb1+tcb2 is Julian Date, apportioned in any convenient way between the two arguments,
7
+ * for example where tcb1 is the Julian Day Number and tcb2 is the fraction of a day. The
8
+ * returned tdb1,tdb2 follow suit.
9
+ * 2. The 2006 IAU General Assembly introduced a conventional linear transformation between
10
+ * TDB and TCB. This transformation compensates for the drift between TCB and terrestrial
11
+ * time TT, and keeps TDB approximately centered on TT. Because the relationship between
12
+ * TT and TCB depends on the adopted solar system ephemeris, the degree of alignment
13
+ * between TDB and TT over long intervals will vary according to which ephemeris is used.
14
+ * Former definitions of TDB attempted to avoid this problem by stipulating that TDB and
15
+ * TT should differ only by periodic effects. This is a good description of the nature of
16
+ * the relationship but eluded precise mathematical formulation. The conventional linear
17
+ * relationship adopted in 2006 sidestepped these difficulties whilst delivering a TDB
18
+ * that in practice was consistent with values before that date.
19
+ * 3. TDB is essentially the same as Teph, the time argument for the JPL solar system
20
+ * ephemerides.
21
+ *
22
+ * Reference: IAU 2006 Resolution B3
23
+ *
24
+ * @param tcb1 TCB as a 2-part Julian Date
25
+ * @param tcb2 TCB as a 2-part Julian Date
26
+ * @returns [tdb1, tdb2, status]: TDB as a 2-part Julian Date, and status: 0 = OK
27
+ */
28
+ export declare function tcbtdb(tcb1: number, tcb2: number): [tdb1: number, tdb2: number, status: number];
29
+ //# sourceMappingURL=tcbtdb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tcbtdb.d.ts","sourceRoot":"","sources":["../src/tcbtdb.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAgB/F"}
package/dist/tcbtdb.js ADDED
@@ -0,0 +1,51 @@
1
+ // Translated from ERFA 2.0.1 eraTcbtdb (tcbtdb.c); see LICENSE.
2
+ import { DAYSEC, DJM0, DJM77, ELB, TDB0, TTMTAI } from './constants.js';
3
+ // 1977 Jan 1 00:00:32.184 TT, as two-part JD
4
+ const t77td = DJM0 + DJM77;
5
+ const t77tf = TTMTAI / DAYSEC;
6
+ // TDB (days) at TAI 1977 Jan 1.0
7
+ const tdb0 = TDB0 / DAYSEC;
8
+ /**
9
+ * Time scale transformation: Barycentric Coordinate Time, TCB, to Barycentric Dynamical
10
+ * Time, TDB.
11
+ *
12
+ * Notes:
13
+ * 1. tcb1+tcb2 is Julian Date, apportioned in any convenient way between the two arguments,
14
+ * for example where tcb1 is the Julian Day Number and tcb2 is the fraction of a day. The
15
+ * returned tdb1,tdb2 follow suit.
16
+ * 2. The 2006 IAU General Assembly introduced a conventional linear transformation between
17
+ * TDB and TCB. This transformation compensates for the drift between TCB and terrestrial
18
+ * time TT, and keeps TDB approximately centered on TT. Because the relationship between
19
+ * TT and TCB depends on the adopted solar system ephemeris, the degree of alignment
20
+ * between TDB and TT over long intervals will vary according to which ephemeris is used.
21
+ * Former definitions of TDB attempted to avoid this problem by stipulating that TDB and
22
+ * TT should differ only by periodic effects. This is a good description of the nature of
23
+ * the relationship but eluded precise mathematical formulation. The conventional linear
24
+ * relationship adopted in 2006 sidestepped these difficulties whilst delivering a TDB
25
+ * that in practice was consistent with values before that date.
26
+ * 3. TDB is essentially the same as Teph, the time argument for the JPL solar system
27
+ * ephemerides.
28
+ *
29
+ * Reference: IAU 2006 Resolution B3
30
+ *
31
+ * @param tcb1 TCB as a 2-part Julian Date
32
+ * @param tcb2 TCB as a 2-part Julian Date
33
+ * @returns [tdb1, tdb2, status]: TDB as a 2-part Julian Date, and status: 0 = OK
34
+ */
35
+ export function tcbtdb(tcb1, tcb2) {
36
+ let d, tdb1, tdb2;
37
+ // Result, safeguarding precision.
38
+ if (Math.abs(tcb1) > Math.abs(tcb2)) {
39
+ d = tcb1 - t77td;
40
+ tdb1 = tcb1;
41
+ tdb2 = tcb2 + tdb0 - (d + (tcb2 - t77tf)) * ELB;
42
+ }
43
+ else {
44
+ d = tcb2 - t77td;
45
+ tdb1 = tcb1 + tdb0 - (d + (tcb1 - t77tf)) * ELB;
46
+ tdb2 = tcb2;
47
+ }
48
+ // Status (always OK).
49
+ return [tdb1, tdb2, 0];
50
+ }
51
+ //# sourceMappingURL=tcbtdb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tcbtdb.js","sourceRoot":"","sources":["../src/tcbtdb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvE,6CAA6C;AAC7C,MAAM,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;AAC1B,MAAM,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;AAE7B,iCAAiC;AACjC,MAAM,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;AAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,MAAM,CAAC,IAAY,EAAE,IAAY;IAC/C,IAAI,CAAS,EAAE,IAAY,EAAE,IAAY,CAAA;IAEzC,kCAAkC;IAClC,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;QAChB,IAAI,GAAG,IAAI,CAAA;QACX,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,GAAG,GAAG,CAAA;IACjD,CAAC;SAAM,CAAC;QACN,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;QAChB,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,GAAG,GAAG,CAAA;QAC/C,IAAI,GAAG,IAAI,CAAA;IACb,CAAC;IAED,sBAAsB;IACtB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AACxB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Time scale transformation: Geocentric Coordinate Time, TCG, to Terrestrial Time, TT.
3
+ *
4
+ * Note: tcg1+tcg2 is Julian Date, apportioned in any convenient way between the two
5
+ * arguments, for example where tcg1 is the Julian Day Number and tcg2 is the fraction of a
6
+ * day. The returned tt1,tt2 follow suit.
7
+ *
8
+ * References:
9
+ * - McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003), IERS Technical Note No. 32,
10
+ * BKG (2004)
11
+ * - IAU 2000 Resolution B1.9
12
+ *
13
+ * @param tcg1 TCG as a 2-part Julian Date
14
+ * @param tcg2 TCG as a 2-part Julian Date
15
+ * @returns [tt1, tt2, status]: TT as a 2-part Julian Date, and status: 0 = OK
16
+ */
17
+ export declare function tcgtt(tcg1: number, tcg2: number): [tt1: number, tt2: number, status: number];
18
+ //# sourceMappingURL=tcgtt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tcgtt.d.ts","sourceRoot":"","sources":["../src/tcgtt.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAc5F"}
package/dist/tcgtt.js ADDED
@@ -0,0 +1,35 @@
1
+ // Translated from ERFA 2.0.1 eraTcgtt (tcgtt.c); see LICENSE.
2
+ import { DAYSEC, DJM0, DJM77, ELG, TTMTAI } from './constants.js';
3
+ // 1977 Jan 1 00:00:32.184 TT, as MJD
4
+ const t77t = DJM77 + TTMTAI / DAYSEC;
5
+ /**
6
+ * Time scale transformation: Geocentric Coordinate Time, TCG, to Terrestrial Time, TT.
7
+ *
8
+ * Note: tcg1+tcg2 is Julian Date, apportioned in any convenient way between the two
9
+ * arguments, for example where tcg1 is the Julian Day Number and tcg2 is the fraction of a
10
+ * day. The returned tt1,tt2 follow suit.
11
+ *
12
+ * References:
13
+ * - McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003), IERS Technical Note No. 32,
14
+ * BKG (2004)
15
+ * - IAU 2000 Resolution B1.9
16
+ *
17
+ * @param tcg1 TCG as a 2-part Julian Date
18
+ * @param tcg2 TCG as a 2-part Julian Date
19
+ * @returns [tt1, tt2, status]: TT as a 2-part Julian Date, and status: 0 = OK
20
+ */
21
+ export function tcgtt(tcg1, tcg2) {
22
+ let tt1, tt2;
23
+ // Result, safeguarding precision.
24
+ if (Math.abs(tcg1) > Math.abs(tcg2)) {
25
+ tt1 = tcg1;
26
+ tt2 = tcg2 - ((tcg1 - DJM0) + (tcg2 - t77t)) * ELG;
27
+ }
28
+ else {
29
+ tt1 = tcg1 - ((tcg2 - DJM0) + (tcg1 - t77t)) * ELG;
30
+ tt2 = tcg2;
31
+ }
32
+ // OK status.
33
+ return [tt1, tt2, 0];
34
+ }
35
+ //# sourceMappingURL=tcgtt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tcgtt.js","sourceRoot":"","sources":["../src/tcgtt.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEjE,qCAAqC;AACrC,MAAM,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;AAEpC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,KAAK,CAAC,IAAY,EAAE,IAAY;IAC9C,IAAI,GAAW,EAAE,GAAW,CAAA;IAE5B,kCAAkC;IAClC,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,GAAG,GAAG,IAAI,CAAA;QACV,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAA;IACpD,CAAC;SAAM,CAAC;QACN,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,GAAG,GAAG,CAAA;QAClD,GAAG,GAAG,IAAI,CAAA;IACZ,CAAC;IAED,aAAa;IACb,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;AACtB,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Time scale transformation: Barycentric Dynamical Time, TDB, to Barycentric Coordinate
3
+ * Time, TCB.
4
+ *
5
+ * Notes:
6
+ * 1. tdb1+tdb2 is Julian Date, apportioned in any convenient way between the two arguments,
7
+ * for example where tdb1 is the Julian Day Number and tdb2 is the fraction of a day. The
8
+ * returned tcb1,tcb2 follow suit.
9
+ * 2. The 2006 IAU General Assembly introduced a conventional linear transformation between
10
+ * TDB and TCB. This transformation compensates for the drift between TCB and terrestrial
11
+ * time TT, and keeps TDB approximately centered on TT. Because the relationship between
12
+ * TT and TCB depends on the adopted solar system ephemeris, the degree of alignment
13
+ * between TDB and TT over long intervals will vary according to which ephemeris is used.
14
+ * Former definitions of TDB attempted to avoid this problem by stipulating that TDB and
15
+ * TT should differ only by periodic effects. This is a good description of the nature of
16
+ * the relationship but eluded precise mathematical formulation. The conventional linear
17
+ * relationship adopted in 2006 sidestepped these difficulties whilst delivering a TDB
18
+ * that in practice was consistent with values before that date.
19
+ * 3. TDB is essentially the same as Teph, the time argument for the JPL solar system
20
+ * ephemerides.
21
+ *
22
+ * Reference: IAU 2006 Resolution B3
23
+ *
24
+ * @param tdb1 TDB as a 2-part Julian Date
25
+ * @param tdb2 TDB as a 2-part Julian Date
26
+ * @returns [tcb1, tcb2, status]: TCB as a 2-part Julian Date, and status: 0 = OK
27
+ */
28
+ export declare function tdbtcb(tdb1: number, tdb2: number): [tcb1: number, tcb2: number, status: number];
29
+ //# sourceMappingURL=tdbtcb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tdbtcb.d.ts","sourceRoot":"","sources":["../src/tdbtcb.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAkB/F"}
package/dist/tdbtcb.js ADDED
@@ -0,0 +1,55 @@
1
+ // Translated from ERFA 2.0.1 eraTdbtcb (tdbtcb.c); see LICENSE.
2
+ import { DAYSEC, DJM0, DJM77, ELB, TDB0, TTMTAI } from './constants.js';
3
+ // 1977 Jan 1 00:00:32.184 TT, as two-part JD
4
+ const t77td = DJM0 + DJM77;
5
+ const t77tf = TTMTAI / DAYSEC;
6
+ // TDB (days) at TAI 1977 Jan 1.0
7
+ const tdb0 = TDB0 / DAYSEC;
8
+ // TDB to TCB rate
9
+ const elbb = ELB / (1.0 - ELB);
10
+ /**
11
+ * Time scale transformation: Barycentric Dynamical Time, TDB, to Barycentric Coordinate
12
+ * Time, TCB.
13
+ *
14
+ * Notes:
15
+ * 1. tdb1+tdb2 is Julian Date, apportioned in any convenient way between the two arguments,
16
+ * for example where tdb1 is the Julian Day Number and tdb2 is the fraction of a day. The
17
+ * returned tcb1,tcb2 follow suit.
18
+ * 2. The 2006 IAU General Assembly introduced a conventional linear transformation between
19
+ * TDB and TCB. This transformation compensates for the drift between TCB and terrestrial
20
+ * time TT, and keeps TDB approximately centered on TT. Because the relationship between
21
+ * TT and TCB depends on the adopted solar system ephemeris, the degree of alignment
22
+ * between TDB and TT over long intervals will vary according to which ephemeris is used.
23
+ * Former definitions of TDB attempted to avoid this problem by stipulating that TDB and
24
+ * TT should differ only by periodic effects. This is a good description of the nature of
25
+ * the relationship but eluded precise mathematical formulation. The conventional linear
26
+ * relationship adopted in 2006 sidestepped these difficulties whilst delivering a TDB
27
+ * that in practice was consistent with values before that date.
28
+ * 3. TDB is essentially the same as Teph, the time argument for the JPL solar system
29
+ * ephemerides.
30
+ *
31
+ * Reference: IAU 2006 Resolution B3
32
+ *
33
+ * @param tdb1 TDB as a 2-part Julian Date
34
+ * @param tdb2 TDB as a 2-part Julian Date
35
+ * @returns [tcb1, tcb2, status]: TCB as a 2-part Julian Date, and status: 0 = OK
36
+ */
37
+ export function tdbtcb(tdb1, tdb2) {
38
+ let d, f, tcb1, tcb2;
39
+ // Result, preserving date format but safeguarding precision.
40
+ if (Math.abs(tdb1) > Math.abs(tdb2)) {
41
+ d = t77td - tdb1;
42
+ f = tdb2 - tdb0;
43
+ tcb1 = tdb1;
44
+ tcb2 = f - (d - (f - t77tf)) * elbb;
45
+ }
46
+ else {
47
+ d = t77td - tdb2;
48
+ f = tdb1 - tdb0;
49
+ tcb1 = f - (d - (f - t77tf)) * elbb;
50
+ tcb2 = tdb2;
51
+ }
52
+ // Status (always OK).
53
+ return [tcb1, tcb2, 0];
54
+ }
55
+ //# sourceMappingURL=tdbtcb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tdbtcb.js","sourceRoot":"","sources":["../src/tdbtcb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvE,6CAA6C;AAC7C,MAAM,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;AAC1B,MAAM,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;AAE7B,iCAAiC;AACjC,MAAM,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;AAE1B,kBAAkB;AAClB,MAAM,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAA;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,MAAM,CAAC,IAAY,EAAE,IAAY;IAC/C,IAAI,CAAS,EAAE,CAAS,EAAE,IAAY,EAAE,IAAY,CAAA;IAEpD,6DAA6D;IAC7D,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAA;QAChB,CAAC,GAAG,IAAI,GAAG,IAAI,CAAA;QACf,IAAI,GAAG,IAAI,CAAA;QACX,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CAAA;IACrC,CAAC;SAAM,CAAC;QACN,CAAC,GAAG,KAAK,GAAG,IAAI,CAAA;QAChB,CAAC,GAAG,IAAI,GAAG,IAAI,CAAA;QACf,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CAAA;QACnC,IAAI,GAAG,IAAI,CAAA;IACb,CAAC;IAED,sBAAsB;IACtB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AACxB,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Time scale transformation: Barycentric Dynamical Time, TDB, to Terrestrial Time, TT.
3
+ *
4
+ * Notes:
5
+ * 1. tdb1+tdb2 is Julian Date, apportioned in any convenient way between the two arguments,
6
+ * for example where tdb1 is the Julian Day Number and tdb2 is the fraction of a day. The
7
+ * returned tt1,tt2 follow suit.
8
+ * 2. The argument dtr represents the quasi-periodic component of the GR transformation
9
+ * between TT and TCB. It is dependent upon the adopted solar-system ephemeris, and can be
10
+ * obtained by numerical integration, by interrogating a precomputed time ephemeris or by
11
+ * evaluating a model such as that implemented in the ERFA function dtdb. The quantity is
12
+ * dominated by an annual term of 1.7 ms amplitude.
13
+ * 3. TDB is essentially the same as Teph, the time argument for the JPL solar system
14
+ * ephemerides.
15
+ *
16
+ * References:
17
+ * - McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003), IERS Technical Note No. 32,
18
+ * BKG (2004)
19
+ * - IAU 2006 Resolution 3
20
+ *
21
+ * @param tdb1 TDB as a 2-part Julian Date
22
+ * @param tdb2 TDB as a 2-part Julian Date
23
+ * @param dtr TDB-TT in seconds
24
+ * @returns [tt1, tt2, status]: TT as a 2-part Julian Date, and status: 0 = OK
25
+ */
26
+ export declare function tdbtt(tdb1: number, tdb2: number, dtr: number): [tt1: number, tt2: number, status: number];
27
+ //# sourceMappingURL=tdbtt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tdbtt.d.ts","sourceRoot":"","sources":["../src/tdbtt.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAe5C"}
package/dist/tdbtt.js ADDED
@@ -0,0 +1,43 @@
1
+ // Translated from ERFA 2.0.1 eraTdbtt (tdbtt.c); see LICENSE.
2
+ import { DAYSEC } from './constants.js';
3
+ /**
4
+ * Time scale transformation: Barycentric Dynamical Time, TDB, to Terrestrial Time, TT.
5
+ *
6
+ * Notes:
7
+ * 1. tdb1+tdb2 is Julian Date, apportioned in any convenient way between the two arguments,
8
+ * for example where tdb1 is the Julian Day Number and tdb2 is the fraction of a day. The
9
+ * returned tt1,tt2 follow suit.
10
+ * 2. The argument dtr represents the quasi-periodic component of the GR transformation
11
+ * between TT and TCB. It is dependent upon the adopted solar-system ephemeris, and can be
12
+ * obtained by numerical integration, by interrogating a precomputed time ephemeris or by
13
+ * evaluating a model such as that implemented in the ERFA function dtdb. The quantity is
14
+ * dominated by an annual term of 1.7 ms amplitude.
15
+ * 3. TDB is essentially the same as Teph, the time argument for the JPL solar system
16
+ * ephemerides.
17
+ *
18
+ * References:
19
+ * - McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003), IERS Technical Note No. 32,
20
+ * BKG (2004)
21
+ * - IAU 2006 Resolution 3
22
+ *
23
+ * @param tdb1 TDB as a 2-part Julian Date
24
+ * @param tdb2 TDB as a 2-part Julian Date
25
+ * @param dtr TDB-TT in seconds
26
+ * @returns [tt1, tt2, status]: TT as a 2-part Julian Date, and status: 0 = OK
27
+ */
28
+ export function tdbtt(tdb1, tdb2, dtr) {
29
+ let tt1, tt2;
30
+ // Result, safeguarding precision.
31
+ const dtrd = dtr / DAYSEC;
32
+ if (Math.abs(tdb1) > Math.abs(tdb2)) {
33
+ tt1 = tdb1;
34
+ tt2 = tdb2 - dtrd;
35
+ }
36
+ else {
37
+ tt1 = tdb1 - dtrd;
38
+ tt2 = tdb2;
39
+ }
40
+ // Status (always OK).
41
+ return [tt1, tt2, 0];
42
+ }
43
+ //# sourceMappingURL=tdbtt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tdbtt.js","sourceRoot":"","sources":["../src/tdbtt.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,KAAK,CACnB,IAAY,EACZ,IAAY,EACZ,GAAW;IAEX,IAAI,GAAW,EAAE,GAAW,CAAA;IAE5B,kCAAkC;IAClC,MAAM,IAAI,GAAG,GAAG,GAAG,MAAM,CAAA;IACzB,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,GAAG,GAAG,IAAI,CAAA;QACV,GAAG,GAAG,IAAI,GAAG,IAAI,CAAA;IACnB,CAAC;SAAM,CAAC;QACN,GAAG,GAAG,IAAI,GAAG,IAAI,CAAA;QACjB,GAAG,GAAG,IAAI,CAAA;IACZ,CAAC;IAED,sBAAsB;IACtB,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;AACtB,CAAC"}
package/dist/tf2a.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Convert hours, minutes, seconds to radians.
3
+ *
4
+ * Notes:
5
+ * 1. The result is computed even if any of the range checks fail.
6
+ * 2. Negative ihour, imin and/or sec produce a warning status, but the absolute value is
7
+ * used in the conversion.
8
+ * 3. If there are multiple errors, the status value reflects only the first, the smallest
9
+ * taking precedence.
10
+ *
11
+ * @param s sign: '-' = negative, otherwise positive
12
+ * @param ihour hours (an integer in C)
13
+ * @param imin minutes (an integer in C)
14
+ * @param sec seconds
15
+ * @returns [rad, status]: angle in radians, and status: 0 = OK, 1 = ihour outside range
16
+ * 0-23, 2 = imin outside range 0-59, 3 = sec outside range 0-59.999...
17
+ */
18
+ export declare function tf2a(s: string, ihour: number, imin: number, sec: number): [rad: number, status: number];
19
+ //# sourceMappingURL=tf2a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tf2a.d.ts","sourceRoot":"","sources":["../src/tf2a.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,IAAI,CAClB,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAY/B"}
package/dist/tf2a.js ADDED
@@ -0,0 +1,34 @@
1
+ // Translated from ERFA 2.0.1 eraTf2a (tf2a.c); see LICENSE.
2
+ import { DS2R } from './constants.js';
3
+ /**
4
+ * Convert hours, minutes, seconds to radians.
5
+ *
6
+ * Notes:
7
+ * 1. The result is computed even if any of the range checks fail.
8
+ * 2. Negative ihour, imin and/or sec produce a warning status, but the absolute value is
9
+ * used in the conversion.
10
+ * 3. If there are multiple errors, the status value reflects only the first, the smallest
11
+ * taking precedence.
12
+ *
13
+ * @param s sign: '-' = negative, otherwise positive
14
+ * @param ihour hours (an integer in C)
15
+ * @param imin minutes (an integer in C)
16
+ * @param sec seconds
17
+ * @returns [rad, status]: angle in radians, and status: 0 = OK, 1 = ihour outside range
18
+ * 0-23, 2 = imin outside range 0-59, 3 = sec outside range 0-59.999...
19
+ */
20
+ export function tf2a(s, ihour, imin, sec) {
21
+ // Compute the interval.
22
+ const rad = (s === '-' ? -1.0 : 1.0) *
23
+ (60.0 * (60.0 * Math.abs(ihour) + Math.abs(imin)) + Math.abs(sec)) *
24
+ DS2R;
25
+ // Validate arguments and return status.
26
+ if (ihour < 0 || ihour > 23)
27
+ return [rad, 1];
28
+ if (imin < 0 || imin > 59)
29
+ return [rad, 2];
30
+ if (sec < 0.0 || sec >= 60.0)
31
+ return [rad, 3];
32
+ return [rad, 0];
33
+ }
34
+ //# sourceMappingURL=tf2a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tf2a.js","sourceRoot":"","sources":["../src/tf2a.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAErC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,IAAI,CAClB,CAAS,EACT,KAAa,EACb,IAAY,EACZ,GAAW;IAEX,wBAAwB;IACxB,MAAM,GAAG,GACP,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QACxB,CAAC,IAAI,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAClE,IAAI,CAAA;IAEN,wCAAwC;IACxC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,EAAE;QAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;IAC5C,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,EAAE;QAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;IAC1C,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,IAAI;QAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;IAC7C,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;AACjB,CAAC"}
package/dist/tr.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import type { Mat3 } from './internal.ts';
2
+ /**
3
+ * Transpose an r-matrix.
4
+ *
5
+ * @param r r-matrix
6
+ * @returns rt: transpose
7
+ */
8
+ export declare function tr(r: Mat3): Mat3;
9
+ //# sourceMappingURL=tr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../src/tr.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEzC;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,CAahC"}
package/dist/tr.js ADDED
@@ -0,0 +1,22 @@
1
+ // Translated from ERFA 2.0.1 eraTr (tr.c); see LICENSE.
2
+ import { cr } from './cr.js';
3
+ /**
4
+ * Transpose an r-matrix.
5
+ *
6
+ * @param r r-matrix
7
+ * @returns rt: transpose
8
+ */
9
+ export function tr(r) {
10
+ const wm = [
11
+ [0.0, 0.0, 0.0],
12
+ [0.0, 0.0, 0.0],
13
+ [0.0, 0.0, 0.0],
14
+ ];
15
+ for (let i = 0; i < 3; i++) {
16
+ for (let j = 0; j < 3; j++) {
17
+ wm[i][j] = r[j][i];
18
+ }
19
+ }
20
+ return cr(wm);
21
+ }
22
+ //# sourceMappingURL=tr.js.map
package/dist/tr.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tr.js","sourceRoot":"","sources":["../src/tr.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAG5B;;;;;GAKG;AACH,MAAM,UAAU,EAAE,CAAC,CAAO;IACxB,MAAM,EAAE,GAAmF;QACzF,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;QACf,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;QACf,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;KAChB,CAAA;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3B,EAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAA;QACvB,CAAC;IACH,CAAC;IACD,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;AACf,CAAC"}
package/dist/trxp.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import type { Mat3, Vec3 } from './internal.ts';
2
+ /**
3
+ * Multiply a p-vector by the transpose of an r-matrix.
4
+ *
5
+ * @param r r-matrix
6
+ * @param p p-vector
7
+ * @returns trp: r^T * p
8
+ */
9
+ export declare function trxp(r: Mat3, p: Vec3): Vec3;
10
+ //# sourceMappingURL=trxp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trxp.d.ts","sourceRoot":"","sources":["../src/trxp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAI/C;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAK3C"}
package/dist/trxp.js ADDED
@@ -0,0 +1,15 @@
1
+ import { rxp } from './rxp.js';
2
+ import { tr } from './tr.js';
3
+ /**
4
+ * Multiply a p-vector by the transpose of an r-matrix.
5
+ *
6
+ * @param r r-matrix
7
+ * @param p p-vector
8
+ * @returns trp: r^T * p
9
+ */
10
+ export function trxp(r, p) {
11
+ // ERFA's local tr, renamed: tr is the function.
12
+ const rt = tr(r);
13
+ return rxp(rt, p);
14
+ }
15
+ //# sourceMappingURL=trxp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trxp.js","sourceRoot":"","sources":["../src/trxp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAE5B;;;;;;GAMG;AACH,MAAM,UAAU,IAAI,CAAC,CAAO,EAAE,CAAO;IACnC,gDAAgD;IAChD,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAA;IAEhB,OAAO,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AACnB,CAAC"}