ObsPy:将地震学引入科学Python生态系统的桥梁

来源 :世界地震译丛 | 被引量 : 0次 | 上传用户:luochaojie123456
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
NumPy和SciPy这两个Python库是十分强大的数值处理和分析工具,适用于多种应用程序。我们开发了一个Python库ObsPy(http://obspy.org),目的是使地震学软件包和工作流程的发展更为便利,也利用这些功能为地震学进入更大的科学Python生态系统建桥铺路。许多领域的科学家希望转化他们现有的工具和程序,以便能够利用Python所提供的这类平台环境,但是经常遇到下述困扰,例如特殊的文件格式、未知的专业术语,以及找不到合适的办法来替代软件中的某一个重要功能。我们提出一种方案,即在科学的NumPy包上层实现特定领域的时间序列库。据此,我们显示了一个时间序列数据的内部抽象表现的具体化实现,它能支持各种不同文件格式的读写。随后我们仔细描述了已充分发挥作用的旧代码的集成与改造,使它们能够在Python编写的现代工作流程之中继续发挥作用。最后我们举例研究如何将科研代码整合到ObsPy中,使其受众更为广泛。虽然本文给出的例子针对的是地震学,但是其中许多概念和抽象方法都可以直接应用于其他学科,特别是那些重点放在时间序列分析上的学科。 NumPy and SciPy these two Python library is a very powerful numerical processing and analysis tools, suitable for a variety of applications. We developed ObsPy, a Python library (http://obspy.org) that aims to make the development of seismological software packages and workflows more convenient and also leverage these capabilities to build bridges into the larger scientific Python ecosystem for seismology paving. Scientists in many fields want to transform their existing tools and procedures so that they can take advantage of the platform environments provided by Python, but often suffer the following pitfalls, such as special file formats, unknown terminology, and the inability to find suitable Approach to replace one of the important features of the software. We propose a solution to achieve a specific area of ​​time series libraries above the scientific NumPy package. Accordingly, we show the concrete realization of an internal abstract representation of time series data, which can support reading and writing in various file formats. We then carefully described the integration and reworking of well-functioning old code so that it can continue to function within modern workflows written in Python. Finally, we give an example of how to integrate research code into ObsPy to make it more widely available. Although the examples presented here are for seismology, many of these concepts and abstractions can be directly applied to other disciplines, especially those focusing on time series analysis.
其他文献
采用集团有限公司技术研究院Gleeble2000D型热模拟试验机和中国钢研科技集团有限公司Gleeble1500型和Gleeble3800型热模拟试验机进行了动态再结晶、静念再结晶和相变比对试验
曾几何时.混搭开始成为社会生活中一些族群的着装风格,他们将不同风格、材质、颜色、价格的服饰按照个人品味搭配在一起.从而彰显完全个性化的风格。如今,混搭已成为一种较为广泛
首钢通化钢铁集团股份有限公司(简称通钢)第二炼钢厂继2012年实现全工序负能炼钢标煤-3.83kg/t后,2013年2月再创历史最好水平,达到标煤-5.47kg/t。
选取较常用的低碳钢成份体系为基础,通过Themo-cMc软件计算了钛含量对Ti(C,N)、Ti4C2S2、AIN和MnS等析出相的影响规律。结果表明,钛含量对Ti4C2S2向TiC的转变温度影响最显著,而对Ti
构建协同育人的人才培养模式具有重大的现实意义。产业学院的创建,一方面高校能为学生提供有效的教学活动,另一方面企业用职业化模式培养学生的职业能力,实现真正意义上的高
分析了某公司低温多效蒸馏海水淡化蒸发器结垢成分,发现该蒸发器前7 效换热管外壁结垢成分主要为硫酸钙,并含部分碳酸钙,末效换热管内壁结垢成分主要为碳酸钙,并对结垢原因进
研究目的:总结2015年国内外土地资源与利用规划方面的研究进展,展望2016年国内研究趋势。研究方法:文献调研法。研究结果:(1)土地资源领域,土地资源保护、土地生态等是国内外
我院建立优质护理服务试点科,规范护理服务模式。护理服务形象、服务态度、服务质量明显改善,护理服务综合满意度从2010年上半年的97.2%提高到下半年的98.9%。结论:"优质护理服
对69例老年难治性肺炎的临床资料进行分析,探讨老年难治性肺炎的原因及临床治疗。结果表明,老年难治性肺炎患者致病菌种类复杂、耐药菌株多、病情难控制、死亡率高因此,对于老年