提供有关感兴趣轨道物体的当前信息
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()