Seismic data format conversion method and device

By generating and modifying the template of the earthquake data format, the problem of solving errors caused by non -standard earthquake data formats is solved, and the correct compilation and analysis of seismic data is achieved, and the data processing efficiency is improved.

CN112463861BActive Publication Date: 2025-01-28CHINA NAT PETROLEUM CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011172393.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-28
Publication Date
2025-01-28
Estimated Expiration
2040-10-28

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively process non-standard seismic data formats, resulting in earthquake data decomposition errors and affecting data analysis efficiency.

Method used

By generating seismic data format templates, analyze and correct the data format, realize the conversion of seismic data format, and ensure that the data conforms to the SEG standard format.

Benefits of technology

The correct compilation and analysis of various types of seismic data is achieved, the efficiency of data processing is improved, and the accuracy of the data format is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112463861B_ABST
    Figure CN112463861B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for converting the format of seismic data, the method comprising: generating a seismic data format template according to seismic data characteristics, the seismic data format template comprising a volume header, a track header and a data sample value; parsing the seismic data using the seismic data format template to obtain a seismic data volume header structure and a seismic track structure array; correcting the seismic data format template according to the seismic data volume header structure and the seismic track structure array; and format conversion of the seismic data according to the corrected seismic data format template. The present application can analyze seismic data using the seismic data format template and format conversion of the seismic data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of petroleum geophysical exploration, and specifically to a method and device for converting seismic data format. Background Art

[0002] In the 1960s, digital tape recording seismographs made with integrated circuits gradually replaced analog tape recording seismographs made with transistors. In order to meet the demand for digital tape recording of seismic data, the Society of Exploration Geophysicists (SEG) successively released the SEG-A digital tape recording data format and the SEG-B digital tape recording data format in 1967, and the SEG-C digital tape recording data format in 1972. Among them, the SEG-C digital tape recording data format records data sample values ​​in 32-bit IBM floating point format, which improves the accuracy of seismic data recording. In 1975, the Society of Exploration Geophysicists successively launched the SEG-D digital tape recording data format and the SEG-Y digital tape recording data format. In addition to the data format defined by SEG, some oil companies and service providers have also developed many other non-standard seismic data formats based on specific goals and specific needs, such as the LTOD (Lacey Tape on Disk) data format and the RODE (Record Oriented Data Encapsulation) data format. They were developed to meet the needs of transcribing seismic data from tapes to disks. Another example is the SU (Seismic Unix) data format, which was developed to simplify the seismic data input and output process and improve the seismic data reading performance. It is modified based on the SEG-Y format.

[0003] The above SEG series, LTOD, RODE and SU series data formats are classified according to the way of recording seismic data in the geophysical field. The classification method is relatively macro. Each classification is divided into integer data types and floating-point data types. The floating-point data type can be divided into two international standard floating-point data types of IBM and IEEE and SEG customized floating-point data types. There are many types of data formats.

[0004] When geophysical exploration practitioners process seismic data, due to the complexity of the data format of seismic data itself, non-standard data formats are often encountered. In addition, seismic data may come from different operators, service providers and software platforms, etc. Some seismic data have been transcribed and copied many times, and the data header and basic information are seriously missing. The data decoding module of the existing seismic data processing software can only realize a simple header relationship mapping, that is, present the header storage location of the standard data format, but cannot solve the decoding of seismic data in the case of data format errors and non-standard data format recording. In addition, when dealing with complex original seismic data decoding problems, the decoding module of the existing software platform does not have the problem data analysis function, nor can it track the data reading process in real time and find problems with the data format in time. Based on the above reasons, many seismic data cannot be decoded correctly, which wastes a lot of manpower and material resources in the process of finding data decoding errors and conducting data analysis in the later stage, and is inefficient. Summary of the invention

[0005] In view of the problems in the prior art, the present application provides a method and device for converting the format of seismic data, which can analyze seismic data using a seismic data format template and convert the format of the seismic data.

[0006] In order to solve the above technical problems, this application provides the following technical solutions:

[0007] In a first aspect, the present application provides a method for converting seismic data format, comprising:

[0008] Generate a seismic data format template according to the seismic data characteristics, wherein the seismic data format template includes a volume header, a trace header, and data sample point values;

[0009] The seismic data is parsed using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array;

[0010] Modify the seismic data format template according to the seismic data volume header structure and the seismic channel structure array;

[0011] The format of the seismic data is converted according to the revised seismic data format template.

[0012] Furthermore, the seismic data characteristics include the acquisition and recording method of the seismic data, the header coding standard of the seismic data, the header block data of the seismic data, and the seismic trace data sample point value of the seismic data. The seismic data format template is generated according to the seismic data characteristics, including:

[0013] Determine the byte order of the seismic data file in the seismic data format template according to the acquisition and recording method of the seismic data;

[0014] Establishing a BCD structure according to the header coding standard of the seismic data;

[0015] Establishing a data structure of a header block according to the header block data of the seismic data;

[0016] Establishing a data format of seismic trace data sample point values ​​according to the seismic trace data sample point values ​​of the seismic data;

[0017] The seismic data format template is generated according to the byte order, the BCD structure, the data structure of the header block and the seismic track data sample value data format.

[0018] Furthermore, the step of establishing a data structure of a header block according to the header block data of the seismic data includes:

[0019] Determining the total number of header blocks of the seismic data according to the header block data of the seismic data;

[0020] Establishing the data structure of the basic information universal header block, the data structure of the supplementary information universal header block and the data structure of the field collection parameter information universal header block according to the total number of header blocks;

[0021] Establishing a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block;

[0022] The data structure of the extended header block and the data structure of the external header block are established according to the number of extended track headers and the number of external track headers in the basic information universal header block.

[0023] Furthermore, the seismic data is parsed using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array, including:

[0024] Get the number of additional general header blocks recorded in the basic information general header block;

[0025] Generate the data structure of the universal header block of the seismic data format template according to the number of the additional universal header blocks, the data structure of the supplementary information universal header block and the data structure of the field acquisition parameter information universal header block;

[0026] Generate a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block;

[0027] Generate a data structure of an extended header block and a data structure of an external header block according to the number of extended trace headers and the number of external trace headers in the basic information universal header block;

[0028] Generate an extended trace header data structure according to the number of extended trace headers in the trace header data structure;

[0029] Generate seismic trace sample data according to the format code definition and the format code value, sampling interval value, and record length value in the basic information general header block;

[0030] According to the data structure of the general header block, the data structure of the channel set header block, the data structure of the extended header block, the data structure of the external header block and the data structure of the extended trace header, the seismic trace sample point data are constructed into a seismic data volume header structure and a seismic trace structure array according to the total number of traces in all channel sets.

[0031] Furthermore, the modifying of the seismic data format template according to the seismic data volume header structure and the seismic trace structure array comprises:

