我正在尝试获取外行星的位置,我只是想确保我的代码是正确的。
lon = 45.138967
lat = -93.342730
ts = load.timescale()
t = ts.now()
print(t.utc_jpl())
planets = load('de422.bsp')
body = planets['SATURN_BARYCENTER']
earth = planets['Earth']
myLocation = earth + Topos(lat, lon)
apparent = myLocation.at(t).observe(body).apparent()
alt, az, distance = apparent.altaz()
print(alt.degrees)
print(az.degrees)
print(distance)
使用 SATURN_BARYCENTER 是正确的方法吗?