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

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如何设置将在类声明中使用的输入参数?   混合表达式和文本的java SpEL模板   getHeaders()无法返回java Mockito测试SimpMessageHeaderAccessor getHeaders()应返回MessageHeaders   如何在java中创建循环回菜单的方法   具有多态性的Java列表问题   java Guice多数据库自动切换   java服务器错误,状态代码:400,错误代码:100005,消息:您已超过组织的内存限制   静态mutator方法的Java命名约定   用于实例化另一个java文件的groovy java代码   javajavax。网ssl。SSLHandshakeException:握手期间远程主机关闭连接。重新启动服务器后,它工作正常,但会再次显示   java WebSphere+RAD+Taglib   REST客户端中出现java异常:找不到contenttype application/json的messagebodyreader   无参数setter的Java命名   java从数组中删除重复字符