[0032] The data structure defined in the seismic data format template is modified to a data structure matching the seismic data volume header structure and the seismic trace structure array, so as to obtain a modified seismic data format template.

[0033] In a second aspect, the present application provides a seismic data format conversion device, comprising:

[0034] A template generating unit, used for generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template includes a volume header, a trace header and data sample point values;

[0035] An array generation unit, used for parsing the seismic data using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array;

[0036] A template correction unit, used for correcting the seismic data format template according to the seismic data volume header structure and the seismic trace structure array;

[0037] The format conversion unit is used to convert the format of the seismic data according to the revised seismic data format template.

[0038] Furthermore, the seismic data characteristics include the acquisition and recording method of the seismic data, the header coding standard of the seismic data, the header block data of the seismic data and the seismic trace data sample point value of the seismic data, and the template generation unit includes:

[0039] A byte order determination module, used to determine the byte order of the seismic data file in the seismic data format template according to the acquisition and recording method of the seismic data;

[0040] A structure building module, used for building a BCD structure according to the header coding standard of the seismic data;

[0041] A header block structure establishment module, used to establish a data structure of a header block according to the header block data of the seismic data;

[0042] A sample value format establishment module, used to establish a data format of seismic trace data sample value according to the seismic trace data sample value of the seismic data;

[0043] A template generation module is used to generate the seismic data format template according to the byte order, the BCD structure, the data structure of the header block and the data format of the seismic track data sample value.

[0044] Furthermore, the header block structure establishment module includes:

[0045] A quantity determination module, used to determine the total number of header blocks of the seismic data according to the header block data of the seismic data;

[0046] A general header block structure establishment module, used to establish a data structure of a basic information general header block, a data structure of a supplementary information general header block, and a data structure of a field acquisition parameter information general header block according to the total number of header blocks;

[0047] A channel set header block structure establishment module, used to establish a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block;

[0048] The extended external header block structure establishment module is used to establish the data structure of the extended header block and the data structure of the external header block according to the number of extended track headers and the number of external track headers in the basic information general header block.

[0049] Furthermore, the array generation unit includes:

[0050] An additional general header block quantity acquisition module is used to obtain the number of additional general header blocks recorded in the basic information general header block;

[0051] A general header block data structure generating module, used for generating the data structure of the general header block of the seismic data format template according to the number of the additional general header blocks, the data structure of the supplementary information general header block and the data structure of the field acquisition parameter information general header block;

[0052] A channel set header block data structure generation module, used to generate a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block;

[0053] An extended external header block structure generation module generates a data structure of an extended header block and a data structure of an external header block according to the number of extended track headers and the number of external track headers in the basic information general header block;

[0054] An extended trace header data structure generating module is used to generate an extended trace header data structure according to the number of extended trace headers in the trace header data structure;

[0055] A seismic trace sample data generation module, used to generate seismic trace sample data according to the format code definition and the format code value, sampling interval value, and record length value in the basic information general header block;

[0056] The array generation module constructs the seismic trace sample data into a seismic data volume header structure and a seismic trace structure array according to the data structure of the general header block, the data structure of the channel set header block, the data structure of the extended header block, the data structure of the external header block and the data structure of the extended trace header according to the total number of traces in all channel sets.

[0057] Furthermore, the template correction unit includes:

[0058] The template correction module is used to correct the data structure defined in the seismic data format template to a data structure matching the seismic data volume header structure and the seismic channel structure array to obtain a corrected seismic data format template.

[0059] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the seismic data format conversion method when executing the program.

[0060] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the seismic data format conversion method when executed by a processor.

[0061] In response to the problems in the prior art, the present application provides a method and device for converting the format of seismic data, which can make full use of software programs and platforms, effectively facilitate seismic data processing technicians to conduct in-depth structured analysis of raw data, track the data decoding process in real time, and discover various data format errors at any time. By modifying the data structure template in the software platform to match various types of seismic data, and modifying and converting the problematic seismic data into the SEG standard format, the seismic data processing software can correctly read and decode the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 is a general flow chart of the seismic data format conversion method in the embodiment of the present application;

[0063] Figure 2 A flowchart of generating a seismic data format template in an embodiment of the present application;

[0064] Figure 3 A flowchart of establishing a header block data structure in an embodiment of the present application;

[0065] Figure 4A flowchart of obtaining a seismic data volume header structure and a seismic trace structure array in an embodiment of the present application;

[0066] Figure 5 is a general structural diagram of a seismic data format conversion device in an embodiment of the present application;

[0067] Figure 6 is a structural diagram of a template generation unit in an embodiment of the present application;

[0068] Figure 7 A structural diagram of a module for establishing a header block structure in an embodiment of the present application;

[0069] Figure 8 is a structural diagram of an array generation unit in an embodiment of the present application;

[0070] Fig. 9 A schematic diagram of the structure of an electronic device in an embodiment of the present application;

[0071] Fig.10 The seismic data decoding result before format conversion (left) and the seismic data decoding result after format conversion (right) in the embodiment of the present application are shown;

[0072] Fig.11 The seismic data decoding software in the embodiment of the present application shows the display window of seismic data (upper left), the seismic data template definition (right) and the data structure parsed out of the monitoring window (lower left);

[0073] Fig.12 This is a schematic diagram of the SEG-D simplified format data structure in an embodiment of the present application;

[0074] Fig.13 A flowchart of parsing seismic data using a seismic data format template in an embodiment of the present application;

[0075] Fig.14 This is an example of parsing seismic data using a seismic data format template in an embodiment of the present application;

[0076] Fig.15 This is an example of using a seismic data format template to parse seismic data for error checking in an embodiment of the present application;

[0077] Fig.16 This is an example of using a seismic data format template to parse seismic data for error correction in an embodiment of the present application. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0079] See also Figure 1 In order to convert the format of seismic data according to the revised seismic data format template, the present application provides a seismic data format conversion method, comprising:

[0080] S101: Generate a seismic data format template according to seismic data characteristics, wherein the seismic data format template includes a volume header, a trace header, and data sample point values.

[0081] It is understandable that the present application proposes a seismic data analysis and format conversion method based on a seismic data format template, and the method can be embedded in a third-party software platform after being generated into a software program using a computer programming language, so that it can effectively facilitate seismic data processing technicians to conduct a structured in-depth analysis of seismic data, and track the decompilation process of seismic data in real time, so as to find format errors of various seismic data at any time, and then match various types of seismic data by correcting the seismic data structure template, and convert the seismic data with problems into the SEG standard format, so that most seismic data processing software on the market can correctly read and decompiled seismic data. For this reason, the present application embodiment needs to generate a seismic data format template according to seismic data characteristics. The seismic data format template in the present application embodiment is different from the template in other existing software platforms, and the seismic data format template in the present application embodiment is a definition of a complete data format in the seismic analysis process, which includes comprehensive information such as volume header, track header and data sample point value, and is not a track header template or parameter template referred to by other software platforms.

[0082] S102: parse the seismic data using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array.

