Performance optimization method and device for node seismic data segmentation

By sorting and indexing the excitation point information in the node seismic data segmentation process, and processing the data in batches, the problem of low segmentation efficiency caused by insufficient memory in the existing technology is solved, and efficient data segmentation under limited memory is achieved. points, suitable for different hardware configurations and performance requirements.

CN112559816BActive Publication Date: 2024-08-27CHINA NAT PETROLEUM CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910916153.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-26
Publication Date
2024-08-27
Estimated Expiration
2039-09-26

AI Technical Summary

Technical Problem

The existing technology cannot effectively balance memory resource consumption and data segmentation efficiency during node seismic data segmentation, resulting in inability to use it when the hardware configuration is insufficient.

Method used

By sorting the excitation point information objects in ascending order, calculating the index, dividing the data in batches according to the space required for the output file, and writing the file in ascending order by line number and point number, the memory usage plan is optimized.

Benefits of technology

It realizes normal segmentation of node seismic data under limited memory conditions, provides flexible memory usage solutions, meets the performance and cost requirements of different users, and achieves a balance between memory resource consumption and data segmentation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112559816B
    Figure CN112559816B
Patent Text Reader

Abstract

The present invention provides a performance optimization method and device for node seismic data segmentation, comprising: sorting all the excitation point information objects used for segmenting a node in ascending order according to the blasting time, putting all the sorted excitation point information objects into an array, wherein the excitation point information objects include a line number SLNo, a point number SPNo, a blasting time shootTime, and an index outIndex of the channel in the output channel gather; calculating the index of each excitation point information object in the array; determining the space required for the output file according to the number of excitation point information objects in the array and the number of bytes of each channel of seismic data; segmenting the data of each channel in batches according to the blasting time of the excitation point in the array, and writing each batch of channel data into a specified position in the output file after arranging them in ascending order according to the line number SLNo and the point number SPNo based on the space required for the output file. The scheme can achieve a balance between the consumption of memory resources and the efficiency of data segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of petroleum exploration, and in particular to a performance optimization method and device for node seismic data segmentation. Background Art

[0002] The node is a continuous data acquisition instrument that records the vibration amplitude of its sensor at regular intervals (for example, every 1 millisecond). After the node is placed on the seabed, a gunboat will use an air gun to fire a shot on the water surface. The seismic waves generated after the shot will be transmitted to the node directly or after being reflected by the stratum. The node only records data continuously, but does not know when the shot was fired and when the recorded data is valid. The firing system will accurately record the excitation time of each shot, and the node also records the starting recording time and the sample point interval. The data segmentation process is to find out a section of valid data (about 10 seconds) recorded by this node when each shot is fired based on these two times.

[0003] The existing method of data segmentation is to read all the data of a node into the memory, and then perform segmentation processing. After segmentation is completed and sorted, the data is written into the file as a whole. For example, if a node has 10GB of data, then reading the data requires 10GB of memory, the segmentation module requires 20GB of memory (the segmentation module requires memory space for the original data and the segmented data), and the output module also requires 10GB of memory (in order to improve performance, these modules are parallel, that is, when the output module is outputting the data of node 1, the segmentation module is segmenting the data of node 2, and the input module is reading the data of node 3). In theory, to segment such node data, at least 40GB of memory is required. If the computer memory is less, the software cannot apply for enough memory and cannot be used. In other words, when performing data segmentation, there are strict requirements on the amount of memory, and it cannot be used if the hardware configuration does not meet the requirements. Summary of the invention

[0004] The embodiment of the present invention provides a performance optimization method and device for node seismic data segmentation, which solves the technical problem in the prior art that a balance between memory resource consumption and data segmentation efficiency cannot be achieved.

[0005] An embodiment of the present invention provides a performance optimization method for node seismic data segmentation, the method comprising:

[0006] Sort all the shooting point information objects used to split a node in ascending order according to the shooting time, and put all the sorted shooting point information objects into an array. The shooting point information object includes the line number SLNo, point number SPNo, shooting time shootTime, and the index outIndex of this channel in the output channel gather;

