python-3.x - 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 - 我应该如何每五年增加一个值并将这些值放入 Python 中的列表中?
- angularjs - 将 curl 与 AngularJS 和 bash 一起使用
- php - 我需要在 Laravel 中创建 .Zip 文件,但我的代码不起作用
- javascript - 将数据表原始 ID 获取到另一个数据表
- java - 为什么这会产生意想不到的返回值?
- python - DBSCAN 标签数量与预测标签不匹配
- java - 在将单个字符串压入堆栈之前将其转换为字符
- c++ - openssl 中已弃用的 AES_ige_encrypt() API 的替代方案
- security - 如何创建 API 密钥和安全密钥?
- pandas - 熊猫合并而不指定“开”