SpaceMan3D是一个软件包,它使用双线元素(TLE)数据解析并创建卫星轨道的3D图。
Spaceman3D的Python项目详细描述
SpaceMan3D
spaceman3d是一个python包,它可以在天体动力学领域完成一些独特的任务(目的是双关语)。该软件包使用户能够将卫星双线元素(TLE)数据解析为弹道、开普勒和卫星识别轨道元素。除此之外,这个太空人还使用一个Matplotlib
三维绘图工具包来绘制卫星的轨道。
基本绘图功能
下面提到的绘图功能是通过draw()模块访问的。
fromspaceman3D.DrawimportDrawfromspaceman3D.Orbitimportsatellites#Create a class instance of Draw()d=Draw()#Call the draw Orbit functiond.draw_orbit(satellites.ISS,satellites.Dragon)#or What would the Satellite look like around the Moond.draw_orbit(satellites.Dragon,object='Moon')
使用上面的代码将输出类似以下内容的图像:
同时,通过调用draw_orbit(element ,print_info=True)
,您将打印出用于计算卫星轨道的开普勒元素。
基本的TLE解析器功能
fromspaceman3D.Orbitimporttle,satellites#Create a class instance of tle()t=tle()#Call the satellite elements functiont.tle_satellite_elements(satellites.ISS,satellites.Dragon,print_info=True)
轨道机械师资源
我知道我很难找到解释天体动力学和轨道力学中使用的数学的资源,所以我包含了“packagecalculations.txt”文件,该文件解释了orbit.py和tle.py中函数背后的数学以及每个函数背后的逻辑。