[0083] It can be understood that in the embodiment of the present application, after the seismic data format template is defined, the seismic data format template can be used to parse the seismic data. This process can be understood as: assuming that the storage format of the seismic data is completely matched with the seismic data format template defined in the embodiment of the present application, then the seismic data is parsed according to the seismic data format template to obtain the seismic data header structure and the seismic channel structure array. However, the actual situation is often that the storage format of the seismic data is not completely matched with the seismic data format template defined in the embodiment of the present application. At this time, the template needs to be corrected according to the specific problem reflected by the mismatch between the seismic data header structure and the seismic channel structure array and the seismic data format template, and the seismic data format needs to be converted.

[0084] S103: Modifying the seismic data format template according to the seismic data volume header structure and the seismic trace structure array.

[0085] It is understandable that the embodiment of the present application utilizes a predefined seismic data format template to replace the traditional hexadecimal dump method to parse seismic data. During the parsing process, the embodiment of the present application is conducive to dynamic tracking technology, and a monitoring window is set. Through the monitoring window, the values ​​of various variables in the parsing execution process can be monitored in real time, and the values ​​of these variables are stored in the seismic trace structure array. By implementing dynamic monitoring of the seismic trace structure array, errors in the seismic data parsing process can be easily located, and the seismic data format template is corrected according to these errors to achieve the purpose of correcting the data format, which is conducive to the correct reading of seismic data.

[0086] S104: Convert the format of the seismic data according to the revised seismic data format template.

[0087] It is understandable that the embodiment of the present application has made the seismic data format template and the recording format of seismic data fully match by revising the seismic data format template. In the case where the above two have been matched, all seismic data can be correctly read. However, although the seismic data have all been read out, the recording format of these seismic data is different from the SEG standard format and cannot be directly used by most common seismic data analysis software on the market to perform seismic data analysis. Therefore, in this step, the embodiment of the present application also needs to write a simple program code to correct the errors in the seismic data, such as the loss of seismic data, so that the revised seismic data can match the SEG standard format.

[0088] From the above description, it can be seen that the present application provides a method for converting the format of seismic data, which can make full use of software programs and platforms, effectively facilitate seismic data processing technicians to conduct in-depth structured analysis of the original data, track the data decoding process in real time, and discover various data format errors at any time. By modifying the data structure template in the software platform to match various types of seismic data, and modifying and converting the problematic seismic data into the SEG standard format, the seismic data processing software can correctly read and decode the data.

[0089] See also Figure 2 In one embodiment, the seismic data characteristics include the acquisition and recording method of the seismic data, the header coding standard of the seismic data, the header block data of the seismic data, and the seismic trace data sample point value of the seismic data. The seismic data format template is generated according to the seismic data characteristics, including:

[0090] S201: Determine the byte order of the seismic data file in the seismic data format template according to the acquisition and recording method of the seismic data.

[0091] It is understandable that, usually, when collecting seismic data in the field and processing data indoors, the seismic data is recorded in workstation format. When storing seismic data in workstation format, the bytes are stored in big endian order; however, little endian order is also used to store seismic data on some microcomputer platforms. Therefore, when defining the seismic data format template, it is necessary to first correctly define the byte order of the seismic data file storage according to the recording situation of the seismic data, and distinguish whether it is big endian or little endian, so as to facilitate the subsequent correct reading of the seismic data.

[0092] S202: Establish a BCD structure according to the header coding standard of the seismic data.

[0093] It is understandable that the digital code used in the header of seismic data is BCD (Binary-Coded Decimal) code, which is a code that uses four binary bits to store decimal numbers. Since decimal numbers have ten digits from 0 to 9, 4 binary digits are required to represent 1 decimal number. Traditionally, 8421 BCD code is generally used when recording seismic data, that is: 0000~1001, and the remaining six codes 1010, 1011, 1100, 1101, 1110, 1111 are not valid codes, as shown in Table 1. In order to be consistent with the traditional seismic data recording method when analyzing and converting seismic data, and to facilitate subsequent operations, the embodiment of the present application needs to pre-construct a 1-byte (8-bit) and 2-byte (16-bit) structure data type, define a variable for every 4 bits, and use a pre-defined structure to perform BCD encoding and decoding on the header of the seismic data during the process of reading and writing seismic data. The pre-defined structure is as follows:

[0094] struct BCD1{

[0095] byte a:4;

[0096] byte b:4;

[0097] };

[0098] Encoding and decoding process: BCD1 bcd = a*10 1 +b*10 0 ;

[0099] struct BCD2{

[0100] byte a:4;

[0101] byte b:4;

[0102] byte c:4;

[0103] byte d:4;

[0104] };

[0105] Encoding and decoding process: BCD2 bcd = a*10 3 +b*10 2 +c*10 1 +d*10 0 .

[0106] S203: Establishing a data structure of a header block according to the header block data of the seismic data.