[0007] Calculate the index of each excitation point information object in the array;

[0008] Determine the space required for the output file based on the number of excitation point information objects in the array and the number of bytes of each seismic data;

[0009] The data of each channel is divided into batches according to the firing time of the excitation points in the array. Based on the space required for the output file, each batch of channel data is arranged in ascending order by line number SLNo and point number SPNo and then written to the specified position in the output file.

[0010] The embodiment of the present invention further provides a performance optimization device for node seismic data segmentation, the device comprising:

[0011] A sorting storage module is used to sort all the shooting point information objects used to split a node in ascending order according to the shooting time, and put all the sorted shooting point information objects into an array. The shooting point information objects include the line number SLNo, the point number SPNo, the shooting time shootTime, and the index outIndex of the current track in the output track gather;

[0012] An index calculation module, used to calculate the index of each excitation point information object in the array;

[0013] The module for determining the space required for the output file is used to determine the space required for the output file according to the number of the excitation point information objects in the array and the number of bytes of each seismic data;

[0014] The segmentation storage module is used to segment the data of each channel in batches according to the blasting time of the excitation point in the array. Based on the space required for the output file, each batch of channel data is arranged in ascending order according to the line number SLNo and the point number SPNo according to the index and then written to the specified position in the output file.

[0015] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method when executing the computer program.

[0016] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method.

[0017] In the embodiment of the present invention, a memory usage plan is determined according to the space required for the output file, thereby solving the technical problem in the prior art that a balance between memory resource consumption and data segmentation efficiency cannot be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 It is a flow chart of a performance optimization method for node seismic data segmentation provided by an embodiment of the present invention;

[0020] Figure 2 It is a structural block diagram of a performance optimization device for node seismic data segmentation provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0022] In an embodiment of the present invention, a performance optimization method for node seismic data segmentation is provided, such as Figure 1 As shown, the method includes:

[0023] Step 101: sort all the shot point information objects ShotPoint used to split a node in ascending order according to the firing time, and put all the sorted shot point information objects into the array SPVector.

[0024] The shooting point information object ShotPoint includes the line number SLNo, the point number SPNo, the shooting time shootTime, and the index outIndex of the current track in the output track gather.

[0025] Each shot will calculate a line number and point number based on its coordinates. It can be understood as dividing the construction area into a plane grid. Each shot falls on a grid, and its line number and point number are the row number and column number of the grid.

[0026] The line number SLNo, point number SPNo, and shooting time shootTime are input data, and the index outIndex of this channel in the output channel gather is calculated in the subsequent steps. The outIndex value of the firing point information is calculated to prepare for the subsequent batch processing, so that the batch processing can know where each channel is placed in the file.

[0027] Step 102: Calculate the index of each excitation point information object in the array SPVector;

[0028] The specific calculation method is as follows:

[0029] Arrange all the excitation point information objects in the array SPVector in ascending order according to the line number SLNo and the point number SPNo. The index of each excitation point information object in the array SPVector is the value of the outIndex field.

[0030] After the calculation, the array SPVector needs to be restored to be sorted in ascending order by the shooting time shootTime.

[0031] Step 103: Determine the space required for the output file based on the number of excitation point information objects in the array SPVector and the number of bytes of each seismic data. The calculation formula is as follows:

[0032] fsz = fhBytes + tBytes × tNum;

[0033] Among them, fsz is the number of bytes in the output file, fhBytes is the number of bytes in the seismic data file header, tBytes is the number of bytes in each data channel, and tNum is the number of channels, that is, the number of elements in SPVector.

[0034] Step 104: Divide the data of each channel in batches according to the firing time of the excitation point in the array SPVector, and based on the space required for the output file, write each batch of channel data into the specified position in the input file after arranging them in ascending order according to the line number SLNo and point number SPNo according to the index. The calculation formula is as follows:

[0035] pos=fhBytes+outIndex×tBytes;

[0036] Among them, pos is the position of the corresponding trace in the output file, fhBytes is the number of bytes of the seismic data file header, tBytes is the number of bytes of each trace data, and outIndex is the index of this trace in the output gather.

