首页 > 解决方案 > 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')

提前致谢!

标签: python-3.xastronomyastropy

解决方案


推荐阅读