[0107] It can be understood that the header block includes: the data structure of the basic information universal header block (often referred to as universal header block #1 in the art), the data structure of the supplementary information universal header block (often referred to as universal header block #2 in the art), the field acquisition parameter information universal header block (often referred to as universal header block #3 in the art), the channel set header block, the extended header block and the external header block, etc. For the specific establishment method, please refer to the description of S301 to S304.

[0108] S204: Establishing a data format of seismic trace data sample point values ​​according to the seismic trace data sample point values ​​of the seismic data.

[0109] It can be understood that the entity of the seismic data stored in the seismic channel structure array is the seismic channel data sample value. The embodiment of the present application needs to establish the seismic channel data sample value data format according to the seismic channel data sample value of the seismic data. There are many types of seismic channel data sample value data formats, such as the SEG-D format is divided into a timing format (i.e., a multi-channel arrangement recording format) and a channel sequence format. Among them, the timing format includes: 0015 format (20-bit binary exponential data record), 0022 format (8-bit quaternary exponential data record), 0024 format (16-bit quaternary exponential data record), 0042 format (8-bit hexadecimal exponential data record), 0044 format (16-bit hexadecimal exponential data record) and 0048 format (32-bit hexadecimal exponential data record), etc.; the channel sequence format includes: 8015 format (20-bit binary exponential data record), 8022 format (8-bit quaternary exponential data record), 0024 format (16-bit quaternary exponential data record), 0042 format (8-bit hexadecimal exponential data record), 0044 format (16-bit hexadecimal exponential data record) and 0048 format (32-bit hexadecimal exponential data record), etc. 8024 format (8-bit quaternary exponent data record), 8024 format (16-bit quaternary exponent data record), 8036 (24-bit integer record), 8038 (32-bit integer record), 8042 format (8-bit hexadecimal exponent data record), 8044 format (16-bit hexadecimal exponent data record), 8048 format (32-bit hexadecimal exponent data record), 8058 format (32-bit IEEE floating-point data record), and 8080 format (64-bit IEEE floating-point data record). For example, the SEG-D Rev.0 standard (1975) supports 0015, 0022, 0024, 0042, 0044, 0048 and 8015, 8022, 8024, 8042, 8044, 8048 data formats; the SEG-D Rev.1 standard (1994) adds 0036, 0038, 0058 and 8036, 8038, 8058 data formats; the SEG-D Rev.2.0 standard (1996) no longer supports multi-channel recording formats; the SEG-D Rev.3.0 standard (2009) adds support for the 8080 data format.

[0110] The data format recorded in the present embodiment is an exponential format, and its amplitude value is defined as follows:

[0111] Signal=(-1) S ×Q×B C ×2 MP (mV)

[0112] Where: S is the sign bit; C represents the exponent (order code) with B as the base; the base B is 2, 4 or 16; Q represents the mantissa, and the inverse conversion coefficient MP value is stored in the 7th to 8th bytes of the channel set header block.

[0113] The definitions of the exponents and mantissas of each format are shown in Appendix 8 to Table 15.

[0114] Table 8 8-bit quaternary exponent recording method (0022 and 8022 format)

[0115] Bit 0 1 2 3 4 5 6 7 Byte 1 S <![CDATA[C2]]> <![CDATA[C1]]> <![CDATA[C0]]> <![CDATA[Q -1 ]]> <![CDATA[Q -2 ]]> <![CDATA[Q -3 ]]> <![CDATA[Q -4 ]]>

[0116] Table 9 16-bit quaternary exponent recording method (0024 and 8024 format)

[0117] Bit 0 1 2 3 4 5 6 7 Byte 1 S <![CDATA[C2]]> <![CDATA[C1]]> <![CDATA[C0]]> <![CDATA[Q -1 ]]> <![CDATA[Q -2 ]]> <![CDATA[Q -3 ]]> <![CDATA[Q -4 ]]> Byte 2 <![CDATA[Q -5 ]]> <![CDATA[Q -6 ]]> <![CDATA[Q -7 ]]> <![CDATA[Q -8 ]]> <![CDATA[Q -9 ]]> <![CDATA[Q -10 ]]> <![CDATA[Q -11 ]]> <![CDATA[Q -12 ]]>

[0118] Table 10 20-bit binary exponent decoding and recording method (0015 and 8015 format)

[0119]

[0120]

[0121] Table 11 8-bit hexadecimal exponent recording method (0042 and 8042 format)

[0122] Bit 0 1 2 3 4 5 6 7 Byte 1 S <![CDATA[C1]]> <![CDATA[C0]]> <![CDATA[Q -1 ]]> <![CDATA[Q -2 ]]> <![CDATA[Q -3 ]]> <![CDATA[Q -4 ]]> <![CDATA[Q -5 ]]>

[0123] Table 12 16-bit hexadecimal index recording method (0044 and 8044 format)

[0124] Bit 0 1 2 3 4 5 6 7 Byte 1 S <![CDATA[C1]]> <![CDATA[C0]]> <![CDATA[Q -1 ]]> <![CDATA[Q -2 ]]> <![CDATA[Q -3 ]]> <![CDATA[Q -4 ]]> <![CDATA[Q -5 ]]> Byte 2 <![CDATA[Q -6 ]]> <![CDATA[Q -7 ]]> <![CDATA[Q -8 ]]> <![CDATA[Q -9 ]]> <![CDATA[Q -10 ]]> <![CDATA[Q -11 ]]> <![CDATA[Q -12 ]]> <![CDATA[Q -13 ]]>

[0125] Table 13 32-bit hexadecimal index recording method (0048 and 8048 format)

[0126] Bit 0 1 2 3 4 5 6 7 Byte 1 S C6 C5 C4 C3 C2 C1 C0 Byte 2 Q-1 Q-2 Q-3 Q-4 Q-5 Q-6 Q-7 Q-8 Byte 3 Q-9 Q-10 Q-11 Q-12 Q-13 Q-14 Q-15 Q-16 Byte 4 Q-17 Q-18 Q-19 Q-20 Q-21 Q-22 Q-23 0

[0127] Table 14 32-bit IEEE floating point recording method (8058 format)

[0128] Bit 0 1 2 3 4 5 6 7 Byte 1 S <![CDATA[C7]]> <![CDATA[C6]]> <![CDATA[C5]]> <![CDATA[C4]]> <![CDATA[C3]]> <![CDATA[C2]]> <![CDATA[C1]]> Byte 2 <![CDATA[C0]]> <![CDATA[Q -1 ]]> <![CDATA[Q -2 ]]> <![CDATA[Q -3 ]]> <![CDATA[Q -4 ]]> <![CDATA[Q -5 ]]> <![CDATA[Q -6 ]]> <![CDATA[Q -7 ]]> Byte 3 <![CDATA[Q -8 ]]> <![CDATA[Q -9 ]]> <![CDATA[Q -10 ]]> <![CDATA[Q -11 ]]> <![CDATA[Q -12 ]]> <![CDATA[Q -13 ]]> <![CDATA[Q -14 ]]> <![CDATA[Q -15 ]]> Byte 4 <![CDATA[Q -16 ]]> <![CDATA[Q -17 ]]> <![CDATA[Q -18 ]]> <![CDATA[Q -19 ]]> <![CDATA[Q -20 ]]> <![CDATA[Q -21 ]]> <![CDATA[Q -22 ]]> <![CDATA[Q -23 ]]>

[0129] Table 15 64-bit IEEE floating point recording method (8080 format)

[0130]

[0131]

[0132] The data format recorded in the embodiment of the present application is an integer, and its amplitude value is defined as follows:

[0133] Signal={(I+2 N-1 )÷2 N -2 N-1}×2 MP (mV)

[0134] Where: I is the recorded data value; N is the data storage length (24 bits / 32 bits); MP is the inverse conversion coefficient, which is used to convert the value to the actual measured voltage value.

[0135] The definition of the format order code and mantissa is shown in Table 16 and Table 17:

[0136] Table 16 24-bit integer recording mode (8036 format)

[0137] Bit 0 1 2 3 4 5 6 7 Byte 1 <![CDATA[I 23 ]]> <![CDATA[I 22 ]]> <![CDATA[I 21 ]]> <![CDATA[I 20 ]]> <![CDATA[I 19 ]]> <![CDATA[I 18 ]]> <![CDATA[I 17 ]]> <![CDATA[I 16 ]]> Byte 2 <![CDATA[I 15 ]]> <![CDATA[I 14 ]]> <![CDATA[I 13 ]]> <![CDATA[I 12 ]]> <![CDATA[I 11 ]]> <![CDATA[I 10 ]]> <![CDATA[I9]]> <![CDATA[I8]]> Byte 3 <![CDATA[I7]]> <![CDATA[I6]]> <![CDATA[I5]]> <![CDATA[I4]]> <![CDATA[I3]]> <![CDATA[I2]]> <![CDATA[I1]]> <![CDATA[I0]]>

[0138] Table 17 32-bit integer recording method (8038 format)

[0139] Bit 0 1 2 3 4 5 6 7 Byte 1 <![CDATA[I 31 ]]> <![CDATA[I 30 ]]> <![CDATA[I 29 ]]> <![CDATA[I 28 ]]> <![CDATA[I 27 ]]> <![CDATA[I 26 ]]> <![CDATA[I 25 ]]> <![CDATA[I 24 ]]> Byte 2 <![CDATA[I 23 ]]> <![CDATA[I 22 ]]> <![CDATA[I 21 ]]> <![CDATA[I 20 ]]> <![CDATA[I 19 ]]> <![CDATA[I 18 ]]> <![CDATA[I 17 ]]> <![CDATA[I 16 ]]> Byte 3 <![CDATA[I 15 ]]> <![CDATA[I 14 ]]> <![CDATA[I 13 ]]> <![CDATA[I 12 ]]> <![CDATA[I 11 ]]> <![CDATA[I 10 ]]> <![CDATA[I9]]> <![CDATA[I8]]> Byte 4 <![CDATA[I7]]> <![CDATA[I6]]> <![CDATA[I5]]> <![CDATA[I4]]> <![CDATA[I3]]> <![CDATA[I2]]> <![CDATA[I1]]> <![CDATA[I0]]>

[0140] S205: Generate the seismic data format template according to the byte order, the BCD structure, the data structure of the header block and the seismic trace data sample value data format.

[0141] It can be understood that the seismic data format template in the embodiment of the present application involves many contents including byte order, BCD structure, data structure of header block and data format of seismic channel data sample value, so it needs to be generated according to the above items.

[0142] From the above description, it can be seen that the present application provides a seismic data format conversion method, which can generate a seismic data format template according to the characteristics of seismic data.

[0143] See also Figure 3 In one embodiment, a data structure of a header block is established according to the header block data of the seismic data, including:

[0144] S301: Determine the total number of header blocks of the seismic data according to the header block data of the seismic data;

[0145] S302: establishing a data structure of a basic information universal header block, a data structure of a supplementary information universal header block, and a data structure of a field acquisition parameter information universal header block according to the total number of header blocks;

[0146] S303: Establishing a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block;

[0147] S304: establishing a data structure of an extended header block and a data structure of an external header block according to the number of extended track headers and the number of external track headers in the basic information universal header block.

[0148] It is understandable that the present application embodiment uses the SEG-D simplified data format as an example to illustrate the implementation of the header block and track header data structure definition. Fig.12 As shown in Figure 1, a SEG-D simplified data format usually includes several universal header blocks, each of which occupies 32 bytes. Universal header block #1 records the total number of universal header blocks. Since the data structures of universal header block #1 (its internal structure definition is shown in Table 2), universal header block #2 (its internal structure definition is shown in Table 3) and other universal header blocks (its internal structure definition is shown in Table 4) are different, they need to be defined separately. First, determine the total number of header blocks of seismic data, and then determine how many universal header blocks are needed. Among them, there is at most one universal header block #1, at most one universal header block #2, and the number of other universal header blocks is unlimited, but the sum of the three should be equal to the total number of header blocks of seismic data. Since the internal format of each universal header block is standardized, it is only necessary to know how many header blocks are needed here. Next, define the data structure of the channel set header block (its internal structure definition is shown in Table 5). The seismic traces are stored in different channel sets according to the number of scans and trace types. The channel set header block is used to record the type and number of seismic traces. The number of channel sets is recorded in universal header block #1. In addition to the general header block and the channel set header block, the SEG-D total header block also includes an extended header block and an external header block. However, the SEG standard does not define the data structure of the extended header block and the external header block. The definition of each instrument manufacturer is different. In order to facilitate data analysis, the template defines it as a common body of 1 byte, 2 bytes and 4 bytes. In one embodiment of the present application, the definition code snippet of the extended header block and the external header block is as follows:

[0149] union ECHD{

[0150] byte EC1b[32*(file.FH.GH1.EC.a*10+file.FH.GH1.EC.b)];

[0151] int16 EC2b[16*(file.FH.GH1.EC.a*10+file.FH.GH1.EC.b)];

[0152] int32 EC4b[8*(file.FH.GH1.EC.a*10+file.FH.GH1.EC.b)];

[0153] }EC;

[0154] union EXHD_X{

[0155] byte EX1b[32*file.FH.GH2.EH];

[0156] int16 EX2b[16*file.FH.GH2.EH];

[0157] int32 EX4b[8*file.FH.GH2.EH];

[0158] }EX;

[0159] Among them, ECHD is the extended header block, EC is the external header block, file is the seismic data file variable, FH is the file header block variable, GH1 is the general header block #1, EC is the variable that defines the number of extended header blocks in the general header block #1, and EX is the variable that defines the number of external header blocks in the general header block #1.

[0160] like Fig.12 As shown, after the definition of the general header block is completed, it is also necessary to define the data structure of the external header (its internal structure definition is shown in Table 6) and the data structure of the extended header (its internal structure definition is shown in Table 7).

[0161] Table 1 8421BCD encoding table

[0162] Decimal Numbers 0 1 2 3 4 5 6 7 8 9 8421BCD code 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001

[0163] Table 2 SEG-D general header block #1 format definition

[0164]

[0165]

[0166] Table 3 SEG-D general header block #2 format definition

[0167] Byte range Format Mask Format illustrate 1-3 XXXXXX binary Extension file number 4-5 X Expand channel set number 6-7 X Number of extension header blocks 8-9 XXXX binary Number of external header blocks 10 Undefined 11-12 XX binary SEG-D version number 13-14 X Tracking data block number 15-17 XXXXXX binary Extended record length (0-128000ms) 18 Undefined 19 X binary Number of common header blocks 20 Undefined 21-22 XXXX binary Sequence Number 23-32 Undefined

[0168] Table 4 SEG-D general header block #3+ format definition

[0169]

[0170]

[0171] Table 5 SEG-D channel set header block format definition

[0172] Byte range Format Mask Format illustrate 1 XX BCD Scan Type Number 2 XX BCD Channel set number 3-4 XXXX binary Start time 5-6 XXXX binary End Time 7-8 XXXX binary Inverse conversion factor (MP factor) 9-10 XXXX BCD Channel number in channel set 11H X BCD Channel Type 11L Undefined 12H X Subscan No. 12L X BCD Gain control method 13-14 XXXX BCD Anti-aliasing filter frequency 15H Undefined 15L-16 XX BCD Anti-aliasing filter ramp 17-18 XX BCD Low Cutoff Filter Frequency 19H Undefined 19L-20 XX BCD Low Cut Filter Ramp 21-22 X First notch frequency 23-24 X Second notch frequency 25-26 X The third notch frequency 27-28 X Extended channel set number 29H X Extended trace header flag 29L X binary Extension header number 30 XX binary Vertical stacking 31 XX binary Tow cable number 32 X binary Permutation and combination form

[0173] Table 6 SEG-D header format definition

[0174] Byte range Format Mask Format illustrate 1-2 XXXX BCD File number (0-9999) 3 XX BCD Scan Type Number 4 XX BCD Channel set number 5-6 XXXX BCD road number 7-9 XXXX binary Record start time 10 X binary Extension header number 11 X Sampling time deviation 12 XX binary Road Editing Status 13-15 XXXX.XX binary Detonation time 16-17 X Extended channel number 18-20 XXXXXX Extension file number

[0175] Table 7 SEG-D extension header format definition

[0176] Byte range Format Mask Format illustrate 1-3 XXXXXX binary Detection line number 4-6 XXXXXX binary Detection point number 7 XX binary Geophone Index 8-10 XXXXXX binary Number of samples 11-15 X Extended detection line number 16-20 X Extended detection point number 21 XX binary Detector Type 22-32 Undefined

[0177] It can be seen from the above description that the present application provides a method for converting the format of seismic data, which can establish a data structure of a header block according to the header block data of the seismic data.

[0178] See also Figure 4 In one embodiment, the seismic data is parsed using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array, including:

[0179] S401: Obtain the number of additional general header blocks recorded in the basic information general header block;

[0180] S402: Generate the data structure of the universal header block of the seismic data format template according to the number of the additional universal header blocks, the data structure of the supplementary information universal header block and the data structure of the field acquisition parameter information universal header block;

[0181] S403: Generate a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block;

[0182] S404: Generate a data structure of an extended header block and a data structure of an external header block according to the number of extended trace headers and the number of external trace headers in the basic information general header block;

[0183] S405: Generate a data structure of an extended trace header according to the number of extended trace headers in the trace header data structure;

[0184] S406: Generate seismic trace sample data according to the format code definition and the format code value, sampling interval value, and record length value in the basic information general header block;

[0185] S407: According to the data structure of the general header block, the data structure of the channel set header block, the data structure of the extended header block, the data structure of the external header block and the data structure of the extended trace header, the seismic trace sample point data are constructed into a seismic data volume header structure and a seismic trace structure array according to the total number of traces in all channel sets.

[0186] Understandably, Fig.10 1 and 2 , respectively, show the seismic data decoding result before format conversion (left) and the seismic data decoding result after format conversion (right) in an embodiment of the present application.

[0187] The seismic data format template has been defined in the previous step. The following steps will be followed to parse the seismic data according to the pre-defined seismic data format template:

[0188] (1) Read the data universal header block #1, determine the number of additional universal header blocks according to the value of the high 4 bits of the 12th byte, and dynamically generate the universal header block data structure in the seismic data format template according to the number of universal header blocks and the data structure definitions of universal header block #2 (Table 3) and universal header block #3+ (Table 4);

[0189] (2) Read the 28th byte of the general header block #1 to determine the number of scan types, and then read the 29th byte to determine the number of channel sets in each scan type, and generate the channel set header block (Table 5) data structure;

[0190] (3) Read the 31st byte of general header block #1 to determine the number of extended header blocks, read the 32nd byte to determine the number of external header blocks, and generate a common structure of 1, 2, and 4 bytes for the extended header blocks and external header blocks respectively according to the number and the size of 32 bytes per block;

[0191] (4) Constructing the data structure of the trace header (Table 6), reading the 10th byte of the trace header to determine the number of extended trace headers, and generating the data structure of the extended trace header (Table 7);

[0192] (5) Read the format code value in the 3rd and 4th bytes of the general header block #1, the sampling interval value in the 23rd byte, the lower four bits of the 26th byte and the record length value in the 27th byte respectively, and generate seismic trace sample point data according to the format code definition;

[0193] (6) Read the 9th to 10th bytes of all channel set header blocks, count the total number of channels in all channel sets, and construct the seismic data volume header structure and seismic channel structure array according to the number of channels.

[0194] Fig.14 An example diagram of parsing 8058 format SEG-D Rev1.0 data is given.

[0195] After completing the above steps, the most ideal situation is that all the seismic data are correctly parsed, and the seismic data format template matches the seismic data completely, so there is no need to correct the seismic data format template, and there is no need to correct the recording format of the seismic data. However, in more cases, the seismic data format template does not completely match the seismic data, and data reading errors may occur. In this way, when generating the seismic data header structure and the seismic track structure array, due to the existence of the monitoring window, the technician can track the location where the error occurs in real time, and promptly correct the seismic data format template according to the error, so that the seismic data format template matches the seismic data completely. The specific correction method is explained in the following embodiments.

[0196] In one embodiment, the format of the seismic data format template is modified according to the seismic data volume header structure, the seismic trace structure array and the seismic data format template, including:

[0197] The data structure defined in the seismic data format template is modified to a data structure matching the seismic data volume header structure and the seismic trace structure array, so as to obtain a modified seismic data format template.

[0198] It is understood that, for example, in the process of parsing seismic data in step (1) above, in the monitoring window (such as Fig.11 As shown in the figure), track the parsed data structure and variable values ​​to find problems in time and correct the template. Fig.15 In the error checking example shown, the data sampling interval read from the general header block #1 is 2 milliseconds, and the record length read from the general header block #2 is 6000 milliseconds. Adding the zero time sample value, the seismic channel should have 3001 sample values. However, from the data structure parsed in the monitoring window, the first seismic channel is normal, and the data structure is messed up from the second seismic channel. The error position of the second seismic channel can be located in the original data window (such as Fig.11 As shown in the figure, we can see that the second seismic channel is offset by 32 bytes downward, which means that the first seismic channel has read 8 more samples (32 bytes). At this time, we check other seismic channels and find that they also have only 2993 sample values. Therefore, the actual number of seismic channel sample values ​​is 8 less than the number of sample values ​​recorded in the channel header. Based on this analysis, we can modify the definition of seismic channel data sample values ​​in the seismic data format template, subtract 8 sample values ​​from the original value, and modify the code snippet of the seismic data format template as follows:

[0199] local int samples=2*(CS[0].TE-CS[0].TF) / (GH1.I / 10h)+1-8;

[0200] Where: CS[0].TE is the end time of channel set 0 recording; CS[0].TF is the start time of channel set 0 recording; GH1.I is the sampling interval recorded in general header block #1, which needs to be divided by 10h to convert the value to the actual sampling value. The analysis result after modifying the seismic data format template is as follows Fig.16 As shown, the data structures of all seismic traces can be parsed correctly.

[0201] From the above description, it can be seen that the present application provides a seismic data format conversion method, which can format modify the seismic data format template according to the seismic data volume header structure, seismic channel structure array and seismic data format template.

[0202] The above steps can also be found in Fig.13 shown.

[0203] Based on the same inventive concept, the embodiment of the present application also provides a seismic data format conversion device, which can be used to implement the method described in the above embodiment, as described in the following embodiment. Since the principle of the seismic data format conversion device to solve the problem is similar to the seismic data format conversion method, the implementation of the seismic data format conversion device can refer to the implementation of the method based on the software performance benchmark determination method, and the repetitions are not repeated. As used below, the term "unit" or "module" can implement a combination of software and / or hardware of a predetermined function. Although the system described in the following embodiment is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0204] See also Figure 5 In order to convert the format of seismic data according to the revised seismic data format template, the present application provides a seismic data format conversion device, including: a template generation unit 501, an array generation unit 502, a template correction unit 503 and a format conversion unit 504.

