Mar-20-2019, 05:24 PM
Reference is made to online manual, here http://docs.astropy.org/en/stable/api/as....IERS.html
I'ld like to run this code:
Help needed on selecting the appropriate class to import the function pm_xy(), thanks in advance and cheers
I'ld like to run this code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# -------- tempo5.py --------------- from astropy.time import Time #from astropy.utils.iers import pm_xy # error arises, one more tentative below from astropy.iers_table import pm_xy t = Time( '2007-04-05 12:00:0.0' , format = 'iso' , scale = 'utc' , precision = 6 ) # print (t.utc.iso, t.utc.mjd) print (t.utc.jd1, t.utc.jd2) # print (pm_xy(t.utc.jd1, t.utc.jd2)) #---------- OUTPUT ---------- # 2007-04-05 12:00:00.000000 54195.5 # 2454196.0 0.0 <--- corrected values of (jd1,jd2) # # ------ Error -------- (from astropy.iers_table import pm_xy) -- # C:\Training>python tempo5.py # Traceback (most recent call last): # File "tempo5.py", line 4, in <module> # from astropy.iers_table import pm_xy # ModuleNotFoundError: No module named 'astropy.iers_table' |