Mar-21-2019, 12:18 PM
Completely defined, now!
Output:[<Quantity 0.034465 arcsec>, <Quantity 0.483674 arcsec>]
# -------- tempo8.py --------------- from astropy.time import Time from astropy.utils import iers t = Time('2007-04-05 12:00:0.0', format='iso', scale='utc', precision=6) # iers_b = iers.IERS_B.open() print (iers_b.ut1_utc(t)) t.delta_ut1_utc = iers_b.ut1_utc(t) print(t.delta_ut1_utc) print(t.ut1.iso, t.ut1.mjd) print(t.utc.iso, t.utc.mjd) # print (t.utc.iso, t.utc.mjd) print (t.utc.jd1, t.utc.jd2) # j1=float(t.utc.jd1) j2=float(t.utc.jd2) # print (iers_b.pm_xy(j1,j2)) # appropriate command ... WOW! #---------- OUTPUT ---------- # -0.07209225 s # -0.07209225 # 2007-04-05 11:59:59.927908 54195.4999991656 # 2007-04-05 12:00:00.000000 54195.5 # 2007-04-05 12:00:00.000000 54195.5 # 2454196.0 0.0 # [<Quantity 0.034465 arcsec>, <Quantity 0.483674 arcsec>] # -----------------------------