[0205] The template generation unit 501 is used to generate a seismic data format template according to the seismic data characteristics, wherein the seismic data format template includes a volume header, a trace header and data sample point values;

[0206] An array generation unit 502 is used to parse the seismic data using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array;

[0207] A template correction unit 503, used for correcting the seismic data format template according to the seismic data volume header structure and the seismic trace structure array;

[0208] The format conversion unit 504 is used to convert the format of the seismic data according to the modified seismic data format template.

[0209] See also Figure 6 The seismic data characteristics include the seismic data acquisition and recording method, the seismic data header encoding standard, the seismic data header block data and the seismic data seismic data seismic data sample point value. The template generation unit 501 includes: a byte order determination module 601, a structure establishment module 602, a header block structure establishment module 603, a sample point value format establishment module 604 and a template generation module 605.

[0210] The byte order determination module 601 is used to determine the byte order of the seismic data file in the seismic data format template according to the acquisition and recording method of the seismic data;

[0211] A structure building module 602 is used to build a BCD structure according to the header coding standard of the seismic data;

[0212] A header block structure establishing module 603, used to establish a data structure of a header block according to the header block data of the seismic data;

[0213] A sample value format establishment module 604 is used to establish a data format of seismic trace data sample value according to the seismic trace data sample value of the seismic data;

