@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epj2jd.js","sourceRoot":"","sources":["../src/epj2jd.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE5C;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,MAAM,CAAC,GAAW;IAChC,MAAM,IAAI,GAAG,IAAI,CAAA;IACjB,MAAM,GAAG,GAAG,KAAK,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,MAAM,CAAA;IAE3C,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;AACpB,CAAC"}
|
package/dist/eqec06.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transformation from ICRS equatorial coordinates to ecliptic coordinates (mean equinox and
|
|
3
|
+
* ecliptic of date) using IAU 2006 precession model.
|
|
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. No assumptions are made about whether the coordinates represent starlight and embody
|
|
12
|
+
* astrometric effects such as parallax or aberration.
|
|
13
|
+
* 3. The transformation is approximately that from mean J2000.0 right ascension and
|
|
14
|
+
* declination to ecliptic longitude and latitude (mean equinox and ecliptic of date),
|
|
15
|
+
* with only frame bias (always less than 25 mas) to disturb this classical picture.
|
|
16
|
+
*
|
|
17
|
+
* @param date1 TT as a 2-part Julian date (Note 1)
|
|
18
|
+
* @param date2 TT as a 2-part Julian date (Note 1)
|
|
19
|
+
* @param dr ICRS right ascension (radians)
|
|
20
|
+
* @param dd ICRS declination (radians)
|
|
21
|
+
* @returns [dl, db]: ecliptic longitude and latitude (radians)
|
|
22
|
+
*/
|
|
23
|
+
export declare function eqec06(date1: number, date2: number, dr: number, dd: number): [dl: number, db: number];
|
|
24
|
+
//# sourceMappingURL=eqec06.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eqec06.d.ts","sourceRoot":"","sources":["../src/eqec06.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CACpB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACT,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAkB1B"}
|
package/dist/eqec06.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraEqec06 (eqec06.c); see LICENSE.
|
|
2
|
+
import { anp } from './anp.js';
|
|
3
|
+
import { anpm } from './anpm.js';
|
|
4
|
+
import { c2s } from './c2s.js';
|
|
5
|
+
import { ecm06 } from './ecm06.js';
|
|
6
|
+
import { rxp } from './rxp.js';
|
|
7
|
+
import { s2c } from './s2c.js';
|
|
8
|
+
/**
|
|
9
|
+
* Transformation from ICRS equatorial coordinates to ecliptic coordinates (mean equinox and
|
|
10
|
+
* ecliptic of date) using IAU 2006 precession model.
|
|
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. No assumptions are made about whether the coordinates represent starlight and embody
|
|
19
|
+
* astrometric effects such as parallax or aberration.
|
|
20
|
+
* 3. The transformation is approximately that from mean J2000.0 right ascension and
|
|
21
|
+
* declination to ecliptic longitude and latitude (mean equinox and ecliptic of date),
|
|
22
|
+
* with only frame bias (always less than 25 mas) to disturb this classical picture.
|
|
23
|
+
*
|
|
24
|
+
* @param date1 TT as a 2-part Julian date (Note 1)
|
|
25
|
+
* @param date2 TT as a 2-part Julian date (Note 1)
|
|
26
|
+
* @param dr ICRS right ascension (radians)
|
|
27
|
+
* @param dd ICRS declination (radians)
|
|
28
|
+
* @returns [dl, db]: ecliptic longitude and latitude (radians)
|
|
29
|
+
*/
|
|
30
|
+
export function eqec06(date1, date2, dr, dd) {
|
|
31
|
+
// Spherical to Cartesian.
|
|
32
|
+
const v1 = s2c(dr, dd);
|
|
33
|
+
// Rotation matrix, ICRS equatorial to ecliptic.
|
|
34
|
+
const rm = ecm06(date1, date2);
|
|
35
|
+
// The transformation from ICRS to ecliptic.
|
|
36
|
+
const v2 = rxp(rm, v1);
|
|
37
|
+
// Cartesian to spherical.
|
|
38
|
+
const [a, b] = c2s(v2);
|
|
39
|
+
// Express in conventional ranges.
|
|
40
|
+
const dl = anp(a);
|
|
41
|
+
const db = anpm(b);
|
|
42
|
+
return [dl, db];
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=eqec06.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eqec06.js","sourceRoot":"","sources":["../src/eqec06.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,MAAM,CACpB,KAAa,EACb,KAAa,EACb,EAAU,EACV,EAAU;IAEV,0BAA0B;IAC1B,MAAM,EAAE,GAAG,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IAEtB,gDAAgD;IAChD,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;IAE9B,4CAA4C;IAC5C,MAAM,EAAE,GAAG,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IAEtB,0BAA0B;IAC1B,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAA;IAEtB,kCAAkC;IAClC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAA;IACjB,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;IAElB,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;AACjB,CAAC"}
|
package/dist/era00.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Earth rotation angle (IAU 2000 model).
|
|
3
|
+
*
|
|
4
|
+
* Notes:
|
|
5
|
+
* 1. The UT1 date dj1+dj2 is a Julian Date, apportioned in any convenient way between the
|
|
6
|
+
* arguments dj1 and dj2. For example, JD(UT1)=2450123.7 could be given as (2450123.7,
|
|
7
|
+
* 0.0), the JD method; (2451545.0, -1421.3), the J2000 method; (2400000.5, 50123.2), the
|
|
8
|
+
* MJD method; or (2450123.5, 0.2), the date and time method. The JD method is the most
|
|
9
|
+
* natural and convenient to use in cases where the loss of several decimal digits of
|
|
10
|
+
* resolution is acceptable. The J2000 and MJD methods are good compromises between
|
|
11
|
+
* resolution and convenience. The date & time method is best matched to the algorithm
|
|
12
|
+
* used: maximum precision is delivered when the dj1 argument is for 0hrs UT1 on the day
|
|
13
|
+
* in question and the dj2 argument lies in the range 0 to 1, or vice versa.
|
|
14
|
+
* 2. The algorithm is adapted from Expression 22 of Capitaine et al. 2000. The time argument
|
|
15
|
+
* has been expressed in days directly, and, to retain precision, integer contributions
|
|
16
|
+
* have been eliminated. The same formulation is given in IERS Conventions (2003), Chap.
|
|
17
|
+
* 5, Eq. 14.
|
|
18
|
+
*
|
|
19
|
+
* References:
|
|
20
|
+
* - Capitaine N., Guinot B. and McCarthy D.D, 2000, Astron. Astrophys., 355, 398-405.
|
|
21
|
+
* - McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003), IERS Technical Note No. 32,
|
|
22
|
+
* BKG (2004)
|
|
23
|
+
*
|
|
24
|
+
* @param dj1 UT1 as a 2-part Julian Date (see note)
|
|
25
|
+
* @param dj2 UT1 as a 2-part Julian Date (see note)
|
|
26
|
+
* @returns Earth rotation angle (radians), range 0-2pi
|
|
27
|
+
*/
|
|
28
|
+
export declare function era00(dj1: number, dj2: number): number;
|
|
29
|
+
//# sourceMappingURL=era00.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"era00.d.ts","sourceRoot":"","sources":["../src/era00.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAqBtD"}
|
package/dist/era00.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraEra00 (era00.c); see LICENSE.
|
|
2
|
+
import { anp } from './anp.js';
|
|
3
|
+
import { D2PI, DJ00 } from './constants.js';
|
|
4
|
+
import { fmod } from './internal.js';
|
|
5
|
+
/**
|
|
6
|
+
* Earth rotation angle (IAU 2000 model).
|
|
7
|
+
*
|
|
8
|
+
* Notes:
|
|
9
|
+
* 1. The UT1 date dj1+dj2 is a Julian Date, apportioned in any convenient way between the
|
|
10
|
+
* arguments dj1 and dj2. For example, JD(UT1)=2450123.7 could be given as (2450123.7,
|
|
11
|
+
* 0.0), the JD method; (2451545.0, -1421.3), the J2000 method; (2400000.5, 50123.2), the
|
|
12
|
+
* MJD method; or (2450123.5, 0.2), the date and time method. The JD method is the most
|
|
13
|
+
* natural and convenient to use in cases where the loss of several decimal digits of
|
|
14
|
+
* resolution is acceptable. The J2000 and MJD methods are good compromises between
|
|
15
|
+
* resolution and convenience. The date & time method is best matched to the algorithm
|
|
16
|
+
* used: maximum precision is delivered when the dj1 argument is for 0hrs UT1 on the day
|
|
17
|
+
* in question and the dj2 argument lies in the range 0 to 1, or vice versa.
|
|
18
|
+
* 2. The algorithm is adapted from Expression 22 of Capitaine et al. 2000. The time argument
|
|
19
|
+
* has been expressed in days directly, and, to retain precision, integer contributions
|
|
20
|
+
* have been eliminated. The same formulation is given in IERS Conventions (2003), Chap.
|
|
21
|
+
* 5, Eq. 14.
|
|
22
|
+
*
|
|
23
|
+
* References:
|
|
24
|
+
* - Capitaine N., Guinot B. and McCarthy D.D, 2000, Astron. Astrophys., 355, 398-405.
|
|
25
|
+
* - McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003), IERS Technical Note No. 32,
|
|
26
|
+
* BKG (2004)
|
|
27
|
+
*
|
|
28
|
+
* @param dj1 UT1 as a 2-part Julian Date (see note)
|
|
29
|
+
* @param dj2 UT1 as a 2-part Julian Date (see note)
|
|
30
|
+
* @returns Earth rotation angle (radians), range 0-2pi
|
|
31
|
+
*/
|
|
32
|
+
export function era00(dj1, dj2) {
|
|
33
|
+
let d1, d2;
|
|
34
|
+
// Days since fundamental epoch.
|
|
35
|
+
if (dj1 < dj2) {
|
|
36
|
+
d1 = dj1;
|
|
37
|
+
d2 = dj2;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
d1 = dj2;
|
|
41
|
+
d2 = dj1;
|
|
42
|
+
}
|
|
43
|
+
const t = d1 + (d2 - DJ00);
|
|
44
|
+
// Fractional part of T (days).
|
|
45
|
+
const f = fmod(d1, 1.0) + fmod(d2, 1.0);
|
|
46
|
+
// Earth rotation angle at this UT1.
|
|
47
|
+
const theta = anp(D2PI * (f + 0.7790572732640
|
|
48
|
+
+ 0.00273781191135448 * t));
|
|
49
|
+
return theta;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=era00.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"era00.js","sourceRoot":"","sources":["../src/era00.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,KAAK,CAAC,GAAW,EAAE,GAAW;IAC5C,IAAI,EAAU,EAAE,EAAU,CAAA;IAE1B,gCAAgC;IAChC,IAAI,GAAG,GAAG,GAAG,EAAE,CAAC;QACd,EAAE,GAAG,GAAG,CAAA;QACR,EAAE,GAAG,GAAG,CAAA;IACV,CAAC;SAAM,CAAC;QACN,EAAE,GAAG,GAAG,CAAA;QACR,EAAE,GAAG,GAAG,CAAA;IACV,CAAC;IACD,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,CAAA;IAE1B,+BAA+B;IAC/B,MAAM,CAAC,GAAG,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAA;IAEvC,oCAAoC;IACpC,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,eAAe;UACjB,mBAAmB,GAAG,CAAC,CAAC,CAAC,CAAA;IAErD,OAAO,KAAK,CAAA;AACd,CAAC"}
|
package/dist/fw2m.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Mat3 } from './internal.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Form rotation matrix given the Fukushima-Williams angles.
|
|
4
|
+
*
|
|
5
|
+
* Notes:
|
|
6
|
+
* 1. Naming the following points:
|
|
7
|
+
*
|
|
8
|
+
* e = J2000.0 ecliptic pole,
|
|
9
|
+
* p = GCRS pole,
|
|
10
|
+
* E = ecliptic pole of date,
|
|
11
|
+
* and P = CIP,
|
|
12
|
+
*
|
|
13
|
+
* the four Fukushima-Williams angles are as follows:
|
|
14
|
+
*
|
|
15
|
+
* gamb = gamma = epE
|
|
16
|
+
* phib = phi = pE
|
|
17
|
+
* psi = psi = pEP
|
|
18
|
+
* eps = epsilon = EP
|
|
19
|
+
*
|
|
20
|
+
* 2. The matrix representing the combined effects of frame bias, precession and nutation
|
|
21
|
+
* is:
|
|
22
|
+
*
|
|
23
|
+
* NxPxB = R_1(-eps).R_3(-psi).R_1(phib).R_3(gamb)
|
|
24
|
+
*
|
|
25
|
+
* 3. The present function can construct three different matrices, depending on which
|
|
26
|
+
* angles are supplied as the arguments gamb, phib, psi and eps:
|
|
27
|
+
* - To obtain the nutation x precession x frame bias matrix, first generate the four
|
|
28
|
+
* precession angles known conventionally as gamma_bar, phi_bar, psi_bar and
|
|
29
|
+
* epsilon_A, then generate the nutation components Dpsi and Depsilon and add them to
|
|
30
|
+
* psi_bar and epsilon_A, and finally call the present function using those four
|
|
31
|
+
* angles as arguments.
|
|
32
|
+
* - To obtain the precession x frame bias matrix, generate the four precession angles
|
|
33
|
+
* and call the present function.
|
|
34
|
+
* - To obtain the frame bias matrix, generate the four precession angles for date
|
|
35
|
+
* J2000.0 and call the present function.
|
|
36
|
+
*
|
|
37
|
+
* The nutation-only and precession-only matrices can if necessary be obtained by
|
|
38
|
+
* combining these three appropriately.
|
|
39
|
+
*
|
|
40
|
+
* References:
|
|
41
|
+
* - Capitaine, N. & Wallace, P.T., 2006, Astron.Astrophys. 450, 855
|
|
42
|
+
* - Hilton, J. et al., 2006, Celest.Mech.Dyn.Astron. 94, 351
|
|
43
|
+
*
|
|
44
|
+
* @param gamb F-W angle gamma_bar (radians)
|
|
45
|
+
* @param phib F-W angle phi_bar (radians)
|
|
46
|
+
* @param psi F-W angle psi (radians)
|
|
47
|
+
* @param eps F-W angle epsilon (radians)
|
|
48
|
+
* @returns r: rotation matrix
|
|
49
|
+
*/
|
|
50
|
+
export declare function fw2m(gamb: number, phib: number, psi: number, eps: number): Mat3;
|
|
51
|
+
//# sourceMappingURL=fw2m.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fw2m.d.ts","sourceRoot":"","sources":["../src/fw2m.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAKzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAS/E"}
|
package/dist/fw2m.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ir } from './ir.js';
|
|
2
|
+
import { rx } from './rx.js';
|
|
3
|
+
import { rz } from './rz.js';
|
|
4
|
+
/**
|
|
5
|
+
* Form rotation matrix given the Fukushima-Williams angles.
|
|
6
|
+
*
|
|
7
|
+
* Notes:
|
|
8
|
+
* 1. Naming the following points:
|
|
9
|
+
*
|
|
10
|
+
* e = J2000.0 ecliptic pole,
|
|
11
|
+
* p = GCRS pole,
|
|
12
|
+
* E = ecliptic pole of date,
|
|
13
|
+
* and P = CIP,
|
|
14
|
+
*
|
|
15
|
+
* the four Fukushima-Williams angles are as follows:
|
|
16
|
+
*
|
|
17
|
+
* gamb = gamma = epE
|
|
18
|
+
* phib = phi = pE
|
|
19
|
+
* psi = psi = pEP
|
|
20
|
+
* eps = epsilon = EP
|
|
21
|
+
*
|
|
22
|
+
* 2. The matrix representing the combined effects of frame bias, precession and nutation
|
|
23
|
+
* is:
|
|
24
|
+
*
|
|
25
|
+
* NxPxB = R_1(-eps).R_3(-psi).R_1(phib).R_3(gamb)
|
|
26
|
+
*
|
|
27
|
+
* 3. The present function can construct three different matrices, depending on which
|
|
28
|
+
* angles are supplied as the arguments gamb, phib, psi and eps:
|
|
29
|
+
* - To obtain the nutation x precession x frame bias matrix, first generate the four
|
|
30
|
+
* precession angles known conventionally as gamma_bar, phi_bar, psi_bar and
|
|
31
|
+
* epsilon_A, then generate the nutation components Dpsi and Depsilon and add them to
|
|
32
|
+
* psi_bar and epsilon_A, and finally call the present function using those four
|
|
33
|
+
* angles as arguments.
|
|
34
|
+
* - To obtain the precession x frame bias matrix, generate the four precession angles
|
|
35
|
+
* and call the present function.
|
|
36
|
+
* - To obtain the frame bias matrix, generate the four precession angles for date
|
|
37
|
+
* J2000.0 and call the present function.
|
|
38
|
+
*
|
|
39
|
+
* The nutation-only and precession-only matrices can if necessary be obtained by
|
|
40
|
+
* combining these three appropriately.
|
|
41
|
+
*
|
|
42
|
+
* References:
|
|
43
|
+
* - Capitaine, N. & Wallace, P.T., 2006, Astron.Astrophys. 450, 855
|
|
44
|
+
* - Hilton, J. et al., 2006, Celest.Mech.Dyn.Astron. 94, 351
|
|
45
|
+
*
|
|
46
|
+
* @param gamb F-W angle gamma_bar (radians)
|
|
47
|
+
* @param phib F-W angle phi_bar (radians)
|
|
48
|
+
* @param psi F-W angle psi (radians)
|
|
49
|
+
* @param eps F-W angle epsilon (radians)
|
|
50
|
+
* @returns r: rotation matrix
|
|
51
|
+
*/
|
|
52
|
+
export function fw2m(gamb, phib, psi, eps) {
|
|
53
|
+
// Construct the matrix.
|
|
54
|
+
let r = ir();
|
|
55
|
+
r = rz(gamb, r);
|
|
56
|
+
r = rx(phib, r);
|
|
57
|
+
r = rz(-psi, r);
|
|
58
|
+
r = rx(-eps, r);
|
|
59
|
+
return r;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=fw2m.js.map
|
package/dist/fw2m.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fw2m.js","sourceRoot":"","sources":["../src/fw2m.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,UAAU,IAAI,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAE,GAAW;IACvE,wBAAwB;IACxB,IAAI,CAAC,GAAG,EAAE,EAAE,CAAA;IACZ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IACf,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IACf,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;IACf,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;IAEf,OAAO,CAAC,CAAA;AACV,CAAC"}
|
package/dist/g2icrs.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transformation from Galactic coordinates to ICRS.
|
|
3
|
+
*
|
|
4
|
+
* Notes:
|
|
5
|
+
* 1. The IAU 1958 system of Galactic coordinates was defined with respect to the now
|
|
6
|
+
* obsolete reference system FK4 B1950.0. When interpreting the system in a modern
|
|
7
|
+
* context, several factors have to be taken into account:
|
|
8
|
+
* - The inclusion in FK4 positions of the E-terms of aberration.
|
|
9
|
+
* - The distortion of the FK4 proper motion system by differential Galactic rotation.
|
|
10
|
+
* - The use of the B1950.0 equinox rather than the now-standard J2000.0.
|
|
11
|
+
* - The frame bias between ICRS and the J2000.0 mean place system.
|
|
12
|
+
*
|
|
13
|
+
* The Hipparcos Catalogue (Perryman & ESA 1997) provides a rotation matrix that
|
|
14
|
+
* transforms directly between ICRS and Galactic coordinates with the above factors
|
|
15
|
+
* taken into account. The matrix is derived from three angles, namely the ICRS
|
|
16
|
+
* coordinates of the Galactic pole and the longitude of the ascending node of the
|
|
17
|
+
* Galactic equator on the ICRS equator. They are given in degrees to five decimal places
|
|
18
|
+
* and for canonical purposes are regarded as exact. In the Hipparcos Catalogue the
|
|
19
|
+
* matrix elements are given to 10 decimal places (about 20 microarcsec). In the present
|
|
20
|
+
* ERFA function the matrix elements have been recomputed from the canonical three angles
|
|
21
|
+
* and are given to 30 decimal places.
|
|
22
|
+
* 2. The inverse transformation is performed by the function icrs2g.
|
|
23
|
+
*
|
|
24
|
+
* Reference: Perryman M.A.C. & ESA, 1997, ESA SP-1200, The Hipparcos and Tycho catalogues.
|
|
25
|
+
* Astrometric and photometric star catalogues derived from the ESA Hipparcos Space Astrometry
|
|
26
|
+
* Mission. ESA Publications Division, Noordwijk, Netherlands.
|
|
27
|
+
*
|
|
28
|
+
* @param dl Galactic longitude (radians)
|
|
29
|
+
* @param db Galactic latitude (radians)
|
|
30
|
+
* @returns [dr, dd]: ICRS right ascension and declination (radians)
|
|
31
|
+
*/
|
|
32
|
+
export declare function g2icrs(dl: number, db: number): [dr: number, dd: number];
|
|
33
|
+
//# sourceMappingURL=g2icrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"g2icrs.d.ts","sourceRoot":"","sources":["../src/g2icrs.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAkCvE"}
|
package/dist/g2icrs.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraG2icrs (g2icrs.c); see LICENSE.
|
|
2
|
+
import { anp } from './anp.js';
|
|
3
|
+
import { anpm } from './anpm.js';
|
|
4
|
+
import { c2s } from './c2s.js';
|
|
5
|
+
import { s2c } from './s2c.js';
|
|
6
|
+
import { trxp } from './trxp.js';
|
|
7
|
+
/**
|
|
8
|
+
* Transformation from Galactic coordinates to ICRS.
|
|
9
|
+
*
|
|
10
|
+
* Notes:
|
|
11
|
+
* 1. The IAU 1958 system of Galactic coordinates was defined with respect to the now
|
|
12
|
+
* obsolete reference system FK4 B1950.0. When interpreting the system in a modern
|
|
13
|
+
* context, several factors have to be taken into account:
|
|
14
|
+
* - The inclusion in FK4 positions of the E-terms of aberration.
|
|
15
|
+
* - The distortion of the FK4 proper motion system by differential Galactic rotation.
|
|
16
|
+
* - The use of the B1950.0 equinox rather than the now-standard J2000.0.
|
|
17
|
+
* - The frame bias between ICRS and the J2000.0 mean place system.
|
|
18
|
+
*
|
|
19
|
+
* The Hipparcos Catalogue (Perryman & ESA 1997) provides a rotation matrix that
|
|
20
|
+
* transforms directly between ICRS and Galactic coordinates with the above factors
|
|
21
|
+
* taken into account. The matrix is derived from three angles, namely the ICRS
|
|
22
|
+
* coordinates of the Galactic pole and the longitude of the ascending node of the
|
|
23
|
+
* Galactic equator on the ICRS equator. They are given in degrees to five decimal places
|
|
24
|
+
* and for canonical purposes are regarded as exact. In the Hipparcos Catalogue the
|
|
25
|
+
* matrix elements are given to 10 decimal places (about 20 microarcsec). In the present
|
|
26
|
+
* ERFA function the matrix elements have been recomputed from the canonical three angles
|
|
27
|
+
* and are given to 30 decimal places.
|
|
28
|
+
* 2. The inverse transformation is performed by the function icrs2g.
|
|
29
|
+
*
|
|
30
|
+
* Reference: Perryman M.A.C. & ESA, 1997, ESA SP-1200, The Hipparcos and Tycho catalogues.
|
|
31
|
+
* Astrometric and photometric star catalogues derived from the ESA Hipparcos Space Astrometry
|
|
32
|
+
* Mission. ESA Publications Division, Noordwijk, Netherlands.
|
|
33
|
+
*
|
|
34
|
+
* @param dl Galactic longitude (radians)
|
|
35
|
+
* @param db Galactic latitude (radians)
|
|
36
|
+
* @returns [dr, dd]: ICRS right ascension and declination (radians)
|
|
37
|
+
*/
|
|
38
|
+
export function g2icrs(dl, db) {
|
|
39
|
+
/*
|
|
40
|
+
* L2,B2 system of Galactic coordinates in the form presented in the Hipparcos Catalogue.
|
|
41
|
+
* In degrees:
|
|
42
|
+
*
|
|
43
|
+
* P = 192.85948 right ascension of the Galactic north pole in ICRS
|
|
44
|
+
* Q = 27.12825 declination of the Galactic north pole in ICRS
|
|
45
|
+
* R = 32.93192 Galactic longitude of the ascending node of
|
|
46
|
+
* the Galactic equator on the ICRS equator
|
|
47
|
+
*
|
|
48
|
+
* ICRS to Galactic rotation matrix, obtained by computing
|
|
49
|
+
* R_3(-R) R_1(pi/2-Q) R_3(pi/2+P) to the full precision shown:
|
|
50
|
+
*/
|
|
51
|
+
const r = [[-0.054875560416215368492398900454,
|
|
52
|
+
-0.873437090234885048760383168409,
|
|
53
|
+
-0.483835015548713226831774175116],
|
|
54
|
+
[+0.494109427875583673525222371358,
|
|
55
|
+
-0.444829629960011178146614061616,
|
|
56
|
+
+0.746982244497218890527388004556],
|
|
57
|
+
[-0.867666149019004701181616534570,
|
|
58
|
+
-0.198076373431201528180486091412,
|
|
59
|
+
+0.455983776175066922272100478348]];
|
|
60
|
+
// Spherical to Cartesian.
|
|
61
|
+
const v1 = s2c(dl, db);
|
|
62
|
+
// Galactic to ICRS.
|
|
63
|
+
const v2 = trxp(r, v1);
|
|
64
|
+
// Cartesian to spherical.
|
|
65
|
+
const [dr, dd] = c2s(v2);
|
|
66
|
+
// Express in conventional ranges.
|
|
67
|
+
return [anp(dr), anpm(dd)];
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=g2icrs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"g2icrs.js","sourceRoot":"","sources":["../src/g2icrs.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,UAAU,MAAM,CAAC,EAAU,EAAE,EAAU;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,GAAS,CAAE,CAAE,CAAC,gCAAgC;YACjC,CAAC,gCAAgC;YACjC,CAAC,gCAAgC,CAAE;QACrC,CAAE,CAAC,gCAAgC;YACjC,CAAC,gCAAgC;YACjC,CAAC,gCAAgC,CAAE;QACrC,CAAE,CAAC,gCAAgC;YACjC,CAAC,gCAAgC;YACjC,CAAC,gCAAgC,CAAE,CAAE,CAAA;IAEzD,0BAA0B;IAC1B,MAAM,EAAE,GAAG,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IAEtB,oBAAoB;IACpB,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAEtB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAA;IAExB,kCAAkC;IAClC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAA;AAC5B,CAAC"}
|
package/dist/gmst06.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Greenwich mean sidereal time (consistent with IAU 2006 precession).
|
|
3
|
+
*
|
|
4
|
+
* Notes:
|
|
5
|
+
* 1. The UT1 and TT dates uta+utb and tta+ttb respectively, are both Julian Dates,
|
|
6
|
+
* apportioned in any convenient way between the argument pairs. For example, JD=2450123.7
|
|
7
|
+
* could be given as (2450123.7, 0.0), the JD method; (2451545.0, -1421.3), the J2000
|
|
8
|
+
* method; (2400000.5, 50123.2), the MJD method; or (2450123.5, 0.2), the date and time
|
|
9
|
+
* method. The JD method is the most natural and convenient to use in cases where the loss
|
|
10
|
+
* of several decimal digits of resolution is acceptable (in the case of UT; the TT is not
|
|
11
|
+
* at all critical in this respect). The J2000 and MJD methods are good compromises
|
|
12
|
+
* between resolution and convenience. For UT, the date & time method is best matched to
|
|
13
|
+
* the algorithm that is used by the Earth rotation angle function, called internally:
|
|
14
|
+
* maximum precision is delivered when the uta argument is for 0hrs UT1 on the day in
|
|
15
|
+
* question and the utb argument lies in the range 0 to 1, or vice versa.
|
|
16
|
+
* 2. Both UT1 and TT are required, UT1 to predict the Earth rotation and TT to predict the
|
|
17
|
+
* effects of precession. If UT1 is used for both purposes, errors of order 100
|
|
18
|
+
* microarcseconds result.
|
|
19
|
+
* 3. This GMST is compatible with the IAU 2006 precession and must not be used with other
|
|
20
|
+
* precession models.
|
|
21
|
+
* 4. The result is returned in the range 0 to 2pi.
|
|
22
|
+
*
|
|
23
|
+
* Reference: Capitaine, N., Wallace, P.T. & Chapront, J., 2005, Astron.Astrophys. 432, 355
|
|
24
|
+
*
|
|
25
|
+
* @param uta UT1 as a 2-part Julian Date (Notes 1, 2)
|
|
26
|
+
* @param utb UT1 as a 2-part Julian Date (Notes 1, 2)
|
|
27
|
+
* @param tta TT as a 2-part Julian Date (Notes 1, 2)
|
|
28
|
+
* @param ttb TT as a 2-part Julian Date (Notes 1, 2)
|
|
29
|
+
* @returns Greenwich mean sidereal time (radians)
|
|
30
|
+
*/
|
|
31
|
+
export declare function gmst06(uta: number, utb: number, tta: number, ttb: number): number;
|
|
32
|
+
//# sourceMappingURL=gmst06.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmst06.d.ts","sourceRoot":"","sources":["../src/gmst06.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAejF"}
|
package/dist/gmst06.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraGmst06 (gmst06.c); see LICENSE.
|
|
2
|
+
import { anp } from './anp.js';
|
|
3
|
+
import { DAS2R, DJ00, DJC } from './constants.js';
|
|
4
|
+
import { era00 } from './era00.js';
|
|
5
|
+
/**
|
|
6
|
+
* Greenwich mean sidereal time (consistent with IAU 2006 precession).
|
|
7
|
+
*
|
|
8
|
+
* Notes:
|
|
9
|
+
* 1. The UT1 and TT dates uta+utb and tta+ttb respectively, are both Julian Dates,
|
|
10
|
+
* apportioned in any convenient way between the argument pairs. For example, JD=2450123.7
|
|
11
|
+
* could be given as (2450123.7, 0.0), the JD method; (2451545.0, -1421.3), the J2000
|
|
12
|
+
* method; (2400000.5, 50123.2), the MJD method; or (2450123.5, 0.2), the date and time
|
|
13
|
+
* method. The JD method is the most natural and convenient to use in cases where the loss
|
|
14
|
+
* of several decimal digits of resolution is acceptable (in the case of UT; the TT is not
|
|
15
|
+
* at all critical in this respect). The J2000 and MJD methods are good compromises
|
|
16
|
+
* between resolution and convenience. For UT, the date & time method is best matched to
|
|
17
|
+
* the algorithm that is used by the Earth rotation angle function, called internally:
|
|
18
|
+
* maximum precision is delivered when the uta argument is for 0hrs UT1 on the day in
|
|
19
|
+
* question and the utb argument lies in the range 0 to 1, or vice versa.
|
|
20
|
+
* 2. Both UT1 and TT are required, UT1 to predict the Earth rotation and TT to predict the
|
|
21
|
+
* effects of precession. If UT1 is used for both purposes, errors of order 100
|
|
22
|
+
* microarcseconds result.
|
|
23
|
+
* 3. This GMST is compatible with the IAU 2006 precession and must not be used with other
|
|
24
|
+
* precession models.
|
|
25
|
+
* 4. The result is returned in the range 0 to 2pi.
|
|
26
|
+
*
|
|
27
|
+
* Reference: Capitaine, N., Wallace, P.T. & Chapront, J., 2005, Astron.Astrophys. 432, 355
|
|
28
|
+
*
|
|
29
|
+
* @param uta UT1 as a 2-part Julian Date (Notes 1, 2)
|
|
30
|
+
* @param utb UT1 as a 2-part Julian Date (Notes 1, 2)
|
|
31
|
+
* @param tta TT as a 2-part Julian Date (Notes 1, 2)
|
|
32
|
+
* @param ttb TT as a 2-part Julian Date (Notes 1, 2)
|
|
33
|
+
* @returns Greenwich mean sidereal time (radians)
|
|
34
|
+
*/
|
|
35
|
+
export function gmst06(uta, utb, tta, ttb) {
|
|
36
|
+
// TT Julian centuries since J2000.0.
|
|
37
|
+
const t = ((tta - DJ00) + ttb) / DJC;
|
|
38
|
+
// Greenwich mean sidereal time, IAU 2006.
|
|
39
|
+
const gmst = anp(era00(uta, utb) +
|
|
40
|
+
(0.014506 +
|
|
41
|
+
(4612.156534 +
|
|
42
|
+
(1.3915817 +
|
|
43
|
+
(-0.00000044 +
|
|
44
|
+
(-0.000029956 +
|
|
45
|
+
(-0.0000000368)
|
|
46
|
+
* t) * t) * t) * t) * t) * DAS2R);
|
|
47
|
+
return gmst;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=gmst06.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmst06.js","sourceRoot":"","sources":["../src/gmst06.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,MAAM,CAAC,GAAW,EAAE,GAAW,EAAE,GAAW,EAAE,GAAW;IACvE,qCAAqC;IACrC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAA;IAEpC,0CAA0C;IAC1C,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC;QAChB,CAAK,QAAQ;YACb,CAAG,WAAW;gBACd,CAAM,SAAS;oBACf,CAAK,CAAC,UAAU;wBAChB,CAAK,CAAC,WAAW;4BACjB,CAAK,CAAC,YAAY,CAAE;kCAC1B,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAA;IAEzC,OAAO,IAAI,CAAA;AACb,CAAC"}
|
package/dist/icrs2g.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transformation from ICRS to Galactic coordinates.
|
|
3
|
+
*
|
|
4
|
+
* Notes:
|
|
5
|
+
* 1. The IAU 1958 system of Galactic coordinates was defined with respect to the now
|
|
6
|
+
* obsolete reference system FK4 B1950.0. When interpreting the system in a modern
|
|
7
|
+
* context, several factors have to be taken into account:
|
|
8
|
+
* - The inclusion in FK4 positions of the E-terms of aberration.
|
|
9
|
+
* - The distortion of the FK4 proper motion system by differential Galactic rotation.
|
|
10
|
+
* - The use of the B1950.0 equinox rather than the now-standard J2000.0.
|
|
11
|
+
* - The frame bias between ICRS and the J2000.0 mean place system.
|
|
12
|
+
*
|
|
13
|
+
* The Hipparcos Catalogue (Perryman & ESA 1997) provides a rotation matrix that
|
|
14
|
+
* transforms directly between ICRS and Galactic coordinates with the above factors
|
|
15
|
+
* taken into account. The matrix is derived from three angles, namely the ICRS
|
|
16
|
+
* coordinates of the Galactic pole and the longitude of the ascending node of the
|
|
17
|
+
* Galactic equator on the ICRS equator. They are given in degrees to five decimal places
|
|
18
|
+
* and for canonical purposes are regarded as exact. In the Hipparcos Catalogue the
|
|
19
|
+
* matrix elements are given to 10 decimal places (about 20 microarcsec). In the present
|
|
20
|
+
* ERFA function the matrix elements have been recomputed from the canonical three angles
|
|
21
|
+
* and are given to 30 decimal places.
|
|
22
|
+
* 2. The inverse transformation is performed by the function g2icrs.
|
|
23
|
+
*
|
|
24
|
+
* Reference: Perryman M.A.C. & ESA, 1997, ESA SP-1200, The Hipparcos and Tycho catalogues.
|
|
25
|
+
* Astrometric and photometric star catalogues derived from the ESA Hipparcos Space Astrometry
|
|
26
|
+
* Mission. ESA Publications Division, Noordwijk, Netherlands.
|
|
27
|
+
*
|
|
28
|
+
* @param dr ICRS right ascension (radians)
|
|
29
|
+
* @param dd ICRS declination (radians)
|
|
30
|
+
* @returns [dl, db]: Galactic longitude and latitude (radians)
|
|
31
|
+
*/
|
|
32
|
+
export declare function icrs2g(dr: number, dd: number): [dl: number, db: number];
|
|
33
|
+
//# sourceMappingURL=icrs2g.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icrs2g.d.ts","sourceRoot":"","sources":["../src/icrs2g.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAkCvE"}
|
package/dist/icrs2g.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Translated from ERFA 2.0.1 eraIcrs2g (icrs2g.c); see LICENSE.
|
|
2
|
+
import { anp } from './anp.js';
|
|
3
|
+
import { anpm } from './anpm.js';
|
|
4
|
+
import { c2s } from './c2s.js';
|
|
5
|
+
import { rxp } from './rxp.js';
|
|
6
|
+
import { s2c } from './s2c.js';
|
|
7
|
+
/**
|
|
8
|
+
* Transformation from ICRS to Galactic coordinates.
|
|
9
|
+
*
|
|
10
|
+
* Notes:
|
|
11
|
+
* 1. The IAU 1958 system of Galactic coordinates was defined with respect to the now
|
|
12
|
+
* obsolete reference system FK4 B1950.0. When interpreting the system in a modern
|
|
13
|
+
* context, several factors have to be taken into account:
|
|
14
|
+
* - The inclusion in FK4 positions of the E-terms of aberration.
|
|
15
|
+
* - The distortion of the FK4 proper motion system by differential Galactic rotation.
|
|
16
|
+
* - The use of the B1950.0 equinox rather than the now-standard J2000.0.
|
|
17
|
+
* - The frame bias between ICRS and the J2000.0 mean place system.
|
|
18
|
+
*
|
|
19
|
+
* The Hipparcos Catalogue (Perryman & ESA 1997) provides a rotation matrix that
|
|
20
|
+
* transforms directly between ICRS and Galactic coordinates with the above factors
|
|
21
|
+
* taken into account. The matrix is derived from three angles, namely the ICRS
|
|
22
|
+
* coordinates of the Galactic pole and the longitude of the ascending node of the
|
|
23
|
+
* Galactic equator on the ICRS equator. They are given in degrees to five decimal places
|
|
24
|
+
* and for canonical purposes are regarded as exact. In the Hipparcos Catalogue the
|
|
25
|
+
* matrix elements are given to 10 decimal places (about 20 microarcsec). In the present
|
|
26
|
+
* ERFA function the matrix elements have been recomputed from the canonical three angles
|
|
27
|
+
* and are given to 30 decimal places.
|
|
28
|
+
* 2. The inverse transformation is performed by the function g2icrs.
|
|
29
|
+
*
|
|
30
|
+
* Reference: Perryman M.A.C. & ESA, 1997, ESA SP-1200, The Hipparcos and Tycho catalogues.
|
|
31
|
+
* Astrometric and photometric star catalogues derived from the ESA Hipparcos Space Astrometry
|
|
32
|
+
* Mission. ESA Publications Division, Noordwijk, Netherlands.
|
|
33
|
+
*
|
|
34
|
+
* @param dr ICRS right ascension (radians)
|
|
35
|
+
* @param dd ICRS declination (radians)
|
|
36
|
+
* @returns [dl, db]: Galactic longitude and latitude (radians)
|
|
37
|
+
*/
|
|
38
|
+
export function icrs2g(dr, dd) {
|
|
39
|
+
/*
|
|
40
|
+
* L2,B2 system of Galactic coordinates in the form presented in the Hipparcos Catalogue.
|
|
41
|
+
* In degrees:
|
|
42
|
+
*
|
|
43
|
+
* P = 192.85948 right ascension of the Galactic north pole in ICRS
|
|
44
|
+
* Q = 27.12825 declination of the Galactic north pole in ICRS
|
|
45
|
+
* R = 32.93192 Galactic longitude of the ascending node of
|
|
46
|
+
* the Galactic equator on the ICRS equator
|
|
47
|
+
*
|
|
48
|
+
* ICRS to Galactic rotation matrix, obtained by computing
|
|
49
|
+
* R_3(-R) R_1(pi/2-Q) R_3(pi/2+P) to the full precision shown:
|
|
50
|
+
*/
|
|
51
|
+
const r = [[-0.054875560416215368492398900454,
|
|
52
|
+
-0.873437090234885048760383168409,
|
|
53
|
+
-0.483835015548713226831774175116],
|
|
54
|
+
[+0.494109427875583673525222371358,
|
|
55
|
+
-0.444829629960011178146614061616,
|
|
56
|
+
+0.746982244497218890527388004556],
|
|
57
|
+
[-0.867666149019004701181616534570,
|
|
58
|
+
-0.198076373431201528180486091412,
|
|
59
|
+
+0.455983776175066922272100478348]];
|
|
60
|
+
// Spherical to Cartesian.
|
|
61
|
+
const v1 = s2c(dr, dd);
|
|
62
|
+
// ICRS to Galactic.
|
|
63
|
+
const v2 = rxp(r, v1);
|
|
64
|
+
// Cartesian to spherical.
|
|
65
|
+
const [dl, db] = c2s(v2);
|
|
66
|
+
// Express in conventional ranges.
|
|
67
|
+
return [anp(dl), anpm(db)];
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=icrs2g.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icrs2g.js","sourceRoot":"","sources":["../src/icrs2g.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,UAAU,MAAM,CAAC,EAAU,EAAE,EAAU;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,GAAS,CAAE,CAAE,CAAC,gCAAgC;YACjC,CAAC,gCAAgC;YACjC,CAAC,gCAAgC,CAAE;QACrC,CAAE,CAAC,gCAAgC;YACjC,CAAC,gCAAgC;YACjC,CAAC,gCAAgC,CAAE;QACrC,CAAE,CAAC,gCAAgC;YACjC,CAAC,gCAAgC;YACjC,CAAC,gCAAgC,CAAE,CAAE,CAAA;IAEzD,0BAA0B;IAC1B,MAAM,EAAE,GAAG,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;IAEtB,oBAAoB;IACpB,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAErB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAA;IAExB,kCAAkC;IAClC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAA;AAC5B,CAAC"}
|