提供有关感兴趣轨道物体的当前信息

orbit的Python项目详细描述


轨道提供了一种从空间中的对象获取多个值(如当前纬度和经度)的简单方法。目前,任何具有相应双线元素(TLE)的对象都可以被跟踪。可从celestrack的<;http://www.celestrak.com/NORAD/elements/master.asp>;获得受支持对象的列表。用法如下:

from orbit import satellite

# 25544 is the idenfier for the International Space Station # See http://www.celestrak.com/NORAD/elements/master.asp for an index # of identifiers.

iss = satellite(25544)

# Get the current lat/long of the satellite iss_current_latitude = iss.lat() iss_current_longitude = iss.long()

# Get the proper name of the satellite iss_name = iss.name()

# Get the elsat classificiation of the satellite iss_elsat_classification = iss.elsat_classification()

# Get the year the satellite launched iss_launch_year = iss.launch_year()

# Get the current TLE for the satellite iss_tle = iss.tle()

# Get the current elevation of the satellite iss_elevation = iss.elevation()

# True if the satellite is currently in the earth’s shadow iss_eclipsed = iss.eclipsed()

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java变量始终存储0值。为什么?   如何使用Java/REST将Azure blob从一个存储容器移动到另一个存储容器?   java将commons DBCP从1.2升级到1.4,我应该害怕吗?   java如何使用分隔符拆分字符串?   java使用数组读取json对象   java在groovy中切片字符串   交换数组java的两个邻域元素   java移动用于确定字符串是否为回文的逻辑   java Android应用程序在一个活动中崩溃   java Sparkjava将webapp文件夹设置为静态资源/模板的文件夹   java复杂条件表达式,用户易用。   java如何仅在表存在时从表中选择值   java I无法将数据从Recyclerview传递到其他活动   java数据结构最佳设计(大数据)   java Android从DatePickerDialogFragment中删除日历视图   java将数据从Firebase获取到片段   数组。sort()在java中运行不正常