@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.
- package/LICENSE +56 -0
- package/README.md +109 -2
- package/dist/a2af.d.ts +36 -0
- package/dist/a2af.d.ts.map +1 -0
- package/dist/a2af.js +44 -0
- package/dist/a2af.js.map +1 -0
- package/dist/a2tf.d.ts +36 -0
- package/dist/a2tf.d.ts.map +1 -0
- package/dist/a2tf.js +42 -0
- package/dist/a2tf.js.map +1 -0
- package/dist/af2a.d.ts +19 -0
- package/dist/af2a.d.ts.map +1 -0
- package/dist/af2a.js +34 -0
- package/dist/af2a.js.map +1 -0
- package/dist/anp.d.ts +8 -0
- package/dist/anp.d.ts.map +1 -0
- package/dist/anp.js +16 -0
- package/dist/anp.js.map +1 -0
- package/dist/anpm.d.ts +8 -0
- package/dist/anpm.d.ts.map +1 -0
- package/dist/anpm.js +16 -0
- package/dist/anpm.js.map +1 -0
- package/dist/bi00.d.ts +27 -0
- package/dist/bi00.d.ts.map +1 -0
- package/dist/bi00.js +40 -0
- package/dist/bi00.js.map +1 -0
- package/dist/bp06.d.ts +27 -0
- package/dist/bp06.d.ts.map +1 -0
- package/dist/bp06.js +46 -0
- package/dist/bp06.js.map +1 -0
- package/dist/c2s.d.ts +14 -0
- package/dist/c2s.d.ts.map +1 -0
- package/dist/c2s.js +21 -0
- package/dist/c2s.js.map +1 -0
- package/dist/cal2jd.d.ts +27 -0
- package/dist/cal2jd.d.ts.map +1 -0
- package/dist/cal2jd.js +58 -0
- package/dist/cal2jd.js.map +1 -0
- package/dist/constants.d.ts +59 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +60 -0
- package/dist/constants.js.map +1 -0
- package/dist/cp.d.ts +9 -0
- package/dist/cp.d.ts.map +1 -0
- package/dist/cp.js +10 -0
- package/dist/cp.js.map +1 -0
- package/dist/cpv.d.ts +9 -0
- package/dist/cpv.d.ts.map +1 -0
- package/dist/cpv.js +12 -0
- package/dist/cpv.js.map +1 -0
- package/dist/cr.d.ts +9 -0
- package/dist/cr.d.ts.map +1 -0
- package/dist/cr.js +12 -0
- package/dist/cr.js.map +1 -0
- package/dist/d2dtf.d.ts +49 -0
- package/dist/d2dtf.d.ts.map +1 -0
- package/dist/d2dtf.js +142 -0
- package/dist/d2dtf.js.map +1 -0
- package/dist/d2tf.d.ts +36 -0
- package/dist/d2tf.d.ts.map +1 -0
- package/dist/d2tf.js +77 -0
- package/dist/d2tf.js.map +1 -0
- package/dist/dat.d.ts +55 -0
- package/dist/dat.d.ts.map +1 -0
- package/dist/dat.js +168 -0
- package/dist/dat.js.map +1 -0
- package/dist/datini.d.ts +26 -0
- package/dist/datini.d.ts.map +1 -0
- package/dist/datini.js +37 -0
- package/dist/datini.js.map +1 -0
- package/dist/dtdb.d.ts +105 -0
- package/dist/dtdb.d.ts.map +1 -0
- package/dist/dtdb.js +1076 -0
- package/dist/dtdb.js.map +1 -0
- package/dist/dtf2d.d.ts +45 -0
- package/dist/dtf2d.d.ts.map +1 -0
- package/dist/dtf2d.js +112 -0
- package/dist/dtf2d.js.map +1 -0
- package/dist/eceq06.d.ts +24 -0
- package/dist/eceq06.d.ts.map +1 -0
- package/dist/eceq06.js +44 -0
- package/dist/eceq06.js.map +1 -0
- package/dist/ecm06.d.ts +30 -0
- package/dist/ecm06.d.ts.map +1 -0
- package/dist/ecm06.js +45 -0
- package/dist/ecm06.js.map +1 -0
- package/dist/epb.d.ts +24 -0
- package/dist/epb.d.ts.map +1 -0
- package/dist/epb.js +30 -0
- package/dist/epb.js.map +1 -0
- package/dist/epb2jd.d.ts +14 -0
- package/dist/epb2jd.d.ts.map +1 -0
- package/dist/epb2jd.js +20 -0
- package/dist/epb2jd.js.map +1 -0
- package/dist/epj.d.ts +24 -0
- package/dist/epj.d.ts.map +1 -0
- package/dist/epj.js +29 -0
- package/dist/epj.js.map +1 -0
- package/dist/epj2jd.d.ts +14 -0
- package/dist/epj2jd.d.ts.map +1 -0
- package/dist/epj2jd.js +20 -0
- package/dist/epj2jd.js.map +1 -0
- package/dist/eqec06.d.ts +24 -0
- package/dist/eqec06.d.ts.map +1 -0
- package/dist/eqec06.js +44 -0
- package/dist/eqec06.js.map +1 -0
- package/dist/era00.d.ts +29 -0
- package/dist/era00.d.ts.map +1 -0
- package/dist/era00.js +51 -0
- package/dist/era00.js.map +1 -0
- package/dist/fw2m.d.ts +51 -0
- package/dist/fw2m.d.ts.map +1 -0
- package/dist/fw2m.js +61 -0
- package/dist/fw2m.js.map +1 -0
- package/dist/g2icrs.d.ts +33 -0
- package/dist/g2icrs.d.ts.map +1 -0
- package/dist/g2icrs.js +69 -0
- package/dist/g2icrs.js.map +1 -0
- package/dist/gmst06.d.ts +32 -0
- package/dist/gmst06.d.ts.map +1 -0
- package/dist/gmst06.js +49 -0
- package/dist/gmst06.js.map +1 -0
- package/dist/icrs2g.d.ts +33 -0
- package/dist/icrs2g.d.ts.map +1 -0
- package/dist/icrs2g.js +69 -0
- package/dist/icrs2g.js.map +1 -0
- package/dist/index.d.ts +95 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/internal.d.ts +23 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +32 -0
- package/dist/internal.js.map +1 -0
- package/dist/ir.d.ts +9 -0
- package/dist/ir.d.ts.map +1 -0
- package/dist/ir.js +14 -0
- package/dist/ir.js.map +1 -0
- package/dist/jd2cal.d.ts +31 -0
- package/dist/jd2cal.d.ts.map +1 -0
- package/dist/jd2cal.js +106 -0
- package/dist/jd2cal.js.map +1 -0
- package/dist/jdcalf.d.ts +28 -0
- package/dist/jdcalf.d.ts.map +1 -0
- package/dist/jdcalf.js +84 -0
- package/dist/jdcalf.js.map +1 -0
- package/dist/leap-seconds.d.ts +30 -0
- package/dist/leap-seconds.d.ts.map +1 -0
- package/dist/leap-seconds.js +42 -0
- package/dist/leap-seconds.js.map +1 -0
- package/dist/obl06.d.ts +19 -0
- package/dist/obl06.d.ts.map +1 -0
- package/dist/obl06.js +32 -0
- package/dist/obl06.js.map +1 -0
- package/dist/pap.d.ts +19 -0
- package/dist/pap.d.ts.map +1 -0
- package/dist/pap.js +45 -0
- package/dist/pap.js.map +1 -0
- package/dist/pas.d.ts +17 -0
- package/dist/pas.d.ts.map +1 -0
- package/dist/pas.js +24 -0
- package/dist/pas.js.map +1 -0
- package/dist/pdp.d.ts +8 -0
- package/dist/pdp.d.ts.map +1 -0
- package/dist/pdp.js +9 -0
- package/dist/pdp.js.map +1 -0
- package/dist/pfw06.d.ts +43 -0
- package/dist/pfw06.d.ts.map +1 -0
- package/dist/pfw06.js +73 -0
- package/dist/pfw06.js.map +1 -0
- package/dist/pm.d.ts +8 -0
- package/dist/pm.d.ts.map +1 -0
- package/dist/pm.js +9 -0
- package/dist/pm.js.map +1 -0
- package/dist/pmat06.d.ts +26 -0
- package/dist/pmat06.d.ts.map +1 -0
- package/dist/pmat06.js +34 -0
- package/dist/pmat06.js.map +1 -0
- package/dist/pmp.d.ts +10 -0
- package/dist/pmp.d.ts.map +1 -0
- package/dist/pmp.js +11 -0
- package/dist/pmp.js.map +1 -0
- package/dist/pmpx.d.ts +29 -0
- package/dist/pmpx.d.ts.map +1 -0
- package/dist/pmpx.js +59 -0
- package/dist/pmpx.js.map +1 -0
- package/dist/pmsafe.d.ts +60 -0
- package/dist/pmsafe.d.ts.map +1 -0
- package/dist/pmsafe.js +91 -0
- package/dist/pmsafe.js.map +1 -0
- package/dist/pn.d.ts +12 -0
- package/dist/pn.d.ts.map +1 -0
- package/dist/pn.js +25 -0
- package/dist/pn.js.map +1 -0
- package/dist/ppp.d.ts +10 -0
- package/dist/ppp.d.ts.map +1 -0
- package/dist/ppp.js +11 -0
- package/dist/ppp.js.map +1 -0
- package/dist/ppsp.d.ts +11 -0
- package/dist/ppsp.d.ts.map +1 -0
- package/dist/ppsp.js +17 -0
- package/dist/ppsp.js.map +1 -0
- package/dist/pv2s.d.ts +19 -0
- package/dist/pv2s.d.ts.map +1 -0
- package/dist/pv2s.js +61 -0
- package/dist/pv2s.js.map +1 -0
- package/dist/pvdpv.d.ts +14 -0
- package/dist/pvdpv.d.ts.map +1 -0
- package/dist/pvdpv.js +24 -0
- package/dist/pvdpv.js.map +1 -0
- package/dist/pvm.d.ts +9 -0
- package/dist/pvm.d.ts.map +1 -0
- package/dist/pvm.js +15 -0
- package/dist/pvm.js.map +1 -0
- package/dist/pvmpv.d.ts +10 -0
- package/dist/pvmpv.d.ts.map +1 -0
- package/dist/pvmpv.js +12 -0
- package/dist/pvmpv.js.map +1 -0
- package/dist/pvppv.d.ts +10 -0
- package/dist/pvppv.d.ts.map +1 -0
- package/dist/pvppv.js +12 -0
- package/dist/pvppv.js.map +1 -0
- package/dist/pvstar.d.ts +51 -0
- package/dist/pvstar.d.ts.map +1 -0
- package/dist/pvstar.js +97 -0
- package/dist/pvstar.js.map +1 -0
- package/dist/pvu.d.ts +15 -0
- package/dist/pvu.d.ts.map +1 -0
- package/dist/pvu.js +19 -0
- package/dist/pvu.js.map +1 -0
- package/dist/pvxpv.d.ts +15 -0
- package/dist/pvxpv.d.ts.map +1 -0
- package/dist/pvxpv.js +29 -0
- package/dist/pvxpv.js.map +1 -0
- package/dist/pxp.d.ts +8 -0
- package/dist/pxp.d.ts.map +1 -0
- package/dist/pxp.js +15 -0
- package/dist/pxp.js.map +1 -0
- package/dist/rx.d.ts +21 -0
- package/dist/rx.d.ts.map +1 -0
- package/dist/rx.js +30 -0
- package/dist/rx.js.map +1 -0
- package/dist/rxp.d.ts +10 -0
- package/dist/rxp.d.ts.map +1 -0
- package/dist/rxp.js +21 -0
- package/dist/rxp.js.map +1 -0
- package/dist/rxr.d.ts +10 -0
- package/dist/rxr.d.ts.map +1 -0
- package/dist/rxr.js +27 -0
- package/dist/rxr.js.map +1 -0
- package/dist/ry.d.ts +21 -0
- package/dist/ry.d.ts.map +1 -0
- package/dist/ry.js +30 -0
- package/dist/ry.js.map +1 -0
- package/dist/rz.d.ts +21 -0
- package/dist/rz.d.ts.map +1 -0
- package/dist/rz.js +30 -0
- package/dist/rz.js.map +1 -0
- package/dist/s2c.d.ts +10 -0
- package/dist/s2c.d.ts.map +1 -0
- package/dist/s2c.js +12 -0
- package/dist/s2c.js.map +1 -0
- package/dist/s2pv.d.ts +14 -0
- package/dist/s2pv.d.ts.map +1 -0
- package/dist/s2pv.js +27 -0
- package/dist/s2pv.js.map +1 -0
- package/dist/s2xpv.d.ts +11 -0
- package/dist/s2xpv.d.ts.map +1 -0
- package/dist/s2xpv.js +13 -0
- package/dist/s2xpv.js.map +1 -0
- package/dist/sepp.d.ts +16 -0
- package/dist/sepp.d.ts.map +1 -0
- package/dist/sepp.js +26 -0
- package/dist/sepp.js.map +1 -0
- package/dist/seps.d.ts +11 -0
- package/dist/seps.d.ts.map +1 -0
- package/dist/seps.js +20 -0
- package/dist/seps.js.map +1 -0
- package/dist/starpm.d.ts +56 -0
- package/dist/starpm.d.ts.map +1 -0
- package/dist/starpm.js +90 -0
- package/dist/starpm.js.map +1 -0
- package/dist/starpv.d.ts +62 -0
- package/dist/starpv.d.ts.map +1 -0
- package/dist/starpv.js +147 -0
- package/dist/starpv.js.map +1 -0
- package/dist/sxp.d.ts +10 -0
- package/dist/sxp.d.ts.map +1 -0
- package/dist/sxp.js +11 -0
- package/dist/sxp.js.map +1 -0
- package/dist/sxpv.d.ts +10 -0
- package/dist/sxpv.d.ts.map +1 -0
- package/dist/sxpv.js +12 -0
- package/dist/sxpv.js.map +1 -0
- package/dist/taitt.d.ts +19 -0
- package/dist/taitt.d.ts.map +1 -0
- package/dist/taitt.js +36 -0
- package/dist/taitt.js.map +1 -0
- package/dist/taiut1.d.ts +20 -0
- package/dist/taiut1.d.ts.map +1 -0
- package/dist/taiut1.js +36 -0
- package/dist/taiut1.js.map +1 -0
- package/dist/taiutc.d.ts +33 -0
- package/dist/taiutc.d.ts.map +1 -0
- package/dist/taiutc.js +73 -0
- package/dist/taiutc.js.map +1 -0
- package/dist/tcbtdb.d.ts +29 -0
- package/dist/tcbtdb.d.ts.map +1 -0
- package/dist/tcbtdb.js +51 -0
- package/dist/tcbtdb.js.map +1 -0
- package/dist/tcgtt.d.ts +18 -0
- package/dist/tcgtt.d.ts.map +1 -0
- package/dist/tcgtt.js +35 -0
- package/dist/tcgtt.js.map +1 -0
- package/dist/tdbtcb.d.ts +29 -0
- package/dist/tdbtcb.d.ts.map +1 -0
- package/dist/tdbtcb.js +55 -0
- package/dist/tdbtcb.js.map +1 -0
- package/dist/tdbtt.d.ts +27 -0
- package/dist/tdbtt.d.ts.map +1 -0
- package/dist/tdbtt.js +43 -0
- package/dist/tdbtt.js.map +1 -0
- package/dist/tf2a.d.ts +19 -0
- package/dist/tf2a.d.ts.map +1 -0
- package/dist/tf2a.js +34 -0
- package/dist/tf2a.js.map +1 -0
- package/dist/tr.d.ts +9 -0
- package/dist/tr.d.ts.map +1 -0
- package/dist/tr.js +22 -0
- package/dist/tr.js.map +1 -0
- package/dist/trxp.d.ts +10 -0
- package/dist/trxp.d.ts.map +1 -0
- package/dist/trxp.js +15 -0
- package/dist/trxp.js.map +1 -0
- package/dist/tttai.d.ts +19 -0
- package/dist/tttai.d.ts.map +1 -0
- package/dist/tttai.js +36 -0
- package/dist/tttai.js.map +1 -0
- package/dist/tttcg.d.ts +18 -0
- package/dist/tttcg.d.ts.map +1 -0
- package/dist/tttcg.js +37 -0
- package/dist/tttcg.js.map +1 -0
- package/dist/tttdb.d.ts +27 -0
- package/dist/tttdb.d.ts.map +1 -0
- package/dist/tttdb.js +43 -0
- package/dist/tttdb.js.map +1 -0
- package/dist/ttut1.d.ts +19 -0
- package/dist/ttut1.d.ts.map +1 -0
- package/dist/ttut1.js +35 -0
- package/dist/ttut1.js.map +1 -0
- package/dist/ut1tai.d.ts +20 -0
- package/dist/ut1tai.d.ts.map +1 -0
- package/dist/ut1tai.js +36 -0
- package/dist/ut1tai.js.map +1 -0
- package/dist/ut1tt.d.ts +19 -0
- package/dist/ut1tt.d.ts.map +1 -0
- package/dist/ut1tt.js +35 -0
- package/dist/ut1tt.js.map +1 -0
- package/dist/ut1utc.d.ts +35 -0
- package/dist/ut1utc.d.ts.map +1 -0
- package/dist/ut1utc.js +107 -0
- package/dist/ut1utc.js.map +1 -0
- package/dist/utctai.d.ts +33 -0
- package/dist/utctai.d.ts.map +1 -0
- package/dist/utctai.js +94 -0
- package/dist/utctai.js.map +1 -0
- package/dist/utcut1.d.ts +34 -0
- package/dist/utcut1.d.ts.map +1 -0
- package/dist/utcut1.js +63 -0
- package/dist/utcut1.js.map +1 -0
- package/dist/zp.d.ts +8 -0
- package/dist/zp.d.ts.map +1 -0
- package/dist/zp.js +9 -0
- package/dist/zp.js.map +1 -0
- package/dist/zpv.d.ts +8 -0
- package/dist/zpv.d.ts.map +1 -0
- package/dist/zpv.js +10 -0
- package/dist/zpv.js.map +1 -0
- package/dist/zr.d.ts +9 -0
- package/dist/zr.d.ts.map +1 -0
- package/dist/zr.js +14 -0
- package/dist/zr.js.map +1 -0
- package/package.json +42 -3
- package/src/a2af.ts +48 -0
- package/src/a2tf.ts +45 -0
- package/src/af2a.ts +38 -0
- package/src/anp.ts +15 -0
- package/src/anpm.ts +15 -0
- package/src/bi00.ts +42 -0
- package/src/bp06.ts +51 -0
- package/src/c2s.ts +23 -0
- package/src/cal2jd.ts +67 -0
- package/src/constants.ts +60 -0
- package/src/cp.ts +12 -0
- package/src/cpv.ts +13 -0
- package/src/cr.ts +13 -0
- package/src/d2dtf.ts +153 -0
- package/src/d2tf.ts +87 -0
- package/src/dat.ts +186 -0
- package/src/datini.ts +49 -0
- package/src/dtdb.ts +1110 -0
- package/src/dtf2d.ts +124 -0
- package/src/eceq06.ts +54 -0
- package/src/ecm06.ts +51 -0
- package/src/epb.ts +31 -0
- package/src/epb2jd.ts +21 -0
- package/src/epj.ts +30 -0
- package/src/epj2jd.ts +21 -0
- package/src/eqec06.ts +54 -0
- package/src/era00.ts +54 -0
- package/src/fw2m.ts +64 -0
- package/src/g2icrs.ts +74 -0
- package/src/gmst06.ts +51 -0
- package/src/icrs2g.ts +74 -0
- package/src/index.ts +108 -0
- package/src/internal.ts +46 -0
- package/src/ir.ts +16 -0
- package/src/jd2cal.ts +117 -0
- package/src/jdcalf.ts +93 -0
- package/src/leap-seconds.ts +47 -0
- package/src/obl06.ts +34 -0
- package/src/pap.ts +54 -0
- package/src/pas.ts +25 -0
- package/src/pdp.ts +11 -0
- package/src/pfw06.ts +78 -0
- package/src/pm.ts +11 -0
- package/src/pmat06.ts +37 -0
- package/src/pmp.ts +13 -0
- package/src/pmpx.ts +75 -0
- package/src/pmsafe.ts +109 -0
- package/src/pn.ts +26 -0
- package/src/ppp.ts +13 -0
- package/src/ppsp.ts +20 -0
- package/src/pv2s.ts +71 -0
- package/src/pvdpv.ts +30 -0
- package/src/pvm.ts +19 -0
- package/src/pvmpv.ts +14 -0
- package/src/pvppv.ts +14 -0
- package/src/pvstar.ts +113 -0
- package/src/pvu.ts +20 -0
- package/src/pvxpv.ts +33 -0
- package/src/pxp.ts +17 -0
- package/src/rx.ts +32 -0
- package/src/rxp.ts +24 -0
- package/src/rxr.ts +29 -0
- package/src/ry.ts +32 -0
- package/src/rz.ts +32 -0
- package/src/s2c.ts +14 -0
- package/src/s2pv.ts +30 -0
- package/src/s2xpv.ts +15 -0
- package/src/sepp.ts +28 -0
- package/src/seps.ts +20 -0
- package/src/starpm.ts +108 -0
- package/src/starpv.ts +167 -0
- package/src/sxp.ts +13 -0
- package/src/sxpv.ts +14 -0
- package/src/taitt.ts +38 -0
- package/src/taiut1.ts +41 -0
- package/src/taiutc.ts +76 -0
- package/src/tcbtdb.ts +54 -0
- package/src/tcgtt.ts +37 -0
- package/src/tdbtcb.ts +59 -0
- package/src/tdbtt.ts +48 -0
- package/src/tf2a.ts +38 -0
- package/src/tr.ts +24 -0
- package/src/trxp.ts +18 -0
- package/src/tttai.ts +38 -0
- package/src/tttcg.ts +40 -0
- package/src/tttdb.ts +48 -0
- package/src/ttut1.ts +40 -0
- package/src/ut1tai.ts +41 -0
- package/src/ut1tt.ts +40 -0
- package/src/ut1utc.ts +115 -0
- package/src/utctai.ts +97 -0
- package/src/utcut1.ts +66 -0
- package/src/zp.ts +11 -0
- package/src/zpv.ts +12 -0
- package/src/zr.ts +16 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
The TypeScript in this package is a line-for-line translation of ERFA 2.0.1
|
|
2
|
+
(https://github.com/liberfa/erfa), and keeps its license, which follows.
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2013-2021, NumFOCUS Foundation.
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
This library is derived, with permission, from the International
|
|
8
|
+
Astronomical Union's "Standards of Fundamental Astronomy" library,
|
|
9
|
+
available from http://www.iausofa.org.
|
|
10
|
+
|
|
11
|
+
The ERFA version is intended to retain identical
|
|
12
|
+
functionality to the SOFA library, but made distinct through
|
|
13
|
+
different function and file names, as set out in the SOFA license
|
|
14
|
+
conditions. The SOFA original has a role as a reference standard
|
|
15
|
+
for the IAU and IERS, and consequently redistribution is permitted only
|
|
16
|
+
in its unaltered state. The ERFA version is not subject to this
|
|
17
|
+
restriction and therefore can be included in distributions which do not
|
|
18
|
+
support the concept of "read only" software.
|
|
19
|
+
|
|
20
|
+
Although the intent is to replicate the SOFA API (other than replacement of
|
|
21
|
+
prefix names) and results (with the exception of bugs; any that are
|
|
22
|
+
discovered will be fixed), SOFA is not responsible for any errors found
|
|
23
|
+
in this version of the library.
|
|
24
|
+
|
|
25
|
+
If you wish to acknowledge the SOFA heritage, please acknowledge that
|
|
26
|
+
you are using a library derived from SOFA, rather than SOFA itself.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
TERMS AND CONDITIONS
|
|
30
|
+
|
|
31
|
+
Redistribution and use in source and binary forms, with or without
|
|
32
|
+
modification, are permitted provided that the following conditions are met:
|
|
33
|
+
|
|
34
|
+
1 Redistributions of source code must retain the above copyright
|
|
35
|
+
notice, this list of conditions and the following disclaimer.
|
|
36
|
+
|
|
37
|
+
2 Redistributions in binary form must reproduce the above copyright
|
|
38
|
+
notice, this list of conditions and the following disclaimer in the
|
|
39
|
+
documentation and/or other materials provided with the distribution.
|
|
40
|
+
|
|
41
|
+
3 Neither the name of the Standards Of Fundamental Astronomy Board, the
|
|
42
|
+
International Astronomical Union nor the names of its contributors
|
|
43
|
+
may be used to endorse or promote products derived from this software
|
|
44
|
+
without specific prior written permission.
|
|
45
|
+
|
|
46
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
47
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
48
|
+
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
49
|
+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
50
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
51
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
52
|
+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
53
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
54
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
55
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
56
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,110 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @arcosmos/erfa
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[ERFA](https://github.com/liberfa/erfa) 2.0.1, the Essential Routines for Fundamental Astronomy,
|
|
4
|
+
translated line for line to TypeScript. ERFA is the BSD-licensed copy of the IAU's SOFA library,
|
|
5
|
+
and the C library behind Astropy's time and coordinate math (through pyerfa).
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install @arcosmos/erfa
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { icrs2g, seps } from '@arcosmos/erfa'
|
|
13
|
+
|
|
14
|
+
const [l, b] = icrs2g(266.40498829 * (Math.PI / 180), -28.93617776 * (Math.PI / 180))
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
So far it has the functions `@arcosmos/astronomy` needs for angles, frames, time and star
|
|
18
|
+
motion (90 of ERFA's roughly 250):
|
|
19
|
+
|
|
20
|
+
- vectors and matrices, frame bias and IAU 2006 precession (`bp06`, `ecm06`, `pmat06`),
|
|
21
|
+
Galactic (`icrs2g`), ecliptic (`eqec06`), epochs (`epj2jd`, `epb2jd`) and angle
|
|
22
|
+
decomposition (`a2af`, `af2a`);
|
|
23
|
+
- calendars (`cal2jd`, `jd2cal`, `jdcalf`), dates and times with UTC's leap seconds (`dtf2d`,
|
|
24
|
+
`d2dtf`), TAI−UTC (`dat`), and every time scale ERFA converts between: UTC, TAI, TT, TCG,
|
|
25
|
+
TDB (with `dtdb`, Fairhead & Bretagnon's TDB−TT), TCB and UT1 (`utctai`, `taitt`, `tttdb`,
|
|
26
|
+
`tdbtcb`, `utcut1` and their inverses);
|
|
27
|
+
- the Earth rotation angle (`era00`) and IAU 2006 Greenwich mean sidereal time (`gmst06`);
|
|
28
|
+
- pv-vectors (position and velocity: `s2pv`, `pv2s`, `pvu`, `pvxpv` and the rest) and star
|
|
29
|
+
motion: catalog data to and from a space-motion pv-vector (`starpv`, `pvstar`), moved
|
|
30
|
+
between epochs (`starpm`, and `pmsafe` for zero or tiny parallaxes), and proper motion and
|
|
31
|
+
parallax to a coordinate direction (`pmpx`).
|
|
32
|
+
|
|
33
|
+
The rest follows as the library needs it.
|
|
34
|
+
|
|
35
|
+
## Conventions
|
|
36
|
+
|
|
37
|
+
- **One module per function**, named as pyerfa names it (`eraBp06` is `bp06`), so a bundler
|
|
38
|
+
keeps only the functions used, and Astropy's source maps to it one to one.
|
|
39
|
+
- **Line for line:** ERFA's operation order, comments, variable names and coefficients are kept,
|
|
40
|
+
so results match the C to the last bit wherever JavaScript's `Math` functions do.
|
|
41
|
+
- **Outputs are return values.** One output is returned as is; several are a tuple in ERFA's
|
|
42
|
+
argument order, as pyerfa returns them. A function that changes its argument in place in C
|
|
43
|
+
(`eraRz`) returns the result and leaves the argument as it was.
|
|
44
|
+
- **Status codes are returned,** as the tuple's last element (`af2a` gives `[rad, status]`),
|
|
45
|
+
never thrown. Every function whose C returns an int status returns it, even one that is
|
|
46
|
+
always 0 (`taitt`). An output C leaves unset when it returns an error is `NaN`.
|
|
47
|
+
- **C's types:** a character argument is a string (`dtf2d('UTC', ...)`, compared exactly, as
|
|
48
|
+
`strcmp` does); `int` arrays (`ihmsf`, `iymdf`) are arrays of numbers; C's integer
|
|
49
|
+
division, which truncates toward zero, is kept. A `long` is 64 bits here, so
|
|
50
|
+
`jd2cal` is right where a Windows build of ERFA, with a 32-bit `long`, overflows (past JD
|
|
51
|
+
5.4e8).
|
|
52
|
+
- Vectors are `Vec3` (three numbers), matrices `Mat3` (three rows of three), and pv-vectors
|
|
53
|
+
`PV` (a position `Vec3` and a velocity `Vec3`). `pvstar` leaves its argument as it was,
|
|
54
|
+
where ERFA overwrites its velocity.
|
|
55
|
+
|
|
56
|
+
## Leap seconds
|
|
57
|
+
|
|
58
|
+
`dat` reads ERFA's built-in table (the last leap second is 2016 December 31) through
|
|
59
|
+
`eraDatini`, so it can be replaced at run time, as pyerfa and Astropy do with newer IERS
|
|
60
|
+
tables: `getLeapSeconds()` returns a copy of the table in use as `{ iyear, month, delat }`
|
|
61
|
+
rows, and `setLeapSeconds(table)` replaces it (copied; an empty table, or none, restores the
|
|
62
|
+
built-in one). As in ERFA, nothing is checked: keep the built-in rows and add to them, since
|
|
63
|
+
`dat` applies its pre-1972 drift to the table's first 14 rows and treats years before the
|
|
64
|
+
first row as before UTC. `dat` calls a year after 2028 (its release year, 2023, plus five)
|
|
65
|
+
dubious, status 1, whatever the table.
|
|
66
|
+
|
|
67
|
+
## Star motion
|
|
68
|
+
|
|
69
|
+
`starpv` takes a star's catalog data (radians, radians per Julian year, arcseconds, km/s) to a
|
|
70
|
+
pv-vector in au and au/day, and `starpm` moves the star between two epochs through it, both
|
|
71
|
+
as ERFA does, with special relativity and the light time. Their warnings add up:
|
|
72
|
+
|
|
73
|
+
- **1:** the parallax is under 1e-7 arcsec (zero and negative included), so the star is put
|
|
74
|
+
at 1e-7 arcsec, about 2e12 au;
|
|
75
|
+
- **2:** the space velocity is over half the speed of light, so it is set to zero;
|
|
76
|
+
- **4:** the relativistic correction didn't settle within 100 rounds. ERFA stops once neither
|
|
77
|
+
term changes by less than before, which a speed near 0.1 to 0.5 c across the line of sight
|
|
78
|
+
can keep from happening as the last bits alternate. No real star's speed comes near.
|
|
79
|
+
|
|
80
|
+
`starpm` returns -1 if the space velocity reaches that of light, or `pvstar` fails, which
|
|
81
|
+
ERFA says should not occur. `pvstar` returns -1 for a speed over that of light (or
|
|
82
|
+
approaching at it) and -2 for a null position, its outputs `NaN` but for `dec`, which -2
|
|
83
|
+
has set. At zero parallax a proper motion over about 3 mas a year is over half the speed of
|
|
84
|
+
light, so `starpm` stops the star (3). `pmsafe` raises a parallax that small first, to 326
|
|
85
|
+
times the proper motion in a year (radians), a transverse speed of about 1% of c, and to at
|
|
86
|
+
least 5e-7 arcsec, and says so with 1.
|
|
87
|
+
|
|
88
|
+
## Tests
|
|
89
|
+
|
|
90
|
+
- **ERFA's own tests** (`t_erfa_c.c`) are ported for every function, with ERFA's values and
|
|
91
|
+
tolerances.
|
|
92
|
+
- **pyerfa replays:** `test/fixtures/pyerfa.json` holds pyerfa's outputs for 2,098 seeded
|
|
93
|
+
random and edge-case inputs, written by `packages/astronomy/oracle/generate_erfa.py`, and 17
|
|
94
|
+
more under a leap-second table with one more leap second. 7,363 of their 7,531 numbers match
|
|
95
|
+
to the last bit; the rest differ only where V8's `sin`, `cos` and `atan2` round differently
|
|
96
|
+
from the C maths library pyerfa was built with.
|
|
97
|
+
- Of the functions before star motion, 5,209 of 5,298 numbers match, the rest by at most
|
|
98
|
+
1e-15. Of the calendar and time-scale functions' 1,688 numbers, all but one of `dtdb`'s
|
|
99
|
+
(1 ulp) match to the last bit, and each case's status is ERFA's own, read from pyerfa's
|
|
100
|
+
ufunc layer.
|
|
101
|
+
- Of the pv-vector and star-motion functions' 2,233 numbers, 2,154 match to the last bit and
|
|
102
|
+
69 more within 11 ulp. 9 are the proper motions of stars with none, rounding noise near
|
|
103
|
+
1e-29 rad/yr on either side. Each of their 147 statuses is ERFA's own.
|
|
104
|
+
- One is a parallax `pmsafe` raised from a proper motion of 1e-8 rad/yr, 1.4e-9 of itself
|
|
105
|
+
from pyerfa's: the proper motion comes from `seps` between two unit vectors that close,
|
|
106
|
+
where an ulp of `cos` is that much of it (`RAISED_PARALLAX` in the test).
|
|
107
|
+
|
|
108
|
+
## License
|
|
109
|
+
|
|
110
|
+
ERFA's BSD-3-Clause license, in `LICENSE`. This is a library derived from SOFA, not SOFA itself.
|
package/dist/a2af.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decompose radians into degrees, arcminutes, arcseconds, fraction.
|
|
3
|
+
*
|
|
4
|
+
* Notes:
|
|
5
|
+
* 1. The argument ndp is interpreted as follows:
|
|
6
|
+
*
|
|
7
|
+
* ndp resolution
|
|
8
|
+
* : ...0000 00 00
|
|
9
|
+
* -7 1000 00 00
|
|
10
|
+
* -6 100 00 00
|
|
11
|
+
* -5 10 00 00
|
|
12
|
+
* -4 1 00 00
|
|
13
|
+
* -3 0 10 00
|
|
14
|
+
* -2 0 01 00
|
|
15
|
+
* -1 0 00 10
|
|
16
|
+
* 0 0 00 01
|
|
17
|
+
* 1 0 00 00.1
|
|
18
|
+
* 2 0 00 00.01
|
|
19
|
+
* 3 0 00 00.001
|
|
20
|
+
* : 0 00 00.000...
|
|
21
|
+
*
|
|
22
|
+
* 2. The largest positive useful value for ndp is determined by the size of angle, the
|
|
23
|
+
* format of doubles on the target platform, and the risk of overflowing idmsf[3]. On a
|
|
24
|
+
* typical platform, for angle up to 2pi, the available floating-point precision might
|
|
25
|
+
* correspond to ndp=12. In C the practical limit is typically ndp=9, set by the capacity
|
|
26
|
+
* of a 32-bit int; here the fields are numbers, exact as integers up to 2^53.
|
|
27
|
+
* 3. The absolute value of angle may exceed 2pi. In cases where it does not, it is up to
|
|
28
|
+
* the caller to test for and handle the case where angle is very nearly 2pi and rounds
|
|
29
|
+
* up to 360 degrees, by testing for idmsf[0]=360 and setting idmsf[0-3] to zero.
|
|
30
|
+
*
|
|
31
|
+
* @param ndp resolution (Note 1)
|
|
32
|
+
* @param angle angle in radians
|
|
33
|
+
* @returns [sign, idmsf]: '+' or '-', and degrees, arcminutes, arcseconds, fraction
|
|
34
|
+
*/
|
|
35
|
+
export declare function a2af(ndp: number, angle: number): [sign: '+' | '-', idmsf: [number, number, number, number]];
|
|
36
|
+
//# sourceMappingURL=a2af.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"a2af.d.ts","sourceRoot":"","sources":["../src/a2af.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,IAAI,CAClB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GACZ,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAM5D"}
|
package/dist/a2af.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraA2af (a2af.c); see LICENSE.
|
|
2
|
+
import { D2PI } from './constants.js';
|
|
3
|
+
import { d2tf } from './d2tf.js';
|
|
4
|
+
/**
|
|
5
|
+
* Decompose radians into degrees, arcminutes, arcseconds, fraction.
|
|
6
|
+
*
|
|
7
|
+
* Notes:
|
|
8
|
+
* 1. The argument ndp is interpreted as follows:
|
|
9
|
+
*
|
|
10
|
+
* ndp resolution
|
|
11
|
+
* : ...0000 00 00
|
|
12
|
+
* -7 1000 00 00
|
|
13
|
+
* -6 100 00 00
|
|
14
|
+
* -5 10 00 00
|
|
15
|
+
* -4 1 00 00
|
|
16
|
+
* -3 0 10 00
|
|
17
|
+
* -2 0 01 00
|
|
18
|
+
* -1 0 00 10
|
|
19
|
+
* 0 0 00 01
|
|
20
|
+
* 1 0 00 00.1
|
|
21
|
+
* 2 0 00 00.01
|
|
22
|
+
* 3 0 00 00.001
|
|
23
|
+
* : 0 00 00.000...
|
|
24
|
+
*
|
|
25
|
+
* 2. The largest positive useful value for ndp is determined by the size of angle, the
|
|
26
|
+
* format of doubles on the target platform, and the risk of overflowing idmsf[3]. On a
|
|
27
|
+
* typical platform, for angle up to 2pi, the available floating-point precision might
|
|
28
|
+
* correspond to ndp=12. In C the practical limit is typically ndp=9, set by the capacity
|
|
29
|
+
* of a 32-bit int; here the fields are numbers, exact as integers up to 2^53.
|
|
30
|
+
* 3. The absolute value of angle may exceed 2pi. In cases where it does not, it is up to
|
|
31
|
+
* the caller to test for and handle the case where angle is very nearly 2pi and rounds
|
|
32
|
+
* up to 360 degrees, by testing for idmsf[0]=360 and setting idmsf[0-3] to zero.
|
|
33
|
+
*
|
|
34
|
+
* @param ndp resolution (Note 1)
|
|
35
|
+
* @param angle angle in radians
|
|
36
|
+
* @returns [sign, idmsf]: '+' or '-', and degrees, arcminutes, arcseconds, fraction
|
|
37
|
+
*/
|
|
38
|
+
export function a2af(ndp, angle) {
|
|
39
|
+
// Hours to degrees * radians to turns
|
|
40
|
+
const F = 15.0 / D2PI;
|
|
41
|
+
// Scale then use days to h,m,s function.
|
|
42
|
+
return d2tf(ndp, angle * F);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=a2af.js.map
|
package/dist/a2af.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"a2af.js","sourceRoot":"","sources":["../src/a2af.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,IAAI,CAClB,GAAW,EACX,KAAa;IAEb,sCAAsC;IACtC,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAAA;IAErB,yCAAyC;IACzC,OAAO,IAAI,CAAC,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC,CAAA;AAC7B,CAAC"}
|
package/dist/a2tf.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decompose radians into hours, minutes, seconds, fraction.
|
|
3
|
+
*
|
|
4
|
+
* Notes:
|
|
5
|
+
* 1. The argument ndp is interpreted as follows:
|
|
6
|
+
*
|
|
7
|
+
* ndp resolution
|
|
8
|
+
* : ...0000 00 00
|
|
9
|
+
* -7 1000 00 00
|
|
10
|
+
* -6 100 00 00
|
|
11
|
+
* -5 10 00 00
|
|
12
|
+
* -4 1 00 00
|
|
13
|
+
* -3 0 10 00
|
|
14
|
+
* -2 0 01 00
|
|
15
|
+
* -1 0 00 10
|
|
16
|
+
* 0 0 00 01
|
|
17
|
+
* 1 0 00 00.1
|
|
18
|
+
* 2 0 00 00.01
|
|
19
|
+
* 3 0 00 00.001
|
|
20
|
+
* : 0 00 00.000...
|
|
21
|
+
*
|
|
22
|
+
* 2. The largest positive useful value for ndp is determined by the size of angle, the
|
|
23
|
+
* format of doubles on the target platform, and the risk of overflowing ihmsf[3]. On a
|
|
24
|
+
* typical platform, for angle up to 2pi, the available floating-point precision might
|
|
25
|
+
* correspond to ndp=12. In C the practical limit is typically ndp=9, set by the capacity
|
|
26
|
+
* of a 32-bit int; here the fields are numbers, exact as integers up to 2^53.
|
|
27
|
+
* 3. The absolute value of angle may exceed 2pi. In cases where it does not, it is up to
|
|
28
|
+
* the caller to test for and handle the case where angle is very nearly 2pi and rounds
|
|
29
|
+
* up to 24 hours, by testing for ihmsf[0]=24 and setting ihmsf[0-3] to zero.
|
|
30
|
+
*
|
|
31
|
+
* @param ndp resolution (Note 1)
|
|
32
|
+
* @param angle angle in radians
|
|
33
|
+
* @returns [sign, ihmsf]: '+' or '-', and hours, minutes, seconds, fraction
|
|
34
|
+
*/
|
|
35
|
+
export declare function a2tf(ndp: number, angle: number): [sign: '+' | '-', ihmsf: [number, number, number, number]];
|
|
36
|
+
//# sourceMappingURL=a2tf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"a2tf.d.ts","sourceRoot":"","sources":["../src/a2tf.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,IAAI,CAClB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GACZ,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAG5D"}
|
package/dist/a2tf.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraA2tf (a2tf.c); see LICENSE.
|
|
2
|
+
import { D2PI } from './constants.js';
|
|
3
|
+
import { d2tf } from './d2tf.js';
|
|
4
|
+
/**
|
|
5
|
+
* Decompose radians into hours, minutes, seconds, fraction.
|
|
6
|
+
*
|
|
7
|
+
* Notes:
|
|
8
|
+
* 1. The argument ndp is interpreted as follows:
|
|
9
|
+
*
|
|
10
|
+
* ndp resolution
|
|
11
|
+
* : ...0000 00 00
|
|
12
|
+
* -7 1000 00 00
|
|
13
|
+
* -6 100 00 00
|
|
14
|
+
* -5 10 00 00
|
|
15
|
+
* -4 1 00 00
|
|
16
|
+
* -3 0 10 00
|
|
17
|
+
* -2 0 01 00
|
|
18
|
+
* -1 0 00 10
|
|
19
|
+
* 0 0 00 01
|
|
20
|
+
* 1 0 00 00.1
|
|
21
|
+
* 2 0 00 00.01
|
|
22
|
+
* 3 0 00 00.001
|
|
23
|
+
* : 0 00 00.000...
|
|
24
|
+
*
|
|
25
|
+
* 2. The largest positive useful value for ndp is determined by the size of angle, the
|
|
26
|
+
* format of doubles on the target platform, and the risk of overflowing ihmsf[3]. On a
|
|
27
|
+
* typical platform, for angle up to 2pi, the available floating-point precision might
|
|
28
|
+
* correspond to ndp=12. In C the practical limit is typically ndp=9, set by the capacity
|
|
29
|
+
* of a 32-bit int; here the fields are numbers, exact as integers up to 2^53.
|
|
30
|
+
* 3. The absolute value of angle may exceed 2pi. In cases where it does not, it is up to
|
|
31
|
+
* the caller to test for and handle the case where angle is very nearly 2pi and rounds
|
|
32
|
+
* up to 24 hours, by testing for ihmsf[0]=24 and setting ihmsf[0-3] to zero.
|
|
33
|
+
*
|
|
34
|
+
* @param ndp resolution (Note 1)
|
|
35
|
+
* @param angle angle in radians
|
|
36
|
+
* @returns [sign, ihmsf]: '+' or '-', and hours, minutes, seconds, fraction
|
|
37
|
+
*/
|
|
38
|
+
export function a2tf(ndp, angle) {
|
|
39
|
+
// Scale then use days to h,m,s function.
|
|
40
|
+
return d2tf(ndp, angle / D2PI);
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=a2tf.js.map
|
package/dist/a2tf.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"a2tf.js","sourceRoot":"","sources":["../src/a2tf.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,IAAI,CAClB,GAAW,EACX,KAAa;IAEb,yCAAyC;IACzC,OAAO,IAAI,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,CAAA;AAChC,CAAC"}
|
package/dist/af2a.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert degrees, arcminutes, arcseconds to radians.
|
|
3
|
+
*
|
|
4
|
+
* Notes:
|
|
5
|
+
* 1. The result is computed even if any of the range checks fail.
|
|
6
|
+
* 2. Negative ideg, iamin and/or asec 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 ideg degrees (an integer in C)
|
|
13
|
+
* @param iamin arcminutes (an integer in C)
|
|
14
|
+
* @param asec arcseconds
|
|
15
|
+
* @returns [rad, status]: angle in radians, and status: 0 = OK, 1 = ideg outside range
|
|
16
|
+
* 0-359, 2 = iamin outside range 0-59, 3 = asec outside range 0-59.999...
|
|
17
|
+
*/
|
|
18
|
+
export declare function af2a(s: string, ideg: number, iamin: number, asec: number): [rad: number, status: number];
|
|
19
|
+
//# sourceMappingURL=af2a.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af2a.d.ts","sourceRoot":"","sources":["../src/af2a.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,IAAI,CAClB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAY/B"}
|
package/dist/af2a.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraAf2a (af2a.c); see LICENSE.
|
|
2
|
+
import { DAS2R } from './constants.js';
|
|
3
|
+
/**
|
|
4
|
+
* Convert degrees, arcminutes, arcseconds to radians.
|
|
5
|
+
*
|
|
6
|
+
* Notes:
|
|
7
|
+
* 1. The result is computed even if any of the range checks fail.
|
|
8
|
+
* 2. Negative ideg, iamin and/or asec 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 ideg degrees (an integer in C)
|
|
15
|
+
* @param iamin arcminutes (an integer in C)
|
|
16
|
+
* @param asec arcseconds
|
|
17
|
+
* @returns [rad, status]: angle in radians, and status: 0 = OK, 1 = ideg outside range
|
|
18
|
+
* 0-359, 2 = iamin outside range 0-59, 3 = asec outside range 0-59.999...
|
|
19
|
+
*/
|
|
20
|
+
export function af2a(s, ideg, iamin, asec) {
|
|
21
|
+
// Compute the interval.
|
|
22
|
+
const rad = (s === '-' ? -1.0 : 1.0) *
|
|
23
|
+
(60.0 * (60.0 * Math.abs(ideg) + Math.abs(iamin)) + Math.abs(asec)) *
|
|
24
|
+
DAS2R;
|
|
25
|
+
// Validate arguments and return status.
|
|
26
|
+
if (ideg < 0 || ideg > 359)
|
|
27
|
+
return [rad, 1];
|
|
28
|
+
if (iamin < 0 || iamin > 59)
|
|
29
|
+
return [rad, 2];
|
|
30
|
+
if (asec < 0.0 || asec >= 60.0)
|
|
31
|
+
return [rad, 3];
|
|
32
|
+
return [rad, 0];
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=af2a.js.map
|
package/dist/af2a.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"af2a.js","sourceRoot":"","sources":["../src/af2a.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,IAAI,CAClB,CAAS,EACT,IAAY,EACZ,KAAa,EACb,IAAY;IAEZ,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,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACnE,KAAK,CAAA;IAEP,wCAAwC;IACxC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,GAAG;QAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;IAC3C,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,EAAE;QAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;IAC5C,IAAI,IAAI,GAAG,GAAG,IAAI,IAAI,IAAI,IAAI;QAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;IAC/C,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;AACjB,CAAC"}
|
package/dist/anp.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anp.d.ts","sourceRoot":"","sources":["../src/anp.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAIrC"}
|
package/dist/anp.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraAnp (anp.c); see LICENSE.
|
|
2
|
+
import { D2PI } from './constants.js';
|
|
3
|
+
import { fmod } from './internal.js';
|
|
4
|
+
/**
|
|
5
|
+
* Normalize angle into the range 0 <= a < 2pi.
|
|
6
|
+
*
|
|
7
|
+
* @param a angle (radians)
|
|
8
|
+
* @returns angle in range 0-2pi
|
|
9
|
+
*/
|
|
10
|
+
export function anp(a) {
|
|
11
|
+
let w = fmod(a, D2PI);
|
|
12
|
+
if (w < 0)
|
|
13
|
+
w += D2PI;
|
|
14
|
+
return w;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=anp.js.map
|
package/dist/anp.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anp.js","sourceRoot":"","sources":["../src/anp.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEpC;;;;;GAKG;AACH,MAAM,UAAU,GAAG,CAAC,CAAS;IAC3B,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;IACrB,IAAI,CAAC,GAAG,CAAC;QAAE,CAAC,IAAI,IAAI,CAAA;IACpB,OAAO,CAAC,CAAA;AACV,CAAC"}
|
package/dist/anpm.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anpm.d.ts","sourceRoot":"","sources":["../src/anpm.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAItC"}
|
package/dist/anpm.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraAnpm (anpm.c); see LICENSE.
|
|
2
|
+
import { D2PI, DPI } from './constants.js';
|
|
3
|
+
import { dsign, fmod } from './internal.js';
|
|
4
|
+
/**
|
|
5
|
+
* Normalize angle into the range -pi <= a < +pi.
|
|
6
|
+
*
|
|
7
|
+
* @param a angle (radians)
|
|
8
|
+
* @returns angle in range +/-pi
|
|
9
|
+
*/
|
|
10
|
+
export function anpm(a) {
|
|
11
|
+
let w = fmod(a, D2PI);
|
|
12
|
+
if (Math.abs(w) >= DPI)
|
|
13
|
+
w -= dsign(D2PI, a);
|
|
14
|
+
return w;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=anpm.js.map
|
package/dist/anpm.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anpm.js","sourceRoot":"","sources":["../src/anpm.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAE3C;;;;;GAKG;AACH,MAAM,UAAU,IAAI,CAAC,CAAS;IAC5B,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;IACrB,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG;QAAE,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IAC3C,OAAO,CAAC,CAAA;AACV,CAAC"}
|
package/dist/bi00.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frame bias components of IAU 2000 precession-nutation models; part of the
|
|
3
|
+
* Mathews-Herring-Buffett (MHB2000) nutation series, with additions.
|
|
4
|
+
*
|
|
5
|
+
* Notes:
|
|
6
|
+
* 1. The frame bias corrections in longitude and obliquity (radians) are required in order
|
|
7
|
+
* to correct for the offset between the GCRS pole and the mean J2000.0 pole. They
|
|
8
|
+
* define, with respect to the GCRS frame, a J2000.0 mean pole that is consistent with
|
|
9
|
+
* the rest of the IAU 2000A precession-nutation model.
|
|
10
|
+
* 2. In addition to the displacement of the pole, the complete description of the frame
|
|
11
|
+
* bias requires also an offset in right ascension. This is not part of the IAU 2000A
|
|
12
|
+
* model, and is from Chapront et al. (2002). It is returned in radians.
|
|
13
|
+
* 3. This is a supplemented implementation of one aspect of the IAU 2000A nutation model,
|
|
14
|
+
* formally adopted by the IAU General Assembly in 2000, namely MHB2000 (Mathews et al.
|
|
15
|
+
* 2002).
|
|
16
|
+
*
|
|
17
|
+
* References:
|
|
18
|
+
* - Chapront, J., Chapront-Touze, M. & Francou, G., Astron.Astrophys., 387, 700, 2002.
|
|
19
|
+
* - Mathews, P.M., Herring, T.A., Buffet, B.A., "Modeling of nutation and precession: New
|
|
20
|
+
* nutation series for nonrigid Earth and insights into the Earth's interior",
|
|
21
|
+
* J.Geophys.Res., 107, B4, 2002.
|
|
22
|
+
*
|
|
23
|
+
* @returns [dpsibi, depsbi, dra]: longitude and obliquity corrections, and the ICRS RA of
|
|
24
|
+
* the J2000.0 mean equinox (radians)
|
|
25
|
+
*/
|
|
26
|
+
export declare function bi00(): [dpsibi: number, depsbi: number, dra: number];
|
|
27
|
+
//# sourceMappingURL=bi00.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi00.d.ts","sourceRoot":"","sources":["../src/bi00.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,CAapE"}
|
package/dist/bi00.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraBi00 (bi00.c); see LICENSE.
|
|
2
|
+
import { DAS2R } from './constants.js';
|
|
3
|
+
/**
|
|
4
|
+
* Frame bias components of IAU 2000 precession-nutation models; part of the
|
|
5
|
+
* Mathews-Herring-Buffett (MHB2000) nutation series, with additions.
|
|
6
|
+
*
|
|
7
|
+
* Notes:
|
|
8
|
+
* 1. The frame bias corrections in longitude and obliquity (radians) are required in order
|
|
9
|
+
* to correct for the offset between the GCRS pole and the mean J2000.0 pole. They
|
|
10
|
+
* define, with respect to the GCRS frame, a J2000.0 mean pole that is consistent with
|
|
11
|
+
* the rest of the IAU 2000A precession-nutation model.
|
|
12
|
+
* 2. In addition to the displacement of the pole, the complete description of the frame
|
|
13
|
+
* bias requires also an offset in right ascension. This is not part of the IAU 2000A
|
|
14
|
+
* model, and is from Chapront et al. (2002). It is returned in radians.
|
|
15
|
+
* 3. This is a supplemented implementation of one aspect of the IAU 2000A nutation model,
|
|
16
|
+
* formally adopted by the IAU General Assembly in 2000, namely MHB2000 (Mathews et al.
|
|
17
|
+
* 2002).
|
|
18
|
+
*
|
|
19
|
+
* References:
|
|
20
|
+
* - Chapront, J., Chapront-Touze, M. & Francou, G., Astron.Astrophys., 387, 700, 2002.
|
|
21
|
+
* - Mathews, P.M., Herring, T.A., Buffet, B.A., "Modeling of nutation and precession: New
|
|
22
|
+
* nutation series for nonrigid Earth and insights into the Earth's interior",
|
|
23
|
+
* J.Geophys.Res., 107, B4, 2002.
|
|
24
|
+
*
|
|
25
|
+
* @returns [dpsibi, depsbi, dra]: longitude and obliquity corrections, and the ICRS RA of
|
|
26
|
+
* the J2000.0 mean equinox (radians)
|
|
27
|
+
*/
|
|
28
|
+
export function bi00() {
|
|
29
|
+
// The frame bias corrections in longitude and obliquity
|
|
30
|
+
const DPBIAS = -0.041775 * DAS2R;
|
|
31
|
+
const DEBIAS = -0.0068192 * DAS2R;
|
|
32
|
+
// The ICRS RA of the J2000.0 equinox (Chapront et al., 2002)
|
|
33
|
+
const DRA0 = -0.0146 * DAS2R;
|
|
34
|
+
// Return the results (which are fixed).
|
|
35
|
+
const dpsibi = DPBIAS;
|
|
36
|
+
const depsbi = DEBIAS;
|
|
37
|
+
const dra = DRA0;
|
|
38
|
+
return [dpsibi, depsbi, dra];
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=bi00.js.map
|
package/dist/bi00.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi00.js","sourceRoot":"","sources":["../src/bi00.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,IAAI;IAClB,wDAAwD;IACxD,MAAM,MAAM,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAA;IAChC,MAAM,MAAM,GAAG,CAAC,SAAS,GAAG,KAAK,CAAA;IAEjC,6DAA6D;IAC7D,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,KAAK,CAAA;IAE5B,wCAAwC;IACxC,MAAM,MAAM,GAAG,MAAM,CAAA;IACrB,MAAM,MAAM,GAAG,MAAM,CAAA;IACrB,MAAM,GAAG,GAAG,IAAI,CAAA;IAChB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAA;AAC9B,CAAC"}
|
package/dist/bp06.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Mat3 } from './internal.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Frame bias and precession, IAU 2006.
|
|
4
|
+
*
|
|
5
|
+
* Notes:
|
|
6
|
+
* 1. The TT date date1+date2 is a Julian Date, apportioned in any convenient way between
|
|
7
|
+
* the two arguments. For example, JD(TT)=2450123.7 could be given as (2450123.7, 0.0),
|
|
8
|
+
* the JD method; (2451545.0, -1421.3), the J2000 method; (2400000.5, 50123.2), the MJD
|
|
9
|
+
* method; or (2450123.5, 0.2), the date and time method. The J2000 method is best matched
|
|
10
|
+
* to the way the argument is handled internally and will deliver the optimum resolution.
|
|
11
|
+
* 2. The matrix rb transforms vectors from GCRS to mean J2000.0 by applying frame bias.
|
|
12
|
+
* 3. The matrix rp transforms vectors from mean J2000.0 to mean of date by applying
|
|
13
|
+
* precession.
|
|
14
|
+
* 4. The matrix rbp transforms vectors from GCRS to mean of date by applying frame bias then
|
|
15
|
+
* precession. It is the product rp x rb.
|
|
16
|
+
*
|
|
17
|
+
* References:
|
|
18
|
+
* - Capitaine, N. & Wallace, P.T., 2006, Astron.Astrophys. 450, 855
|
|
19
|
+
* - Wallace, P.T. & Capitaine, N., 2006, Astron.Astrophys. 459, 981
|
|
20
|
+
*
|
|
21
|
+
* @param date1 TT as a 2-part Julian Date (Note 1)
|
|
22
|
+
* @param date2 TT as a 2-part Julian Date (Note 1)
|
|
23
|
+
* @returns [rb, rp, rbp]: frame bias matrix (Note 2), precession matrix (Note 3) and
|
|
24
|
+
* bias-precession matrix (Note 4)
|
|
25
|
+
*/
|
|
26
|
+
export declare function bp06(date1: number, date2: number): [rb: Mat3, rp: Mat3, rbp: Mat3];
|
|
27
|
+
//# sourceMappingURL=bp06.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bp06.d.ts","sourceRoot":"","sources":["../src/bp06.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAMzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAgBlF"}
|
package/dist/bp06.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraBp06 (bp06.c); see LICENSE.
|
|
2
|
+
import { DJM0, DJM00 } from './constants.js';
|
|
3
|
+
import { cr } from './cr.js';
|
|
4
|
+
import { fw2m } from './fw2m.js';
|
|
5
|
+
import { pfw06 } from './pfw06.js';
|
|
6
|
+
import { pmat06 } from './pmat06.js';
|
|
7
|
+
import { rxr } from './rxr.js';
|
|
8
|
+
import { tr } from './tr.js';
|
|
9
|
+
/**
|
|
10
|
+
* Frame bias and precession, IAU 2006.
|
|
11
|
+
*
|
|
12
|
+
* Notes:
|
|
13
|
+
* 1. The TT date date1+date2 is a Julian Date, apportioned in any convenient way between
|
|
14
|
+
* the two arguments. For example, JD(TT)=2450123.7 could be given as (2450123.7, 0.0),
|
|
15
|
+
* the JD method; (2451545.0, -1421.3), the J2000 method; (2400000.5, 50123.2), the MJD
|
|
16
|
+
* method; or (2450123.5, 0.2), the date and time method. The J2000 method is best matched
|
|
17
|
+
* to the way the argument is handled internally and will deliver the optimum resolution.
|
|
18
|
+
* 2. The matrix rb transforms vectors from GCRS to mean J2000.0 by applying frame bias.
|
|
19
|
+
* 3. The matrix rp transforms vectors from mean J2000.0 to mean of date by applying
|
|
20
|
+
* precession.
|
|
21
|
+
* 4. The matrix rbp transforms vectors from GCRS to mean of date by applying frame bias then
|
|
22
|
+
* precession. It is the product rp x rb.
|
|
23
|
+
*
|
|
24
|
+
* References:
|
|
25
|
+
* - Capitaine, N. & Wallace, P.T., 2006, Astron.Astrophys. 450, 855
|
|
26
|
+
* - Wallace, P.T. & Capitaine, N., 2006, Astron.Astrophys. 459, 981
|
|
27
|
+
*
|
|
28
|
+
* @param date1 TT as a 2-part Julian Date (Note 1)
|
|
29
|
+
* @param date2 TT as a 2-part Julian Date (Note 1)
|
|
30
|
+
* @returns [rb, rp, rbp]: frame bias matrix (Note 2), precession matrix (Note 3) and
|
|
31
|
+
* bias-precession matrix (Note 4)
|
|
32
|
+
*/
|
|
33
|
+
export function bp06(date1, date2) {
|
|
34
|
+
// B matrix.
|
|
35
|
+
const [gamb, phib, psib, epsa] = pfw06(DJM0, DJM00);
|
|
36
|
+
const rb = fw2m(gamb, phib, psib, epsa);
|
|
37
|
+
// PxB matrix (temporary).
|
|
38
|
+
const rbpw = pmat06(date1, date2);
|
|
39
|
+
// P matrix.
|
|
40
|
+
const rbt = tr(rb);
|
|
41
|
+
const rp = rxr(rbpw, rbt);
|
|
42
|
+
// PxB matrix.
|
|
43
|
+
const rbp = cr(rbpw);
|
|
44
|
+
return [rb, rp, rbp];
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=bp06.js.map
|
package/dist/bp06.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bp06.js","sourceRoot":"","sources":["../src/bp06.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAE5B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,IAAI,CAAC,KAAa,EAAE,KAAa;IAC/C,YAAY;IACZ,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACnD,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IAEvC,0BAA0B;IAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;IAEjC,YAAY;IACZ,MAAM,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC,CAAA;IAClB,MAAM,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAEzB,cAAc;IACd,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,CAAA;IAEpB,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;AACtB,CAAC"}
|