[0214] The template generation module 605 is used to generate the seismic data format template according to the byte order, the BCD structure, the data structure of the header block and the data format of the seismic trace data sample value.

[0215] See also Figure 7 The header block structure establishing module 603 includes: a quantity determining module 701, a general header block structure establishing module 702, a channel set header block structure establishing module 703 and an extended external header block structure establishing module 704.

[0216] A quantity determination module 701 is used to determine the total number of header blocks of the seismic data according to the header block data of the seismic data;

[0217] A general header block structure establishment module 702 is used to establish a data structure of a basic information general header block, a data structure of a supplementary information general header block, and a data structure of a field acquisition parameter information general header block according to the total number of header blocks;

[0218] A channel set header block structure establishment module 703 is used to establish a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block;

[0219] The extended external header block structure establishing module 704 is used to establish the data structure of the extended header block and the data structure of the external header block according to the number of extended track headers and the number of external track headers in the basic information general header block.

[0220] See also Figure 8 The array generation unit 502 includes: an additional general header block quantity acquisition module 801, a general header block data structure generation module 802, a channel set header block data structure generation module 803, an extended external header block structure generation module 804, an extended track header data structure generation module 805, a seismic track sample point data generation module 806 and an array generation module 807.

[0221] The additional general header block quantity acquisition module 801 is used to acquire the number of additional general header blocks recorded in the basic information general header block;

