|
|
A C#-based study and application of data files from MTU series magnetotelluric sounders |
HE Jing-Long1( ), WANG Zhan-Bin1, KOU Shao-Lei1, YANG Kai1,2 |
1. Xi’an Center of Mineral Resources Survey, China Geological Survey, Xi’an 710000, China 2. Institute of Geophysics and Geomatics, China University of Geosciences (Wuhan), Wuhan 430074, China |
|
|
Abstract The MTU series magnetotelluric sounders produced by Phoenix Geophysics Ltd. in Canada have been widely used in various fields of earth exploration because of their advantages, such as small weight and stable and reliable data acquisition. However, their special data formats make the data processing troublesome. At present, most of the data processing depends on the SSMT-2000 software developed by Phoenix Geophysics, which is not conducive to the improvement and application of data processing methods. By studying the formats of data files of MTU series magnetotelluric sounders, this study used the UltraEdit software to analyze the structure and rules of the data files and analyzed and studied TBL, CLB, CLC, and TS files based on the C# programming language. As a result, this study transcoded the data files from indigestible binary files into plain files that are easy to understand and provided the modification and editing module of TBL parameter files, the data analysis module of CLC and CLB files, and the transformation module of TS files. The data measured in the field were edited using the program developed in this study. The test results verify that the program can modify TBL file parameters, analyze CLB and CLC files, and convert TS files. Therefore, this study provides a new idea and method for studying such binary files.
|
Received: 16 February 2022
Published: 24 February 2023
|
|
|
|
|
字节位置 | 数据类型 | 字节数 | 字节意义 | 备注 | 1~5 | string(字符串) | 5 | 记录名(参数名) | | 6~7 | int16(2字节整型) | 2 | MTU控制程序编号 | | 8~11 | int32(4字节整型) | 4 | MTU控制程序 | | 12 | string(字符串) | 1 | 数据类型识别符 | | 13~25 | object(未知类型) | 13 | 记录的数据 | 类型根据识别符可变 |
|
Single record byte allocation[1]
|
标志符 | 数据类型 | 字节数 | 字节意义 | 备注 | 0 | int32(4字节整型) | 4 | 整数型数据 | | 1 | double(双精浮点型) | 8 | 浮点型数据 | | 2 | string(字符串) | 9 | 字符串数据 | | 3 | string(字符串) | 8 | 字符串数据 | | 4 | string(字符串) | 13 | 字符串数据 | | 5 | Date(时间类型) | 8 | 时间数据 | 格林威治标准时间 |
|
Comparison table of data types corresponding to different identifiers[1]
|
字节 位置 | 字节 意义 | 字节数 | 备注 | 1 | 秒 | 1 | 时间记录每个字节代表一种时间类型,可以转化为占两个整数的时间数据,例如时间20/7/21/05/13/13:22:45,字节记录反序排列再转二进制就是TBL标准时间格式 | 2 | 分 | 1 | 3 | 时 | 1 | 4 | 日 | 1 | 5 | 月 | 1 | 6 | 年 | 1 | 7 | 周 | 1 | 8 | 世纪 | 1 |
|
Greenwich Time record byte allocation
|
|
C# based TBL parameter file modification edit module
|
CLB数据结构 | CLC数据结构 | 数据类型 | 备注 | DateTime | DateTime | string | 格林威治时间,8字节 | BoxSerial | BoxSerial | int | 盒子序列号(16位整数),2个字节 | ScanNumbers | ScanNumbers | int | Scan个数,2个字节 | Stat | Stat | int | 状态,1个字节 | Hw | Hw | string | 盒子硬件配置,12个字节 | Ver | Ver | string | 软件版本号,12字节 | Tcmb | Tcmb | int | 梳状滤波器型号,4个字节 | Tals | Tals | int | 锯齿滤波器型号,4个字节 | Lfrq | Lfrq | int | 工业频率,4个字节 | V5sr | V5sr | int | V5采样率(单位20byte),4个字节 | Lpfr | Lpfr | long | 低通滤波器参数,4个字节 | / | Hsn | string | 磁棒号,12字节 | Hatt | Hatt | double | 探头衰减系数,8字节 | / | Hnom | double | 探头设定增益,8字节 | / | Cphc | double | 磁棒高通夹角频率,8字节 | Va | Va | int | 频带编号,2个字节 | Fa | Fa | float | 频率,4个字节 | Ca | Ca | int | 频率编号,2个字节 | Value | Value | float | 数据块,120个字节 |
|
CLB, CLC data structure
|
|
MTU series file processing software interface based on C#
|
|
UltraEdit decodes MTU data files
|
[1] |
柳建新, 刘春明, 马捷, 等. V5-2000大地电磁测深仪文件头数据格式研究[J]. 物探化探计算技术, 2007, 29(4):359-362,279-280.
|
[1] |
Liu J X, Liu C M, Ma J, et al. The data format of MT sounding instrument V5-2000[J]. Computing Techniques for Geophysical and Geochemical Exploration, 2007, 29(4):359-362,279-280.
|
[2] |
仇根根, 方慧, 朱正君, 等. 基于MATLAB平台对V5-2000大地电磁测深仪TBL文件的分析与应用[J]. 物探化探计算技术,2012, 34(2):178-181,7-8.
|
[2] |
Qiu G G, Fang H, Zhu Z J, et al. The analysis and application of V5-2000 MT sounder TBL file based on the MATLAB platform[J]. Computing Techniques for Geophysical and Geochemical Exploration, 2012, 34(2):178-181,7-8.
|
[3] |
雷清, 刘桂梅, 王身龙, 等. 基于Python对MTU和V8系列大地电磁测深仪TBL数据研究与应用[J]. 地球物理学进展, 2019, 34(5):2065-2070.
|
[3] |
Lei Q, Liu G M, Wang S L, et al. Research and application for raw data of MTU and V8 series magneto telluric instruments based on Python[J]. Progress in Geophysics, 2019, 34(5):2065-2070.
|
[4] |
Jonathan B. ASCII,Unicode,and UTF-8[J]. Learn to Program with Assembly, 2021:295-298
|
[5] |
苏晓慧, 曹勇, 吴海亮. 基于C#语言河流模拟数据处理软件的开发与应用[J]. 河南水利与南水北调, 2021, 50(8):76-78.
|
[5] |
Su X H, Cao Y, Wu H L. Development application of river simulation data processing software based on C# Language[J]. Water Resources & South to North Water Diversion, 2021, 50(8):76-78.
|
[6] |
袁航, 于群, 王勇军. 基于C#的雷达侦察设备测向精度试验数据处理软件设计与实现[J]. 舰船电子工程, 2020, 40(10):100-103.
|
[6] |
Yuan H, Yu Q, Wang Y J. Design and implementation of data processing software for direction-finding accuracy test of Radar reconnaissance equipment based on C#[J]. Ship Electronic Engineering, 2020, 40(10):100-103.
|
[7] |
许毅, 冯山. 使用C#语言进行多线程程序设计[J]. 计算机工程, 2003, 29(5):1-2,173.
|
[7] |
Xu Y, Feng S. Multithreaded programming by using C#[J]. Computer Engineering, 2003, 29(5):1-2,173.
|
[8] |
吴昊, 李晓会. C#语言中数组与字符串存储、使用方式异同的比较[J]. 数字技术与应用, 2019, 37(9):148-150.
|
[8] |
Wu H, Li X H. Comparison of similarities and differences between array and string in C# language[J]. Digital Technology & Application, 2019, 37(9):148-150.
|
[9] |
江泽涛, 简雄, 刘小艳, 等. 一种改进的二进制哈希编码方法[J]. 电子学报, 2019, 47(2):462-469.
|
[9] |
Jiang Z T, Jian X, Liu X Y, et al. An improved binary Hash coding method[J]. Acta Electronica Sinica, 2019, 47(2):462-469.
|
[10] |
李润洲, 黄勤. 二进制准循环码的加法傅里叶变换编码算法[J]. 西安电子科技大学学报, 2020, 47(6):21-29.
|
[10] |
Li R Z, Huang Q. Additive Fourier transform encoding algorithm for binary quasi-cyclic codes[J]. Journal of Xidian University, 2020, 47(6):21-29.
|
[11] |
何辉, 李芳, 王冠鑫. 基于GeoProbe地球物理平台的软件等值线追踪算法研究与软件开发[J]. 物探与化探, 2020, 44(2):401-405.
|
[11] |
He H, Li F, Wang G X. Research on the contour tracking algorithm and the corresponding software development on Geoprobe geophysical platform[J]. Geophysical and Geochemical Exploration, 2020, 44(2):401-405.
|
[12] |
朱静然, 潘树国. GNSS原始数据解码为RINEX标准数据格式及数据质量分析[J]. 现代测绘, 2014, 37(4):8-10,13.
|
[12] |
Zhu J R, Pan S G. Raw data of GNSS Decoded to standard RINEX format data and analysis of data quality[J]. Modern Surveying and Mapping, 2014, 37(4):8-10,13.
|
[13] |
陈广智, 卓汉逵, 李磊. 二进制数据流通用翻译框架及实现[J]. 计算机工程与应用, 2015, 51(20):5-10.
|
[13] |
Chen G Z, Zhuo H K, Li L. General framework and its implementation for translating binary data flow[J]. Computer Engineering and Applications, 2015, 51(20):5-10.
|
[14] |
程建燕, 高建. 基于C#的GPS数据处理工具箱开发[J]. 北京测绘, 2019, 33(10):1227-1230.
|
[14] |
Cheng J Y, Gao J. Development of GPS data processing toolbox based on C#[J]. Beijing Surveying and Mapping, 2019, 33(10):1227-1230.
|
[15] |
宋尚. 基于. NET API(C#)的钻孔柱状图绘制软件开发[J]. 城市道桥与防洪, 2019(8):266-269,32.
|
[15] |
Song S. Development of drawing software of borehole histogram based on NET API(C#)[J]. Urban Roads Bridges & Flood Control, 2019(8):266-269,32.
|
[16] |
王辉, 魏文博, 金胜, 等. 基于同步大地电磁时间序列依赖关系的噪声处理[J]. 地球物理学报, 2014, 57(2):531-545.
|
[16] |
Wang H, Wei W B, Jin S, et al. Removal of magnetotelluric noise based on synchronous time series relationship[J]. Chinese Journal of Geophysics, 2014, 57(2):531-545.
|
[17] |
孙洁, 晋光文. 大地电磁测深资料的噪声干扰[J]. 物探与化探, 2000, 24(2):119-127.
|
[17] |
Sun J, Jin G W. Noise interference of magnetotelluric data[J]. Geophysical and Ceochemical Exploration, 2000, 24(2):119-127.
|
[18] |
刘俊峰, 程云涛, 邓志强, 等. CSAMT与AMT数据“拼接”处理——以湖南仁里铌钽矿床7号剖面为例[J]. 物探与化探, 2021, 45(1):68-75.
|
[18] |
Liu J F, Chen Y T, Deng Z Q, et al. CSAMT and AMT data"splicing"processing:A case study of No.7 profile of the Renli niobium tantalum deposit in Hunan Province[J]. Geophysical and Geochemical Exploration, 2021, 45(1):68-75.
|
[19] |
邓琰, 汤吉. 大地电磁测深方法数据处理进展[J]. 地球物理学进展, 2019, 34(4):1411-1422.
|
[19] |
Deng Y, Tang J. Advances in magneto telluric data processing[J]. Progress in Geophysics, 2019, 34(4):1411-1422.
|
[20] |
冯灵清, 杨怀卿, 刘宇晶. 常用编码方式及其格式转换[J]. 计算机时代, 2012(1):33-35.
|
[20] |
Feng L Q, Yang H Q, Liu Y J. Common coding methods and format conversion[J]. Computer Era, 2012(1):33-35.
|
[21] |
郭福亮, 周钢. 基于Unicode编码文本水印的分密级公文系统[J]. 计算机系统应用, 2014, 23(2):65-69.
|
[21] |
Guo F L, Zhou G. Classification document system based on Unicode text watermarking[J]. Computer Systems & Applications, 2014, 23(2):65-69.
|
[1] |
ZHANG Yang-Yang, DU Wei, WANG Zhi-Shui, MIAO Xu-Huang, ZHANG Xiang. Application of particle swarm algorithm based on Lévy flight in magnetotelluric inversion[J]. Geophysical and Geochemical Exploration, 2023, 47(4): 986-993. |
[2] |
YOU Yue-Xin, DENG Ju-Zhi, CHEN Hui, YU Hui, GAO Ke-Ning. Application of integrated geophysical methods in deep ore prospecting of Laochang polymetallic mining area in Lancang, Yunnan[J]. Geophysical and Geochemical Exploration, 2023, 47(3): 638-647. |
|
|
|
|