[0037] The fewer tracks processed each time, the less memory is occupied, but the speed will be reduced due to the increased number of disk positioning times; the more tracks processed each time, the faster the speed, but the more memory is occupied; this needs to be selected based on the hardware configuration and speed requirements.

[0038] The present invention is mainly to solve the problem mentioned in the background technology. If there are two users A and B who both need to split 10GB of node data of a single node, user A needs to process more nodes every day and needs to prioritize performance, while user B needs to process fewer nodes every day and does not have high performance requirements and does not want to purchase a computer device with too high performance. The existing technology cannot meet the requirements of user B, and a computer with more than 40GB of memory must also be configured.

[0039] If user B has a computer with 6GB of memory and wants to use it to split data, this solution can meet his needs, as follows:

[0040] (1) Determine the amount of memory available for the software. The default is 70% of the total memory and can be adjusted. In this example, the memory available for the software is 6 × 70% = 4.2 GB.

[0041] (2) The amount of data read and split each time is calculated based on the available memory of the software, which is 4.2 / 4 = 1.25 GB. The divisor 4 can also be adjusted according to the actual situation.

[0042] (3) The firing point information is grouped according to the firing time, and each group corresponds to the data processed once. In this example, the number of groups that can be divided is 10GB / 1.25GB=8, which can be divided into 8 groups, and one group is processed each time.

[0043] Based on the same inventive concept, a performance optimization device for node seismic data segmentation is also provided in an embodiment of the present invention, as described in the following embodiments. Since the principle of solving the problem by the performance optimization device for node seismic data segmentation is similar to the performance optimization method for node seismic data segmentation, the implementation of the performance optimization device for node seismic data segmentation can refer to the implementation of the performance optimization method for node seismic data segmentation, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0044] Figure 2 is a structural block diagram of a performance optimization device for node seismic data segmentation according to an embodiment of the present invention. Figure 2 As shown, including:

[0045] The sorting storage module 201 is used to sort all the shooting point information objects used to split a node in ascending order according to the shooting time, and put all the sorted shooting point information objects into an array. The shooting point information objects include the line number SLNo, the point number SPNo, the shooting time shootTime, and the index outIndex of the current track in the output track gather;

[0046] An index calculation module 202, used to calculate the index of each excitation point information object in the array;

[0047] The module 203 for determining the space required for the output file is used to determine the space required for the output file according to the number of the excitation point information objects in the array and the number of bytes of each seismic data;

[0048] The segmentation storage module 204 is used to segment the data of each channel in batches according to the blasting time of the excitation points in the array, and based on the space required for the output file, write each batch of channel data into the specified position in the output file after arranging them in ascending order according to the line number SLNo and the point number SPNo according to the index.

[0049] In the embodiment of the present invention, the index calculation module 202 is specifically used for:

[0050] The index of each firing point information object in the array is as follows:

[0051] Arrange all the excitation point information objects in the array in ascending order according to the line number SLNo and the point number SPNo. The index of each excitation point information object in the array is the value of the outIndex field.

[0052] In the embodiment of the present invention, the space determination module 203 required for outputting files is specifically used for:

[0053] Determine the space required for the output file using the following formula:

[0054] fsz = fhBytes + tBytes × tNum;

[0055] Among them, fsz is the number of bytes in the output file, fhBytes is the number of bytes in the seismic data file header, tBytes is the number of bytes in each data channel, and tNum is the number of channels.

[0056] In the embodiment of the present invention, the segmentation storage module 204 is specifically used for:

[0057] The specified position is determined according to the following formula:

[0058] pos=fhBytes+outIndex×tBytes;

[0059] Among them, pos is the position of the corresponding trace in the output file, fhBytes is the number of bytes of the seismic data file header, tBytes is the number of bytes of each trace data, and outIndex is the index of this trace in the output gather.

[0060] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method when executing the computer program.

[0061] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method.

