Nothing Special   »   [go: up one dir, main page]

CN112463861A - Seismic data format conversion method and device - Google Patents

Seismic data format conversion method and device Download PDF

Info

Publication number
CN112463861A
CN112463861A CN202011172393.6A CN202011172393A CN112463861A CN 112463861 A CN112463861 A CN 112463861A CN 202011172393 A CN202011172393 A CN 202011172393A CN 112463861 A CN112463861 A CN 112463861A
Authority
CN
China
Prior art keywords
data
seismic
seismic data
channel
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011172393.6A
Other languages
Chinese (zh)
Inventor
杨建锋
贾文锐
刘勇
杨勇
赵珉
蒋剑克
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China National Petroleum Corp
BGP Inc
Original Assignee
China National Petroleum Corp
BGP Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China National Petroleum Corp, BGP Inc filed Critical China National Petroleum Corp
Priority to CN202011172393.6A priority Critical patent/CN112463861A/en
Publication of CN112463861A publication Critical patent/CN112463861A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V1/00Seismology; Seismic or acoustic prospecting or detecting
    • G01V1/28Processing seismic data, e.g. for interpretation or for event detection
    • G01V1/32Transforming one recording into another or one representation into another

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Acoustics & Sound (AREA)
  • Environmental & Geological Engineering (AREA)
  • Geology (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geophysics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The application provides a seismic data format conversion method and a device, wherein the method comprises the following steps: generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template comprises a volume head, a track head and data sample values; analyzing the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array; correcting the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array; and carrying out format conversion on the seismic data according to the corrected seismic data format template. The method and the device can analyze the seismic data by utilizing the seismic data format template and convert the seismic data format.

Description

Seismic data format conversion method and device
Technical Field
The application relates to the field of petroleum geophysical exploration, in particular to a seismic data format conversion method and device.
Background
In the last 60 years, the analog tape recording seismographs manufactured by transistors were gradually replaced by the digital tape recording seismographs manufactured by using integrated circuits. To meet the demand for digital tape recording seismic data, the Society of Exploration Geophysicists (SEG) issued SEG-a and SEG-B digital tape recording data formats in 1967 and proposed SEG-C digital tape recording data format in 1972. The SEG-C digital tape recording data format records data sample values in a 32-bit IBM floating point format, so that the precision of seismic data recording is improved. In 1975, the society of exploration geophysicists successively introduced 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 developed many other non-standard seismic Data formats based on specific goals and specific requirements, such as ltod (space Tape on disk) Data format and rod (record ordered Data encapsulation) Data format, which are developed to meet the requirement of transcribing seismic Data from magnetic Tape to magnetic disk, and su (seismic unix) Data format, which is developed to simplify the seismic Data input and output process and improve seismic Data reading performance, modified based on SEG-Y format.
The SEG series, LTOD, RODE and SU series data formats are classified in a mode of recording seismic data in the geophysical field, the classification method is macroscopic, the lower part of each classification is divided into an integer data type and a floating point data type, the floating point data types can be divided into IBM and IEEE two international standard floating point data types and SEG self-defined floating point data types, and the data formats are various.
When a geophysical exploration practitioner processes seismic data, due to the fact that the data format of the seismic data is complex, nonstandard data formats are encountered. In addition, the seismic data may originate from different operators, service providers, software platforms and the like, some seismic data are transcribed and copied for multiple times, data headers and basic information are seriously lost, and the data de-coding module of the existing seismic data processing software can only realize simple header relation mapping, namely, the data headers in a standard data format are displayed, but cannot solve the problem of de-coding the seismic data under the condition of data format errors and non-standard data format recording. In addition, when a complex original seismic data decoding problem is processed, a decoding module of the existing software platform does not have a problem data analysis function, and cannot track the data reading process in real time and find the problem existing in a data format in time. For the reasons, many seismic data cannot be accurately compiled, so that a large amount of manpower and material resources are wasted in the processes of searching for data compiling errors and developing data analysis in the later period, and the efficiency is low.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a seismic data format conversion method and a seismic data format conversion device, which can analyze seismic data by using a seismic data format template and convert the seismic data into a format.
In order to solve the technical problem, the application provides the following technical scheme:
in a first aspect, the present application provides a seismic data format conversion method, including:
generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template comprises a volume head, a track head and data sample values;
analyzing the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array;
correcting the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array;
and carrying out format conversion on the seismic data according to the corrected seismic data format template.
Further, the seismic data characteristics include a seismic data acquisition and recording mode, a seismic data channel head coding standard, seismic data head block data and seismic data sample point values of the seismic data, and a seismic data format template is generated according to the seismic data characteristics, including:
determining the byte sequence of the seismic data files in the seismic data format template according to the acquisition and recording mode of the seismic data;
establishing a BCD structure according to the track head coding standard of the seismic data;
establishing a data structure of a head block according to head block data of the seismic data;
establishing a data format of the seismic channel data sampling point value according to the seismic channel data sampling point value of the seismic data;
and generating the seismic data format template according to the byte sequence, the BCD structure, the data structure of the head block and the data format of the seismic channel data sampling point value.
Further, the establishing a data structure of a header block according to the header block data of the seismic data includes:
determining the total head block number of the seismic data according to the head block data of the seismic data;
establishing 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 header block quantity;
establishing a data structure of a channel header block according to the scanning type number and the channel header number in the basic information universal header block;
and establishing a data structure of the extended header block and a data structure of the external header block according to the number of the extended track headers and the number of the external track headers in the basic information universal header block.
Further, the analyzing the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array includes:
acquiring the number of extra universal header blocks recorded in the universal header block of the basic information;
generating a data structure of the universal head block of the seismic data format template according to the number of the additional universal head blocks, the data structure of the supplementary information universal head block and the data structure of the field acquisition parameter information universal head block;
generating a data structure of a channel header block according to the scanning type number and the channel header number in the basic information universal header block;
generating a data structure of an extended header block and a data structure of an external header block according to the number of the extended tracks in the basic information universal header block and the number of the external tracks;
generating a data structure of the expansion track head according to the number of the expansion track heads in the track head data structure;
generating seismic channel sampling point data according to the format code definition and the format code value, the sampling interval value and the recording length value in the basic information universal head block;
and constructing the seismic channel sample point data into a seismic data volume head structure and a seismic channel structure array according to the data structure of the universal head block, the data structure of the channel cluster head block, the data structure of the extension head block, the data structure of the external head block and the data structure of the extension channel head and the total channel number of all channel clusters.
Further, the correcting the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array comprises:
and correcting the data structure defined in the seismic data format template into a data structure matched with the seismic data rolling head structure body and the seismic channel structure body array to obtain a corrected seismic data format template.
In a second aspect, the present application provides a seismic data format conversion device, comprising:
the template generating unit is used for generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template comprises a volume head, a track head and data sample values;
the array generating unit is used for analyzing the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array;
the template correcting unit is used for correcting the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array;
and the format conversion unit is used for carrying out format conversion on the seismic data according to the corrected seismic data format template.
Further, the seismic data characteristics include a seismic data acquisition and recording mode, a seismic data channel head coding standard, seismic data head block data, and seismic data channel data sample values of the seismic data, and the template generating unit includes:
the byte sequence determining module is used for determining the byte sequence of the seismic data files in the seismic data format template according to the acquisition and recording mode of the seismic data;
the structure body building module is used for building a BCD structure body according to the track head coding standard of the seismic data;
the head block structure building module is used for building a data structure of a head block according to head block data of the seismic data;
the sample value format establishing module is used for establishing a seismic channel data sample point value data format according to the seismic channel data sample point value of the seismic data;
and the template generating module is used for generating the seismic data format template according to the byte sequence, the BCD structure, the data structure of the head block and the data format of the seismic channel data sampling point data.
Further, the head block structure establishing module includes:
the quantity determining module is used for determining the total head block quantity of the seismic data according to the head block data of the seismic data;
the general header block structure establishing module is used for establishing 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 header block number;
the channel header block structure establishing module is used for establishing a data structure of the channel header block according to the scanning type number and the channel set number in the basic information universal header block;
and the extended external header block structure establishing module is used for establishing a data structure of the extended header block and a data structure of the external header block according to the number of the extended tracks and the number of the external tracks in the basic information universal header block.
Further, the array generating unit includes:
the additional general header block quantity obtaining module is used for obtaining the quantity of the additional general header blocks recorded in the basic information general header block;
the general header block data structure generating module is used for generating a 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;
the channel header block data structure generating module is used for generating a data structure of the channel header block according to the scanning type number and the channel header number in the basic information universal header block;
the extended external header block structure generating module is used for generating a data structure of an extended header block and a data structure of an external header block according to the number of extended tracks in the basic information universal header block and the number of external tracks;
the extended header data structure generating module is used for generating a data structure of an extended header according to the number of the extended headers in the header data structure;
the seismic channel sampling point data generation module is used for generating seismic channel sampling point data according to the format code definition and the format code value, the sampling interval value and the recording length value in the basic information universal head block;
and the array generating module is used for constructing the seismic channel sampling point data into a seismic data volume head structure body and a seismic channel structure body array according to the data structure of the universal head block, the data structure of the channel header block, the data structure of the extension header block, the data structure of the external head block and the data structure of the extension channel header and the total channel number of all the channel sets.
Further, the template correction unit includes:
and the template correction module is used for correcting the data structure defined in the seismic data format template into a data structure matched with the seismic data rolling head structure body and the seismic channel structure body array to obtain a corrected seismic data format template.
In a third aspect, the present application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the seismic data format conversion method when executing the program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the seismic data format conversion method.
Aiming at the problems in the prior art, the application provides a seismic data format conversion method and a seismic data format conversion device, which can make full use of software programs and platforms, effectively facilitate seismic data processing technicians to carry out structured deep analysis on original data, track the data decoding process in real time and find various data format errors at any time, match various types of seismic data by modifying a data structure template in a software platform, and convert the problem seismic data into an SEG standard format so that seismic data processing software can correctly read and decode the data.
Drawings
FIG. 1 is a general flow chart of a seismic data format conversion method in an embodiment of the application;
FIG. 2 is a flow chart of generating a seismic data format template in an embodiment of the present application;
FIG. 3 is a flow chart of building a header block data structure in an embodiment of the present application;
FIG. 4 is a flow chart of obtaining a seismic data wrap structure and an array of seismic trace structures in an embodiment of the present application;
FIG. 5 is a general configuration diagram of a seismic data format conversion apparatus in an embodiment of the present application;
fig. 6 is a structural diagram of a template generating unit in the embodiment of the present application;
fig. 7 is a structural diagram of a header block structure building block in the embodiment of the present application;
FIG. 8 is a diagram illustrating an exemplary embodiment of an array generating unit;
fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the present application;
FIG. 10 is a graph of seismic data de-compilation before format conversion (left) and seismic data de-compilation after format conversion (right) in an embodiment of the application;
fig. 11 is a data structure (bottom left) analyzed by the seismic data compiling software according to the embodiment of the present application with respect to the display window (top left) of seismic data, the definition of seismic data template (right), and the monitoring window;
FIG. 12 is a simplified data structure diagram of an SEG-D format in an embodiment of the present application;
FIG. 13 is a flow chart of parsing seismic data using a seismic data format template in an embodiment of the application;
FIG. 14 is an example of parsing seismic data using a seismic data format template in an embodiment of the present application;
FIG. 15 is an example of an error checking process using a seismic data format template to parse seismic data in an embodiment of the application;
FIG. 16 is an example of debugging seismic data by parsing the seismic data using a seismic data format template in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, in order to convert the format of the seismic data according to the modified seismic data format template, the present application provides a seismic data format conversion method, including:
s101: and generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template comprises a volume head, a track head and data sample values.
The seismic data analysis and format conversion method based on the seismic data format template can be used for generating a software program by using a computer programming language and then embedding the software program into a third-party software platform, so that seismic data processing technicians can effectively and conveniently carry out structured deep analysis on the seismic data, the seismic data decoding process is tracked in real time, various seismic data format errors can be found at any time, then the seismic data structure template is corrected to match various seismic data, the problematic seismic data is converted into an SEG standard format, and most seismic data processing software on the market can correctly read and decode the seismic data. Therefore, the seismic data format template is generated according to the seismic data characteristics in the embodiment of the application. Compared with templates in other existing software platforms, the seismic data format template in the embodiment of the application has different concepts, is defined for a complete data format in a seismic analysis process, and comprises comprehensive information such as a volume header, a track header and a data sample value, and is not a track header template or a parameter template pointed by other software platforms.
S102: and analyzing the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array.
It is understood that, in the embodiment of the present application, after the seismic data format template is defined, the seismic data may be parsed by using the seismic data format template, and this process may 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 application, the seismic data is analyzed according to the seismic data format template, so that a seismic data volume head structure and a seismic channel structure array can be obtained. However, in the practical situation, 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, and at this time, the template needs to be corrected according to the specific problem that the seismic data rolling head structure, the seismic channel structure array and the seismic data format template are not matched, and the seismic data format is converted.
S103: and correcting the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array.
It is to be appreciated that the embodiments of the present application utilize a predefined seismic data format template instead of the traditional hexadecimal strip unloading (dump) approach to parsing seismic data. In the analysis process, the dynamic tracking technology is facilitated, the monitoring window is set, the values of all variables in the analysis execution process can be monitored in real time through the monitoring window, and the values of the variables are stored in the seismic channel structure array. Errors in the seismic data analysis process can be conveniently positioned by implementing dynamic monitoring of the seismic channel structure array, and the seismic data format template is corrected according to the errors so as to achieve the purpose of correcting the data format, thereby being beneficial to correct reading of the seismic data.
S104: and carrying out format conversion on the seismic data according to the corrected seismic data format template.
It will be appreciated that embodiments of the present application have enabled a seismic data format template to be a perfect match to the recording format of the seismic data by modifying the seismic data format template. In the case where the two have been matched, all seismic data can be correctly read. However, although the seismic data have been completely read, the recording format of the seismic data is different from the SEG standard format, and cannot be directly utilized by most common seismic data analysis software on the market for seismic data analysis, so in this step, the embodiment of the present application needs to write a simple program code to correct errors existing in the seismic data, such as loss of the seismic data, so that the corrected seismic data can be matched with the SEG standard format.
From the above description, it can be seen that the present application provides a seismic data format conversion method, which can make full use of software programs and platforms, effectively facilitate seismic data processing technicians to perform structured deep analysis on raw data, track the de-compilation process of data in real time and find various data format errors at any time, match various types of seismic data by modifying a data structure template in a software platform, and convert problematic seismic data into an SEG standard format, so that seismic data processing software can correctly read and de-compile the data.
Referring to fig. 2, in an embodiment, the seismic data characteristics include an acquisition and recording mode of the seismic data, a track header encoding standard of the seismic data, header block data of the seismic data, and a seismic track data sample value of the seismic data, and the generating of the seismic data format template according to the seismic data characteristics includes:
s201: and determining the byte sequence of the seismic data files in the seismic data format template according to the acquisition and recording mode of the seismic data.
It will be appreciated that typically, when seismic data acquisition is performed in the field and data processing is performed indoors, the recorded seismic data will be in a workstation format. When the seismic data are stored in a workstation format, the byte storage sequence is Big Endian (Big Endian); but some microcomputer platforms also use Little Endian (Little Endian) to store seismic data. Therefore, when defining the seismic data format template, firstly, the byte sequence stored in the seismic data file needs to be correctly defined according to the recording condition of the seismic data, and whether the byte sequence is a big end sequence or a small end sequence is distinguished, so that the subsequent correct reading of the seismic data is facilitated.
S202: and establishing a BCD structural body according to the track head coding standard of the seismic data.
It will be appreciated that the digital code used in the headers of the seismic data is a BCD (Binary-Coded Decimal) code, a code that uses four Binary bits to store a Decimal number. Since a decimal number has 0 to 9 ten digits, representing a 1-digit decimal number requires a 4-digit binary number. Traditionally, 8421BCD codes are typically used in recording seismic data, namely: 0000 to 1001, the remaining six encodings 1010, 1011, 1100, 1101, 1110, 1111 are not valid encodings, as shown in table 1. In order to keep the same with the traditional seismic data recording mode during analysis and conversion of seismic data and facilitate subsequent operation, the embodiment of the application needs to construct a structure data type of 1 byte (8 bits) and 2 bytes (16 bits) in advance, define a variable every 4 bits, and use the predefined structure to carry out BCD encoding and decoding on the track head of the seismic data in the process of reading and writing the seismic data. The predefined structures are as follows:
struct BCD1{
byte a:4;
byte b:4;
};
the encoding and decoding process: BCD 1BCD ═ a 101+b*100
struct BCD2{
byte a:4;
byte b:4;
byte c:4;
byte d:4;
};
The encoding and decoding process: BCD2 BCD ═ a 103+b*102+c*101+d*100
S203: and establishing a data structure of the head block according to the head block data of the seismic data.
It is understood that the head block includes: a data structure of a basic information common header block (often referred to as a common header block #1 in the art), a data structure of a supplementary information common header block (often referred to as a common header block #2 in the art), and a field acquisition parameter information common header block (often referred to as a common header block #3 in the art), a channel header block, an extension header block, an outer header block, and the like. The specific establishing method is explained in detail in S301-S304.
S204: and establishing a seismic channel data sampling point value data format according to the seismic channel data sampling point value of the seismic data.
It will be appreciated that the entity of the seismic data stored in the array of seismic trace structures is a seismic trace data sample value. According to the embodiment of the application, a seismic channel data sampling point value data format is required to be established according to the seismic channel data sampling point value of the seismic data. The data format of the seismic trace data sampling point data includes many kinds, for example, SEG-D format is classified into time series format (i.e., multiplexed recording format) and trace series format. Wherein, the time sequence format further comprises: 0015 format (20-bit binary index data record), 0022 format (8-bit quaternary index data record), 0024 format (16-bit quaternary index data record), 0042 format (8-bit hexadecimal index data record), 0044 format (16-bit hexadecimal index data record), 0048 format (32-bit hexadecimal index data record), and the like; the trace order format further includes: 8015 format (20-bit binary exponent data record), 8022 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), and the like. 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) is added with data formats of 0036, 0038, 0058 and 8036, 8038 and 8058; the SEG-D Rev.2.0 standard (1996) began to no longer support multiplexed recording formats; the 8080 data format is supported by the SEG-D Rev.3.0 standard (2009) increase.
In the embodiment of the present application, a data format recorded in an exponential manner is adopted, and the amplitude value is defined as follows:
Signal=(-1)S×Q×BC×2MP(mV)
in the formula: s is a sign bit; c represents an exponent (order code) based on B; the base number B takes the value of 2, 4 or 16; q represents the mantissa, and the inverse scaling factor MP value is stored in the 7 th to 8 th bytes of the channel header block.
The definitions of the format codes and mantissas are shown in the attached tables 8 to 15.
88 bit quaternary index recording mode of meter (0022 and 8022 format)
Bit 0 1 2 3 4 5 6 7
Byte 1 S C2 C1 C0 Q-1 Q-2 Q-3 Q-4
Mode of recording 916 digit quaternary index (0024 and 8024 format)
Bit 0 1 2 3 4 5 6 7
Byte 1 S C2 C1 C0 Q-1 Q-2 Q-3 Q-4
2 nd byte Q-5 Q-6 Q-7 Q-8 Q-9 Q-10 Q-11 Q-12
Table 1020 bit binary index decoding record mode (0015 and 8015 format)
Figure BDA0002747686590000101
Figure BDA0002747686590000111
Table 118 bit hexadecimal index record mode (0042 and 8042 format)
Bit 0 1 2 3 4 5 6 7
Byte 1 S C1 C0 Q-1 Q-2 Q-3 Q-4 Q-5
TABLE 1216-bit hexadecimal exponent record mode (0044 and 8044 Format)
Bit 0 1 2 3 4 5 6 7
Byte 1 S C1 C0 Q-1 Q-2 Q-3 Q-4 Q-5
2 nd byte Q-6 Q-7 Q-8 Q-9 Q-10 Q-11 Q-12 Q-13
TABLE 1332 bit hexadecimal exponent record mode (0048 and 8048 formats)
Bit 0 1 2 3 4 5 6 7
Byte 1 S C6 C5 C4 C3 C2 C1 C0
2 nd byte 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
Table 1432 bit IEEE Floating Point recording mode (8058 Format)
Bit 0 1 2 3 4 5 6 7
Byte 1 S C7 C6 C5 C4 C3 C2 C1
2 nd byte C0 Q-1 Q-2 Q-3 Q-4 Q-5 Q-6 Q-7
Byte 3 Q-8 Q-9 Q-10 Q-11 Q-12 Q-13 Q-14 Q-15
Byte 4 Q-16 Q-17 Q-18 Q-19 Q-20 Q-21 Q-22 Q-23
Table 1564 bit IEEE Floating Point protocol (8080 Format)
Figure BDA0002747686590000112
Figure BDA0002747686590000121
In the embodiment of the present application, a data format recorded in an integer mode is adopted, and the amplitude value is defined as follows:
Signal={(I+2N-1)÷2N-2N-1}×2MP(mV)
in the formula: i is a recorded data value; n is the data storage length (24 bits/32 bits); MP is the inverse scaling factor used to convert the value to the true measured voltage value.
The format bit order codes and mantissas are defined as shown in tables 16-17:
watch 1624 bit integer type record mode (8036 format)
Bit 0 1 2 3 4 5 6 7
Byte 1 I23 I22 I21 I20 I19 I18 I17 I16
2 nd byte I15 I14 I13 I12 I11 I10 I9 I8
Byte 3 I7 I6 I5 I4 I3 I2 I1 I0
Table 1732 bit integer recording mode (8038 format)
Bit 0 1 2 3 4 5 6 7
Byte 1 I31 I30 I29 I28 I27 I26 I25 I24
2 nd byte I23 I22 I21 I20 I19 I18 I17 I16
Byte 3 I15 I14 I13 I12 I11 I10 I9 I8
Byte 4 I7 I6 I5 I4 I3 I2 I1 I0
S205: and generating the seismic data format template according to the byte sequence, the BCD structure, the data structure of the head block and the data format of the seismic channel data sampling point value.
It is understood that the seismic data format template in the embodiment of the present application relates to a plurality of contents including byte order, BCD structure, data structure of header block, and data format of seismic trace data sampling point value, and therefore, needs to be generated according to the above items.
From the above description, the present application provides a seismic data format conversion method, which can generate a seismic data format template according to seismic data characteristics.
Referring to FIG. 3, in one embodiment, building a data structure of a header block from header block data of the seismic data includes:
s301: determining the total head block number of the seismic data according to the head block data of the seismic data;
s302: establishing 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 header block quantity;
s303: establishing a data structure of a channel header block according to the scanning type number and the channel header number in the basic information universal header block;
s304: and establishing a data structure of the extended header block and a data structure of the external header block according to the number of the extended track headers and the number of the external track headers in the basic information universal header block.
It can be understood that the embodiment of the present application takes the SEG-D simplified data format as an example to illustrate the implementation of the definition of the header block and the track header data structure. As shown in fig. 12, an SEG-D reduced data format typically includes a number of generic header blocks, each occupying 32 bytes, and a generic header block #1 records the total number of generic header blocks. Since the data structures of the general header block #1 (whose internal structure is defined as shown in table 2), the general header block #2 (whose internal structure is defined as shown in table 3), and the other general header blocks (whose internal structure is defined as shown in table 4) are different, it is necessary to define each of them. Firstly, the total head block number of the seismic data is determined, then, a plurality of universal head blocks are needed, wherein the number of the universal head block #1 is at most one, the number of the universal head block #2 is at most one, the number of other universal head blocks is not limited, but the sum of the number of the universal head blocks and the number of other universal head blocks is equal to the total head block number of the seismic data. Since the internal format of each generic header block is standardized, it is only necessary to know how many header blocks are needed. The definition of the channel header block data structure (the internal structure definition is shown in table 5) is next performed. The seismic channels are stored in different channel sets according to the scanning times and the channel types, the channel set head block is used for recording the types and the number of the seismic channels, and the number of the channel sets is recorded in the general head block # 1. In addition to the general header block and the channel header block, the SEG-D header block further includes an extended header block and an external header block, but the SEG standard does not define the data structure of the extended header block and the external header block, and the definition of each instrument manufacturer is different, and for analyzing data, the template is defined as a common body of 1 byte, 2 bytes, and 4 bytes. In an embodiment of the present application, the defined code segments of the extension header block and the external header block are as follows:
union ECHD{
byte EC1b[32*(file.FH.GH1.EC.a*10+file.FH.GH1.EC.b)];
int16 EC2b[16*(file.FH.GH1.EC.a*10+file.FH.GH1.EC.b)];
int32 EC4b[8*(file.FH.GH1.EC.a*10+file.FH.GH1.EC.b)];
}EC;
union EXHD_X{
byte EX1b[32*file.FH.GH2.EH];
int16 EX2b[16*file.FH.GH2.EH];
int32 EX4b[8*file.FH.GH2.EH];
}EX;
where, ECHD is an extended header block, EC is an external header block, file is a seismic data file variable, FH is a file header block variable, GH1 is a generic header block #1, EC is a variable defining the number of extended header blocks in the generic header block #1, and EX is a variable defining the number of external header blocks in the generic header block # 1.
As shown in fig. 12, after the definition of the generic header block is completed, the data structure of the outer header (whose internal structure is defined in table 6) and the data structure of the extended header (whose internal structure is defined in table 7) are also defined.
Table 18421 BCD encoding table
Decimal number 0 1 2 3 4 5 6 7 8 9
8421BCD code 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001
TABLE 2 SEG-D GENERAL HEAD BLOCK #1 FORMAT DEFINITION
Figure BDA0002747686590000141
Figure BDA0002747686590000151
TABLE 3 SEG-D GENERAL HEAD BLOCK #2 FORMAT DEFINITION
Byte range Format mask Format Description of the invention
1-3 XXXXXX binary Extended file number
4-5 X Extended channel set number
6-7 X Number of extension header blocks
8-9 XXXX binary Number of outer head
10 Is not defined
11-12 X.X binary SEG-D version number
13-14 X Tracking data block number
15-17 XXXXXX binary Extended record length (0-128000ms)
18 Is not defined
19 X binary Number of universal head
20 Is not defined
21-22 XXXX binary Sequence number
23-32 Is not defined
TABLE 4 SEG-D GENERAL HEAD BLOCK #3+ FORMAT DEFINITION
Figure BDA0002747686590000152
Figure BDA0002747686590000161
TABLE 5 SEG-D channel header Block Format Definitions
Byte range Format mask Format Description of the invention
1 XX BCD Scanning type number
2 XX BCD Channel set number
3-4 XXXX binary Starting 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 Is not defined
12H X Sub-scanning number
12L X BCD Gain control mode
13-14 XXXX BCD Anti-alias filtering frequency
15H Is not defined
15L-16 XX BCD Anti-alias filtering ramp
17-18 XX BCD Low cut-off frequency filtering frequency
19H Is not defined
19L-20 XX BCD Low-cutoff filtering ramp
21-22 X First notch frequency
23-24 X Second trap point frequency
25-26 X Third trap frequency
27-28 X Extended channel set number
29H X Extended header flag
29L X binary Number of extended track heads
30 XX binary Vertical stacking
31 XX binary Towing line number
32 X binary Permutation and combination form
TABLE 6 SEG-D track header Format Definitions
Byte range Format mask Format Description of the invention
1-2 XXXX BCD File number (0-9999)
3 XX BCD Scanning type number
4 XX BCD Channel set number
5-6 XXXX BCD Road number
7-9 XXXX binary Recording the start time
10 X binary Number of extended track heads
11 X Time offset of sampling
12 XX binary Track edit status
13-15 XXXX.XX binary Time of detonation
16-17 X Extended channel number
18-20 XXXXXX Extended file number
TABLE 7 SEG-D extended header Format Definitions
Byte range Format mask Format Description of the invention
1-3 XXXXXX binary Line number detection
4-6 XXXXXX binary Detection point number
7 XX binary Demodulator probe indexing
8-10 XXXXXX binary Number of samples
11-15 X Extension detection line number
16-20 X Extended detection point number
21 XX binary Detector type
22-32 Is not defined
From the above description, it can be seen that the present application provides a seismic data format conversion method capable of building a data structure of a header block from header block data of the seismic data.
Referring to fig. 4, in an embodiment, the analyzing the seismic data by using the seismic data format template to obtain a seismic data volume header structure and a seismic trace structure array includes:
s401: acquiring the number of extra universal header blocks recorded in the universal header block of the basic information;
s402: generating a data structure of the universal head block of the seismic data format template according to the number of the additional universal head blocks, the data structure of the supplementary information universal head block and the data structure of the field acquisition parameter information universal head block;
s403: generating a data structure of a channel header block according to the scanning type number and the channel header number in the basic information universal header block;
s404: generating a data structure of an extended header block and a data structure of an external header block according to the number of the extended tracks in the basic information universal header block and the number of the external tracks;
s405: generating a data structure of the expansion track head according to the number of the expansion track heads in the track head data structure;
s406: generating seismic channel sampling point data according to the format code definition and the format code value, the sampling interval value and the recording length value in the basic information universal head block;
s407: and constructing the seismic channel sample point data into a seismic data volume head structure and a seismic channel structure array according to the data structure of the universal head block, the data structure of the channel cluster head block, the data structure of the extension head block, the data structure of the external head block and the data structure of the extension channel head and the total channel number of all channel clusters.
It is to be understood that fig. 10 shows the seismic data deconvolution result before format conversion (left) and the seismic data deconvolution result after format conversion (right) in the embodiment of the present application.
Having defined the seismic data format template in the previous step, the seismic data will be parsed according to the predefined seismic data format template in the following steps:
(1) reading a data universal head block #1, determining the number of additional universal head blocks according to the value of the high 4 bits of the 12 th byte, and dynamically generating a universal head block data structure in the seismic data format template according to the number of the universal head blocks and the data structure definitions of a universal head block #2 (table 3) and a universal head block #3+ (table 4);
(2) reading the 28 th byte of the universal head block #1 to determine the number of scanning types, reading the 29 th byte to determine the number of channel sets in each scanning type, and generating a data structure of a channel set head block (table 5);
(3) reading the 31 st byte of the universal head block #1 to determine the number of the extended head blocks, reading the 32 nd byte to determine the number of the external head blocks, and respectively generating a shared body structure with 1 byte, 2 bytes and 4 bytes of the extended head blocks and the external head blocks according to the number and the size of each 32 bytes;
(4) constructing a data structure of a track head (table 6), reading the 10 th byte of the track head to determine the number of the expansion track heads, and generating a data structure of the expansion track head (table 7);
(5) respectively reading a format code value in 3 rd to 4 th bytes, a sampling interval value in 23 th byte, low four bits in 26 th byte and a recording length value in 27 th byte of the universal head block #1, and generating seismic channel sampling point data according to the definition of the format code;
(6) reading the 9 th-10 th bytes of all the channel cluster head blocks, counting the total channel number of all the channel clusters, and constructing a seismic data head rolling structure body and a seismic channel structure body array according to the channel number.
FIG. 14 shows an example diagram of the 8058 format SEG-D Rev1.0 data parsing.
After the steps are completed, the seismic data are all analyzed correctly, and the seismic data format template is completely matched with the seismic data, so that the seismic data format template does not need to be corrected, and the recording format of the seismic data does not need to be corrected. However, in more cases, the seismic data format template is not completely matched with the seismic data, and a data reading error occurs, so that when the seismic data rolling head structure and the seismic channel structure array are generated, due to the existence of the monitoring window, a technician can track the position where the error occurs in real time and correct the seismic data format template in time according to the error, so that the seismic data format template is completely matched with the seismic data. Specific modification methods are illustrated in the following examples.
In one embodiment, performing format correction on the seismic data format template according to the seismic data rolling head structure, the seismic channel structure array and the seismic data format template includes:
and correcting the data structure defined in the seismic data format template into a data structure matched with the seismic data rolling head structure body and the seismic channel structure body array to obtain a corrected seismic data format template.
It will be appreciated that, for example, during the analysis of seismic data in step (1) above, the values of the analyzed data structures and variables may be tracked in a monitoring window (as shown in FIG. 11) to find problems and to correct the template in time. In the error-checking example shown in FIG. 15, the data sample interval is read from generic header block #1 at 2 ms, the record length is read from generic header block #2 at 6000 ms, and then the zero time sample value is added, the seismic trace should have 3001 sample values. However, from the data structure analyzed by the monitoring window, the 1 st seismic channel is normal, the data structure is disordered from the 2 nd seismic channel, the data structure is positioned to the position where the 2 nd seismic channel is wrong, 32 bytes of downward shift of the 2 nd seismic channel can be seen in the original data window (as shown in fig. 11), it is indicated that the 1 st seismic channel reads 8 more samples (32 bytes), and at this time, the other seismic channels are also checked to have only 2993 sample values, so that the actual seismic channel sample number is 8 less than the sample number recorded by the channel head. Based on the analysis, the definition of the seismic trace data sampling point value in the seismic data format template can be corrected, 8 sampling points are subtracted on the original basis, and the code segments of the seismic data format template are modified as follows:
local int samples=2*(CS[0].TE-CS[0].TF)/(GH1.I/10h)+1-8;
in the formula: CS [0] TE is the end time of channel set 0 recording; CS [0] TF is the start time of channel set 0 record; and GH1.I is the sampling interval recorded in the universal header block #1, and the conversion value needs to be divided by 10h to be a real sampling value. The analysis result after the seismic data format template is modified is shown in fig. 16, and the data structures of all seismic traces can be analyzed correctly.
From the above description, the present application provides a seismic data format conversion method, which can perform format correction on a seismic data format template according to the seismic data rolling head structure, the seismic channel structure array, and the seismic data format template.
The flow of the above steps can also be seen in fig. 13.
Based on the same inventive concept, the embodiments of the present application further provide a seismic data format conversion device, which can be used to implement the methods described in the above embodiments, as described in the following embodiments. Because the principle of solving the problems of the seismic data format conversion device is similar to that of the seismic data format conversion method, the implementation of the seismic data format conversion device can refer to the implementation of a software performance reference determination method, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
Referring to fig. 5, in order to convert the format of the seismic data according to the modified seismic data format template, the present application provides a seismic data format conversion apparatus, including: a template generating unit 501, an array generating unit 502, a template correcting unit 503, and a format converting unit 504.
The template generating unit 501 is configured to generate a seismic data format template according to seismic data characteristics, where the seismic data format template includes a volume header, a track header, and a data sample value;
an array generating unit 502, configured to analyze the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array;
the template correction unit 503 is configured to correct the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array;
and a format conversion unit 504, configured to perform format conversion on the seismic data according to the modified seismic data format template.
Referring to fig. 6, the seismic data characteristics include a seismic data acquisition and recording mode, a trace header encoding standard of the seismic data, header block data of the seismic data, and a seismic trace data sample value of the seismic data, and the template generating unit 501 includes: a byte order determining module 601, a structure building module 602, a header structure building module 603, a sampling point value format building module 604, and a template generating module 605.
A byte order determining module 601, configured to determine a byte order of the seismic data file in the seismic data format template according to a seismic data acquisition and recording manner;
a structure building module 602, configured to build a BCD structure according to a heading coding standard of the seismic data;
a head block structure establishing module 603, configured to establish a data structure of a head block according to head block data of the seismic data;
a sample value format establishing module 604, configured to establish a seismic channel data sample value data format according to a seismic channel data sample value of the seismic data;
a template generating module 605, configured 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 channel data sampling point value.
Referring to fig. 7, the head block structure establishing module 603 includes: a number determining module 701, a general header block structure establishing module 702, a channel header block structure establishing module 703 and an extended external header block structure establishing module 704.
A number determining module 701, configured to determine a total number of head blocks of the seismic data according to the head block data of the seismic data;
a general header block structure establishing module 702, configured to establish, according to the total header block number, a data structure of a basic information general header block, a data structure of a supplemental information general header block, and a data structure of a field acquisition parameter information general header block;
a channel header block structure establishing module 703, configured to establish a data structure of a channel header block according to the number of scanning types and the number of channel sets in the basic information universal header block;
an extended external header block structure establishing module 704, configured to establish 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 common header block.
Referring to fig. 8, the array generating unit 502 includes: an additional general header block number obtaining module 801, a general header block data structure generating module 802, a channel header block data structure generating module 803, an extended external header block structure generating module 804, an extended channel header data structure generating module 805, a seismic channel sampling point data generating module 806, and an array generating module 807.
An extra generic header block number obtaining module 801, configured to obtain the number of extra generic header blocks recorded in the basic information generic header block;
a general header block data structure generating module 802, configured 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, a data structure of a supplementary information general header block, and a data structure of a field acquisition parameter information general header block;
a channel header data structure generating module 803, configured to generate a data structure of a channel header block according to the number of scanning types and the number of channel sets in the basic information common header block;
an extended outer header block structure generating module 804, configured to generate a data structure of an extended header block and a data structure of an outer header block according to the number of extended tracks and the number of outer tracks in the basic information common header block;
an extended header data structure generating module 805, configured to generate a data structure of an extended header according to the number of extended headers in the header data structure;
a seismic channel sampling point data generating module 806, configured to generate seismic channel sampling point data according to the format code definition, and the format code value, the sampling interval value, and the recording length value in the basic information universal header block;
the array generating module 807 constructs the seismic channel sampling point data into a seismic data volume head structure and a seismic channel structure array according to the data structure of the general head block, the data structure of the channel cluster head block, the data structure of the extension head block, the data structure of the external head block and the data structure of the extension channel head and the total channel number of all the channel clusters.
The template correction unit 503 includes:
and the template correction module is used for correcting the data structure defined in the seismic data format template into a data structure matched with the seismic data rolling head structure body and the seismic channel structure body array to obtain a corrected seismic data format template.
In order to convert the format of the seismic data according to the modified seismic data format template, the present application provides an embodiment of an electronic device having all or part of contents in a seismic data format conversion method, where the electronic device specifically includes the following contents:
a Processor (Processor), a Memory (Memory), a communication Interface (Communications Interface) and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the seismic data format conversion device and relevant equipment such as a core service system, a user terminal and a relevant database; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the logic controller may 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 repeated descriptions are omitted.
It is understood 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), an in-vehicle device, a smart wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, part of the seismic data format conversion method may be performed on the electronic device side as described above, or all operations may be performed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit), and may be in communication connection with a remote server to implement data transmission with the server. The server may include a server on the side of the task scheduling center, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
Fig. 9 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 9, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 9 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the seismic data format conversion method functions may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
s101: and generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template comprises a volume head, a track head and data sample values.
S102: and analyzing the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array.
S103: and correcting the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array.
S104: and carrying out format conversion on the seismic data according to the corrected seismic data format template.
From the above description, it can be seen that the present application provides a seismic data format conversion method, which can make full use of software programs and platforms, effectively facilitate seismic data processing technicians to perform structured deep analysis on raw data, track the de-compilation process of data in real time and find various data format errors at any time, match various types of seismic data by modifying a data structure template in a software platform, and convert problematic seismic data into an SEG standard format, so that seismic data processing software can correctly read and de-compile the data.
In another embodiment, the seismic data format conversion device may be configured separately from the central processor 9100, for example, the seismic data format conversion device may be configured as a chip connected to the central processor 9100, and the function of the seismic data format conversion method may be realized by the control of the central processor.
As shown in fig. 9, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 9; in addition, the electronic device 9600 may further include components not shown in fig. 9, which may be referred to in the prior art.
As shown in fig. 9, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits 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 in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless lan module, may be disposed in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
Embodiments of the present application further provide a computer-readable storage medium capable of implementing all steps in the seismic data format conversion method with a server or a client as an execution subject in the above embodiments, where the computer-readable storage medium stores thereon a computer program, and when the computer program is executed by a processor, the computer program implements all steps of the seismic data format conversion method with a server or a client as an execution subject in the above embodiments, for example, when the processor executes the computer program, the processor implements the following steps:
s101: and generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template comprises a volume head, a track head and data sample values.
S102: and analyzing the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array.
S103: and correcting the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array.
S104: and carrying out format conversion on the seismic data according to the corrected seismic data format template.
From the above description, it can be seen that the present application provides a seismic data format conversion method, which can make full use of software programs and platforms, effectively facilitate seismic data processing technicians to perform structured deep analysis on raw data, track the de-compilation process of data in real time and find various data format errors at any time, match various types of seismic data by modifying a data structure template in a software platform, and convert problematic seismic data into an SEG standard format, so that seismic data processing software can correctly read and de-compile the data.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A seismic data format conversion method, comprising:
generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template comprises a volume head, a track head and data sample values;
analyzing the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array;
correcting the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array;
and carrying out format conversion on the seismic data according to the corrected seismic data format template.
2. The seismic data format conversion method of claim 1, wherein the seismic data features include acquisition and recording modes of seismic data, track header coding standards of seismic data, header block data of seismic data, and seismic track data sample values of seismic data, and the seismic data format template is generated according to the seismic data features, and includes:
determining the byte sequence of the seismic data files in the seismic data format template according to the acquisition and recording mode of the seismic data;
establishing a BCD structure according to the track head coding standard of the seismic data;
establishing a data structure of a head block according to head block data of the seismic data;
establishing a data format of the seismic channel data sampling point value according to the seismic channel data sampling point value of the seismic data;
and generating the seismic data format template according to the byte sequence, the BCD structure, the data structure of the head block and the data format of the seismic channel data sampling point value.
3. The seismic data format conversion method of claim 2, wherein building a data structure of a header block from header block data of the seismic data comprises:
determining the total head block number of the seismic data according to the head block data of the seismic data;
establishing 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 header block quantity;
establishing a data structure of a channel header block according to the scanning type number and the channel header number in the basic information universal header block;
and establishing a data structure of the extended header block and a data structure of the external header block according to the number of the extended track headers and the number of the external track headers in the basic information universal header block.
4. The method of claim 3, wherein the parsing the seismic data using the seismic data format template to obtain a seismic data rolling header structure and a seismic trace structure array comprises:
acquiring the number of extra universal header blocks recorded in the universal header block of the basic information;
generating a data structure of the universal head block of the seismic data format template according to the number of the additional universal head blocks, the data structure of the supplementary information universal head block and the data structure of the field acquisition parameter information universal head block;
generating a data structure of a channel header block according to the scanning type number and the channel header number in the basic information universal header block;
generating a data structure of an extended header block and a data structure of an external header block according to the number of the extended tracks in the basic information universal header block and the number of the external tracks;
generating a data structure of the expansion track head according to the number of the expansion track heads in the track head data structure;
generating seismic channel sampling point data according to the format code definition and the format code value, the sampling interval value and the recording length value in the basic information universal head block;
and constructing the seismic channel sample point data into a seismic data volume head structure and a seismic channel structure array according to the data structure of the universal head block, the data structure of the channel cluster head block, the data structure of the extension head block, the data structure of the external head block and the data structure of the extension channel head and the total channel number of all channel clusters.
5. The method of claim 1, wherein the modifying the seismic data format template according to the array of seismic data wrap structures and seismic trace structures comprises:
and correcting the data structure defined in the seismic data format template into a data structure matched with the seismic data rolling head structure body and the seismic channel structure body array to obtain a corrected seismic data format template.
6. A seismic data format conversion device, comprising:
the template generating unit is used for generating a seismic data format template according to the seismic data characteristics, wherein the seismic data format template comprises a volume head, a track head and data sample values;
the array generating unit is used for analyzing the seismic data by using the seismic data format template to obtain a seismic data rolling head structure and a seismic channel structure array;
the template correcting unit is used for correcting the seismic data format template according to the seismic data rolling head structure and the seismic channel structure array;
and the format conversion unit is used for carrying out format conversion on the seismic data according to the corrected seismic data format template.
7. The seismic data format conversion device according to claim 6, wherein the seismic data characteristics include an acquisition and recording mode of the seismic data, a track head coding standard of the seismic data, head block data of the seismic data, and seismic track data sample values of the seismic data, and the template generation unit includes:
the byte sequence determining module is used for determining the byte sequence of the seismic data files in the seismic data format template according to the acquisition and recording mode of the seismic data;
the structure body building module is used for building a BCD structure body according to the track head coding standard of the seismic data;
the head block structure building module is used for building a data structure of a head block according to head block data of the seismic data;
the sample value format establishing module is used for establishing a seismic channel data sample point value data format according to the seismic channel data sample point value of the seismic data;
and the template generating module is used for generating the seismic data format template according to the byte sequence, the BCD structure, the data structure of the head block and the data format of the seismic channel data sampling point data.
8. The seismic data format conversion device of claim 7, wherein the header structure building module comprises:
the quantity determining module is used for determining the total head block quantity of the seismic data according to the head block data of the seismic data;
the general header block structure establishing module is used for establishing 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 header block number;
the channel header block structure establishing module is used for establishing a data structure of the channel header block according to the scanning type number and the channel set number in the basic information universal header block;
and the extended external header block structure establishing module is used for establishing a data structure of the extended header block and a data structure of the external header block according to the number of the extended tracks and the number of the external tracks in the basic information universal header block.
9. The seismic data format conversion device of claim 8, wherein the array generation unit comprises:
the additional general header block quantity obtaining module is used for obtaining the quantity of the additional general header blocks recorded in the basic information general header block;
the general header block data structure generating module is used for generating a 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;
the channel header block data structure generating module is used for generating a data structure of the channel header block according to the scanning type number and the channel header number in the basic information universal header block;
the extended external header block structure generating module is used for generating a data structure of an extended header block and a data structure of an external header block according to the number of extended tracks in the basic information universal header block and the number of external tracks;
the extended header data structure generating module is used for generating a data structure of an extended header according to the number of the extended headers in the header data structure;
the seismic channel sampling point data generation module is used for generating seismic channel sampling point data according to the format code definition and the format code value, the sampling interval value and the recording length value in the basic information universal head block;
and the array generating module is used for constructing the seismic channel sampling point data into a seismic data volume head structure body and a seismic channel structure body array according to the data structure of the universal head block, the data structure of the channel header block, the data structure of the extension header block, the data structure of the external head block and the data structure of the extension channel header and the total channel number of all the channel sets.
10. The seismic data format conversion device of claim 6, wherein the template modification unit comprises:
and the template correction module is used for correcting the data structure defined in the seismic data format template into a data structure matched with the seismic data rolling head structure body and the seismic channel structure body array to obtain a corrected seismic data format template.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the seismic data format conversion method of any of claims 1 to 5 are implemented when the program is executed by the processor.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the seismic data format conversion method according to any one of claims 1 to 5.
CN202011172393.6A 2020-10-28 2020-10-28 Seismic data format conversion method and device Pending CN112463861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011172393.6A CN112463861A (en) 2020-10-28 2020-10-28 Seismic data format conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011172393.6A CN112463861A (en) 2020-10-28 2020-10-28 Seismic data format conversion method and device

