AstroPy获取当前位置的恒星时间

时间:2019-04-27 10:43:11

标签: python-3.x astronomy astropy

我想使用AstroPy获取我所在位置的当前恒星时间,但结果是错误的。我的代码如下:

from astropy.coordinates import EarthLocation
from astropy.time import Time
from astropy import units as u

observing_location = EarthLocation(lat=46.57*u.deg, lon=7.65*u.deg)
observing_time = Time(datetime.datetime.utcnow(), scale='utc', location=observing_location)
LST = observing_time.sidereal_time('mean')

谢谢!

0 个答案:

没有答案