[0062] In summary, the present invention provides a memory optimization usage method when node seismic data is segmented. The memory usage plan is determined according to the amount of memory that the system can use. If the memory is large enough, all the data of a node are placed in the memory. After segmentation, they are arranged in ascending order according to the line number SLNo and the point number SPNo, and then written to the file in sequence. In this way, reading and writing are sequential, and the IO performance is optimal. If the memory is small, it is necessary to process in batches according to the actual memory size. When each batch of data is written to the output file during batch processing, its data in the output file is not necessarily all continuous, and it may be necessary to jump to a position in the file, which will cause performance loss. But it can be used normally anyway. In this way, a flexible technical solution is provided for node seismic data segmentation, and the user can choose a suitable implementation method according to the requirements for efficiency and cost, so as to achieve a balance between the consumption of memory resources and the efficiency of data segmentation.

[0063] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, 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.

[0064] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), 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 produce 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.

[0065] 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.

[0066] 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 The steps for the functions specified in one or more boxes.

[0067] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A performance optimization method for node seismic data segmentation, characterized in that: include: Sort all the shooting point information objects used to split a node in ascending order according to the shooting time, and put all the sorted shooting point information objects into an array. The shooting point information object includes the line number SLNo, point number SPNo, shooting time shootTime, and the index outIndex of this channel in the output channel gather; Calculate the index of each excitation point information object in the array; Determine the space required for the output file based on the number of excitation point information objects in the array and the number of bytes of each seismic data; The data of each channel is divided into batches according to the firing time of the excitation points in the array. Based on the space required by the output file, each batch of channel data is arranged in ascending order according to the line number SLNo and the point number SPNo, and then written to the specified position in the output file; The index of each firing point information object in the array is calculated as follows: Arrange all the excitation point information objects in the array in ascending order according to the line number SLNo and the point number SPNo. The index of each excitation point information object in the array is the value of the outIndex field; Determine the space required for the output file using the following formula: fsz = fhBytes + tBytes × tNum; Among them, fsz is the number of bytes of the output file, fhBytes is the number of bytes of the seismic data file header, tBytes is the number of bytes of each data track, and tNum is the number of tracks; The specified position is determined according to the following formula: pos=fhBytes+outIndex×tBytes; Among them, pos is the position of the corresponding trace in the output file, fhBytes is the number of bytes of the seismic data file header, tBytes is the number of bytes of each trace data, and outIndex is the index of this trace in the output gather.

2. A performance optimization device for node seismic data segmentation, characterized in that: include: A sorting storage module is used to sort all the shooting point information objects used to split a node in ascending order according to the shooting time, and put all the sorted shooting point information objects into an array. The shooting point information objects include the line number SLNo, the point number SPNo, the shooting time shootTime, and the index outIndex of the current track in the output track gather; An index calculation module, used to calculate the index of each excitation point information object in the array; The module for determining the space required for the output file is used to determine the space required for the output file according to the number of the excitation point information objects in the array and the number of bytes of each seismic data; The segmentation storage module is used to segment the data of each channel in batches according to the blasting time of the excitation point in the array, and based on the space required by the output file, the data of each batch of channels are arranged in ascending order according to the line number SLNo and the point number SPNo according to the index, and then written to the specified position in the output file; The index calculation module is specifically used for: The index of each firing point information object in the array is calculated as follows: Arrange all the excitation point information objects in the array in ascending order according to the line number SLNo and the point number SPNo. The index of each excitation point information object in the array is the value of the outIndex field; The space determination module required for the output file is specifically used for: Determine the space required for the output file using the following formula: fsz = fhBytes + tBytes × tNum; Among them, fsz is the number of bytes of the output file, fhBytes is the number of bytes of the seismic data file header, tBytes is the number of bytes of each data track, and tNum is the number of tracks; The segmentation storage module is specifically used for: The specified position is determined according to the following formula: pos=fhBytes+outIndex×tBytes; Among them, pos is the position of the corresponding trace in the output file, fhBytes is the number of bytes of the seismic data file header, tBytes is the number of bytes of each trace data, and outIndex is the index of this trace in the output gather.

3. A computer 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 computer program, the method of claim 1 is implemented.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of claim 1 is implemented.