[0222] A general header block data structure generating module 802 is used to generate a data structure of a general header block of the seismic data format template according to the number of additional general header blocks, the data structure of the supplementary information general header block and the data structure of the field acquisition parameter information general header block;

[0223] A channel set header block data structure generating module 803 is used to generate a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block;

[0224] An extended external header block structure generating module 804 generates a data structure of an extended header block and a data structure of an external header block according to the number of extended track headers and the number of external track headers in the basic information general header block;

[0225] The extended trace header data structure generating module 805 is used to generate the extended trace header data structure according to the number of extended trace headers in the trace header data structure;

[0226] A seismic trace sample data generation module 806 is used to generate seismic trace sample data according to the format code definition and the format code value, sampling interval value, and record length value in the basic information general header block;

[0227] The array generation module 807 constructs the seismic trace sample data into a seismic data volume header structure and a seismic trace structure array according to the data structure of the general header block, the data structure of the channel set header block, the data structure of the extended header block, the data structure of the external header block and the data structure of the extended trace header according to the total number of traces in all channel sets.

[0228] The template correction unit 503 includes:

[0229] The template correction module is used to correct the data structure defined in the seismic data format template to a data structure matching the seismic data volume header structure and the seismic channel structure array to obtain a corrected seismic data format template.

[0230] From the hardware level, in order to be able to convert the format of seismic data according to the revised seismic data format template, the present application provides an embodiment of an electronic device that includes all or part of the contents of the seismic data format conversion method, and the electronic device specifically includes the following contents:

[0231] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between the seismic data format conversion device and related equipment such as core business systems, user terminals and related databases; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the logic controller can be implemented with reference to the embodiment of the seismic data format conversion method and the embodiment of the seismic data format conversion device in the embodiment, and the contents thereof are incorporated herein, and the repeated parts are not repeated.

[0232] It is understandable that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.

[0233] In practical applications, part of the seismic data format conversion method can be executed on the electronic device side as described above, or all operations can be completed in the client device. The specific selection can be based on the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.

[0234] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.

[0235] Fig. 9 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig. 9 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig. 9 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0236] In one embodiment, the seismic data format conversion method function may be integrated into the central processor 9100. The central processor 9100 may be configured to perform the following control:

[0237] S101: Generate a seismic data format template according to seismic data characteristics, wherein the seismic data format template includes a volume header, a trace header, and data sample point values.

[0238] S102: parse the seismic data using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array.

[0239] S103: Modifying the seismic data format template according to the seismic data volume header structure and the seismic trace structure array.

[0240] S104: Convert the format of the seismic data according to the revised seismic data format template.

[0241] From the above description, it can be seen that the present application provides a method for converting the format of seismic data, which can make full use of software programs and platforms, effectively facilitate seismic data processing technicians to conduct in-depth structured analysis of the original data, track the data decoding process in real time, and discover various data format errors at any time. By modifying the data structure template in the software platform to match various types of seismic data, and modifying and converting the problematic seismic data into the SEG standard format, the seismic data processing software can correctly read and decode the data.

[0242] In another embodiment, the seismic data format conversion device can be configured separately from the central processing unit 9100. For example, the seismic data format conversion device can be configured as a chip connected to the central processing unit 9100, and the function of the seismic data format conversion method can be implemented through the control of the central processing unit.

[0243] like Fig. 9 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig. 9 In addition, the electronic device 9600 may also include Fig. 9 For components not shown, reference may be made to the prior art.

[0244] like Fig. 9 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.

[0245] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.

[0246] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.

[0247] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.

[0248] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0249] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0250] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.