Publications (1)

Publication Number Publication Date
CN112463861A true CN112463861A (en) 2021-03-09

Family

ID=74834575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011172393.6A Pending CN112463861A (en) 2020-10-28 2020-10-28 Seismic data format conversion method and device

Country Status (1)

Country Link
CN (1) CN112463861A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024187592A1 (en) * 2023-03-16 2024-09-19 深圳面元智能科技有限公司 Storage format conversion method and apparatus for seismic data, device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5111399A (en) * 1986-07-19 1992-05-05 Peter Robert Armitage Seismic apparatus and method including use of transputers for real time processing of data
KR100655870B1 (en) * 2005-08-25 2006-12-08 (주)콤위버정보통신 Method and system of translating earthquake for interact
CN105320513A (en) * 2014-07-31 2016-02-10 中国石油化工股份有限公司 I/O (input/output) method suitable for any SEG-Y seismic data
CN109633740A (en) * 2018-11-01 2019-04-16 中国石油天然气集团有限公司 Tape SEG-D Seismic data structure analysis method and solution compile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5111399A (en) * 1986-07-19 1992-05-05 Peter Robert Armitage Seismic apparatus and method including use of transputers for real time processing of data
KR100655870B1 (en) * 2005-08-25 2006-12-08 (주)콤위버정보통신 Method and system of translating earthquake for interact
CN105320513A (en) * 2014-07-31 2016-02-10 中国石油化工股份有限公司 I/O (input/output) method suitable for any SEG-Y seismic data
CN109633740A (en) * 2018-11-01 2019-04-16 中国石油天然气集团有限公司 Tape SEG-D Seismic data structure analysis method and solution compile device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张昆昆: "地震数据处理在解释成像系统中的研究与应用", 中国优秀硕士学位论文全文数据库, 28 February 2007 (2007-02-28) *
王增波;李雁鸿;赵剑;陈继红;钱忠平;: "SEG-Y地震数据格式解析及转换方法", 物探装备, vol. 22, no. 03, 25 June 2012 (2012-06-25), pages 177 - 182 *
王建锋;王梅生;孙哲;雷云山;郭明杰;程高明;: "磁盘SEG-D地震数据格式解编方法", 石油管材与仪器, vol. 02, no. 04, 31 August 2016 (2016-08-31), pages 94 - 97 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024187592A1 (en) * 2023-03-16 2024-09-19 深圳面元智能科技有限公司 Storage format conversion method and apparatus for seismic data, device, and storage medium

