用于跟踪国际空间站信息的Python包装器http://opennotify.org/
ISS-Info的Python项目详细描述
ISS信息
通过http://open-notify.org跟踪国际空间站信息的Python包装器
安装
要安装此软件包,只需运行:
pip install ISS_Info
使用
要使用ISS_Info,首先需要导入包:
^{pr2}$国际空间站当前位置:
ISS_Info.iss_current_loc()# Returns a dictionary with latitude, longitude, timestamp.
国际空间站现在有多少人:
ISS_Info.iss_people_in_space()# Returns a dictionary with number, names, craft information.
国际空间站通行时间:
给定地球上的一个位置(纬度、经度和海拔),这个API将计算国际空间站下一个n次的头顶。对于观测者来说,头顶被定义为10°的仰角。时间以UTC计算,ISS高于10°的时间长度以秒为单位。在
ISS_Info.iss_passes(43.5,-74,200,3)# Returns a dictionary with every pass information.
Input | Description | Parameter Name | Valid Range | Units | Required |
---|---|---|---|---|---|
Latitude | The latitude of the place to predict passes | lat | -80 ~ 80 | degrees | YES |
Longitude | The longitude of the place to predict passes | lon | -180 ~ 180 | degrees | YES |
Altitude | The altitude of the place to predict passes | alt | 0 ~ 10,000 | meters | Optional |
Number | The number of passes to return | n | 1 ~ 100 | – | Optional |
贡献者✨在
感谢这些了不起的人(emoji key):
这个项目遵循all-contributors规范。欢迎各位投稿!在
- 项目
标签: