飞行动态库

beyond的Python项目详细描述


Documentation StatusTestsCoverage StatusPyPi versionPython versions

这个库是为了更好地理解飞行动力学是如何工作的。它 目前没有效率和绩效的意图,目标是 主要是为空间观测开发一个简单的api。

这个库的源可以在github和 在麻省理工学院的执照下。

安装

beyond需要python 3.5+、numpy和sgp4。 要安装库及其依赖项,请使用pip

pip install beyond

文档

用法

importnumpyasnpfrombeyond.io.tleimportTlefrombeyond.framesimportcreate_stationfrombeyond.datesimportDate,timedelta# Parse TLEtle=Tle("""ISS (ZARYA)
1 25544U 98067A   19072.15347313  .00000167  00000-0  10147-4 0  9997
2 25544  51.6420 118.6717 0004098  99.2855 123.2259 15.52799885160336""")# Create a station from which to compute the passstation=create_station('KSC',(28.524058,-80.65085,0.0))fororbinstation.visibility(tle.orbit(),start=Date.now(),stop=timedelta(days=1),step=timedelta(minutes=2),events=True):# As all angles are given in radians,# there is some conversion to doazim=-np.degrees(orb.theta)%360elev=np.degrees(orb.phi)r=orb.r/1000.print("{event:10} {tle.name}  {date:%Y-%m-%dT%H:%M:%S.%f} {azim:7.2f} {elev:7.2f} {r:10.2f}".format(date=orb.date,r=r,azim=azim,elev=elev,tle=tle,event=orb.eventiforb.eventisnotNoneelse""))# Stop at the end of the first passiforb.eventandorb.event.info=="LOS":break

此库用作Space-Command实用程序的基础。

这个库的常用用法是:

参考文献

许多公式和飞行动力学算法都是基于vallado的 天体动力学与应用基础第4版。

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

推荐PyPI第三方库


热门话题
如何使用运行时从JAVA运行openssl命令?   不使用线程安全类(如AtomicInteger和SynchronizedList)的java ProducerConsumer问题   匹配字符串的java模式   在java中使用泛型接口作为返回类型   java将可能具有序列化JSON值的hashmap作为节点添加到JSON字符串中   Eclipse无法从Java8流推断正确的类型   java无法了解标准JButton的大小   java我能用一个循环优化这个函数吗(在第一种方法中)?   Apache CXF中基于WebSocket的java SOAP?   java想要运行奇偶和求和三步   矩阵上随机元素的java集值   java布尔相等:0==a,操作数顺序重要吗?   java Eclipse不会退出我的插件   java如何在spring的SOAP拦截器中获取HttpServletRequest和HttpServletResponse