Similar Documents

Publication Publication Date Title
CN108600192B (en) Regular expression based DBC file analysis and message analysis method
CN111354099B (en) Data processing method, data processing device and diagnostic equipment
CN112463861A (en) Seismic data format conversion method and device
CN111045349A (en) Dynamic framing method of telemetering mining and editing device
CN103036641A (en) Method and system of data exchange and deserialization method
CN108964786B (en) Method and device for coding and decoding sound wave signal
CN111124541A (en) Configuration file generation method, device, equipment and medium
CN103033705A (en) Test method and test system of electronic equipment
CN103109319B (en) Determining pitch cycle energy and scaling an excitation signal
CN112994804B (en) Rocket telemetry data processing method and device, electronic equipment and storage medium
CN103095644B (en) A kind of data content analytic method and device
CN115495082A (en) TLV format data automatic conversion method and related equipment
CN111581240B (en) Material processing method and device of terminal, storage medium and electronic equipment
CN118042135A (en) Point cloud encoding method, point cloud decoding method, device and storage medium
CN114070470B (en) Encoding and decoding method and device
CN115967604A (en) Message transmission method and device, electronic equipment and computer readable storage medium
CN104575542A (en) Method and device for realizing audio regional play
CN116150102A (en) Decoding method and system applicable to ARINC standard flight data
CN114490402A (en) Method and device for checking validity of message field
CN105187633A (en) Mobile phone number display method and device
CN108182459B (en) Digital display caliper data acquisition method based on continuous code scanning
CN111797137B (en) Method for inquiring sampling data by compressing time mark
CN117271448A (en) File repair method, device, terminal equipment and readable storage medium
CN117640691A (en) Method, medium and electronic equipment for communicating with multi-type inclination angle sensor
CN115543852A (en) Automatic test method for embedded system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination