摘要
不同体系架构的计算机系统之间的浮点数交换与共享,对于地震数据处理具有重要意义。32位IEEE和IBM浮点数是SEGY地震数据中的两种常用数据格式,其格式转换不仅涉及阶码和尾数的表达,还涉及到浮点数存储的方式。本文在分析32位IEEE和IBM浮点数的存储格式基础上,给出两者之间的转换算法和C++语言源代码,对代码进行封装和简单的API调用,并成功应用于地震数据处理。
The exchange and sharing of floating point numbers in different computer systems are of great significance in seismic data processing.The 32 bits IEEE and IBM floating point formats are the most typical data formats in SEGY seismic data.The conversion between them involves not only the exponent and mantissa of their bytes expressions,but also the way the floating point storage in different byte order.Therefore,this paper will be based on the bytes formats of the 32 bits IEEE and IBM floating point,and then offer the conversion algorithm and source code in C++.What's more,this paper also capsulates the code and a simple API call,citing the successful example of seismic data processing used.
出处
《工程地球物理学报》
2011年第6期759-766,共8页
Chinese Journal of Engineering Geophysics
关键词
浮点数
结构
转换
地震数据
IBM
IEEE
floating point
bytes expressions
conversion
seismic data
IBM
IEEE