[0251] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the method for converting seismic data format in the above embodiment, where the execution subject is a server or a client. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, all the steps of the method for converting seismic data format in the above embodiment, where the execution subject is a server or a client, are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0252] S101: Generate a seismic data format template according to seismic data characteristics, wherein the seismic data format template includes a volume header, a trace header, and data sample point values.

[0253] S102: parse the seismic data using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array.

[0254] S103: Modifying the seismic data format template according to the seismic data volume header structure and the seismic trace structure array.

[0255] S104: Convert the format of the seismic data according to the revised seismic data format template.

[0256] From the above description, it can be seen that the present application provides a method for converting the format of seismic data, which can make full use of software programs and platforms, effectively facilitate seismic data processing technicians to conduct in-depth structured analysis of the original data, track the data decoding process in real time, and discover various data format errors at any time. By modifying the data structure template in the software platform to match various types of seismic data, and modifying and converting the problematic seismic data into the SEG standard format, the seismic data processing software can correctly read and decode the data.

[0257] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0258] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0259] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0260] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0261] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for converting seismic data format, characterized in that: include: Generate a seismic data format template according to the seismic data characteristics, wherein the seismic data format template includes a volume header, a trace header, and data sample point values; The seismic data is parsed using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array; Modify the seismic data format template according to the seismic data volume header structure and the seismic channel structure array; Convert the format of seismic data according to the revised seismic data format template; The seismic data characteristics include the acquisition and recording method of seismic data, the header coding standard of seismic data, the header block data of seismic data and the seismic trace data sample point value of seismic data. The seismic data format template is generated according to the seismic data characteristics, including: Determining the byte order of the seismic data file in the seismic data format template according to the acquisition and recording method of the seismic data; Establishing a BCD structure according to the header coding standard of the seismic data; Establishing a data structure of a header block according to the header block data of the seismic data; Establishing a data format of seismic trace data sample point values ​​according to the seismic trace data sample point values ​​of the seismic data; Generate the seismic data format template according to the byte order, the BCD structure, the data structure of the header block and the seismic trace data sample value data format; The step of establishing a data structure of a header block according to the header block data of the seismic data includes: Determining the total number of header blocks of the seismic data according to the header block data of the seismic data; Establishing the data structure of the basic information universal header block, the data structure of the supplementary information universal header block and the data structure of the field collection parameter information universal header block according to the total number of header blocks; Establishing a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block; The data structure of the extended header block and the data structure of the external header block are established according to the number of extended track headers and the number of external track headers in the basic information universal header block.

2. The method for converting seismic data format according to claim 1, characterized in that: The method of parsing the seismic data using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array includes: Get the number of additional general header blocks recorded in the basic information general header block; Generate the data structure of the universal header block of the seismic data format template according to the number of the additional universal header blocks, the data structure of the supplementary information universal header block and the data structure of the field acquisition parameter information universal header block; Generate a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block; Generate a data structure of an extended header block and a data structure of an external header block according to the number of extended trace headers and the number of external trace headers in the basic information universal header block; Generate an extended trace header data structure according to the number of extended trace headers in the trace header data structure; Generate seismic trace sample data according to the format code definition and the format code value, sampling interval value, and record length value in the basic information general header block; According to the data structure of the general header block, the data structure of the channel set header block, the data structure of the extended header block, the data structure of the external header block and the data structure of the extended trace header, the seismic trace sample point data are constructed into a seismic data volume header structure and a seismic trace structure array according to the total number of traces in all channel sets.

3. The method for converting seismic data format according to claim 1, characterized in that: The method of correcting the seismic data format template according to the seismic data volume header structure and the seismic channel structure array includes: The data structure defined in the seismic data format template is modified to a data structure matching the seismic data volume header structure and the seismic trace structure array, so as to obtain a modified seismic data format template.

4. A seismic data format conversion device, characterized in that: include: A template generating unit, used for generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template includes a volume header, a trace header and data sample point values; An array generation unit, used for parsing the seismic data using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array; A template correction unit, used for correcting the seismic data format template according to the seismic data volume header structure and the seismic trace structure array; A format conversion unit, used for converting the format of seismic data according to the revised seismic data format template; The seismic data characteristics include the acquisition and recording method of the seismic data, the header coding standard of the seismic data, the header block data of the seismic data and the seismic trace data sample point value of the seismic data. The template generation unit includes: A byte order determination module, used to determine the byte order of the seismic data file in the seismic data format template according to the acquisition and recording method of the seismic data; A structure building module, used for building a BCD structure according to the header coding standard of the seismic data; A header block structure establishment module, used to establish a data structure of a header block according to the header block data of the seismic data; A sample value format establishment module, used to establish a seismic trace data sample value data format according to the seismic trace data sample value of the seismic data; A template generation module, used for generating the seismic data format template according to the byte order, the BCD structure, the data structure of the header block and the data format of the seismic trace data sample value; Wherein, the header block structure establishment module includes: A quantity determination module, used to determine the total number of header blocks of the seismic data according to the header block data of the seismic data; A general header block structure establishment module, used to establish a data structure of a basic information general header block, a data structure of a supplementary information general header block, and a data structure of a field acquisition parameter information general header block according to the total number of header blocks; A channel set header block structure establishment module, used to establish a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block; The extended external header block structure establishment module is used to establish the data structure of the extended header block and the data structure of the external header block according to the number of extended track headers and the number of external track headers in the basic information general header block.

5. The seismic data format conversion device according to claim 4, characterized in that: The array generation unit comprises: An additional general header block quantity acquisition module is used to obtain the number of additional general header blocks recorded in the basic information general header block; A general header block data structure generating module, used for generating the data structure of the general header block of the seismic data format template according to the number of the additional general header blocks, the data structure of the supplementary information general header block and the data structure of the field acquisition parameter information general header block; A channel set header block data structure generation module, used to generate a data structure of a channel set header block according to the number of scan types and the number of channel sets in the basic information general header block; An extended external header block structure generation module generates a data structure of an extended header block and a data structure of an external header block according to the number of extended track headers and the number of external track headers in the basic information general header block; An extended trace header data structure generating module is used to generate an extended trace header data structure according to the number of extended trace headers in the trace header data structure; A seismic trace sample data generation module, used to generate seismic trace sample data according to the format code definition and the format code value, sampling interval value, and record length value in the basic information general header block; The array generation module constructs the seismic trace sample data into a seismic data volume header structure and a seismic trace structure array according to the data structure of the general header block, the data structure of the channel set header block, the data structure of the extended header block, the data structure of the external header block and the data structure of the extended trace header according to the total number of traces in all channel sets.

6. The seismic data format conversion device according to claim 4, characterized in that: The template correction unit comprises: The template correction module is used to correct the data structure defined in the seismic data format template to a data structure matching the seismic data volume header structure and the seismic channel structure array to obtain a corrected seismic data format template.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the seismic data format conversion method according to any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the seismic data format conversion method described in any one of claims 1 to 3 are implemented.