Seismic data rapid extraction method and device based on Hash index table
By using a fast seismic data extraction method based on a hash index table when collecting seismic data in the field of the node instrument, the problem of time-consuming and high computing resource requirements in the existing technology is solved, and the rapid positioning and extraction of seismic data is achieved, and the demand for real-time quality control is met.
Patent Information
- Application Number
- CN202311155987.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-08
- Publication Date
- 2025-03-11
AI Technical Summary
The existing technology takes a long time to collect seismic data in the field of node instruments and has a large demand for computing resources, which cannot meet the production needs of real-time quality control on-site.
The fast seismic data extraction method based on the hash index table is adopted to quickly locate the target seismic data through the preset hash index table to avoid traversing all seismic data multiple times.
It has achieved rapid extraction of corresponding seismic data under the premise of known target time and fire time, which significantly improves the speed of draw lanes and meets the needs of real-time quality control in field acquisition.
Smart Images

Figure CN119597748A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of seismic data processing, and specifically relates to a method and device for quickly extracting seismic data based on a hash index table. Background Art
[0002] At present, the technology of extracting gathers for preprocessing seismic data collected by node instruments in the field mainly obtains gather data relationships based on SPS relationship files, shot files and node instrument data files, and then extracts effective seismic data collected by node instruments, usually 6 to 8 seconds after the shot. In actual operation, it is necessary to traverse all seismic data multiple times to extract effective seismic data required for seismic data processing. The existing technology is time-consuming and requires large computing resources, and cannot meet the production needs of real-time quality control on site. Summary of the invention
[0003] Based on the above technical problems, the present application proposes a method and device for quickly extracting seismic data based on a hash index table, which can quickly extract the required seismic data through a preset hash index table to meet the demand for real-time extraction of seismic data.
[0004] In the first aspect, the present application proposes a method for quickly extracting seismic data based on a hash index table, comprising:
[0005] Get the first shot file;
[0006] Retrieving the first blasting time from the first blasting file;
[0007] Using a hash function to calculate the first blasting time to obtain a first hash address;
[0008] Obtaining an absolute address chain corresponding to the first hash address by searching in a pre-built hash index table according to the first hash address;
[0009] According to the absolute address chain, all earthquake data corresponding to the absolute address chain are obtained;
[0010] Calculate the difference between the first shot time and the target time;
[0011] Among all the seismic data corresponding to the absolute address chain, target seismic data are extracted according to the difference.
[0012] The pre-built hash index table is constructed as follows:
[0013] Save the historical seismic data collected by the node instrument according to the preset period;
[0014] Obtaining the second blasting file within a preset period;
[0015] According to the second blasting file, obtaining a second blasting time corresponding to the historical seismic data;
[0016] Using a hash function to calculate the second blasting time to obtain a second hash address;
[0017] The absolute addresses of the historical earthquake data having the same second hash address are saved in chronological order as an absolute address chain;
[0018] The second hash address is used as an index item in a hash index table, the absolute address chain is used as a storage path in the hash index table, and the index items and the storage paths corresponding to the index items constitute a pre-built hash index table that changes over time.
[0019] The calculation formula of the hash function is:
[0020] Index = x%array.length-1
[0021] Among them, Index is the first hash address or the second hash address, x is the first blasting time or the second blasting time, array.length is the number of index items, and % is the remainder operation.
[0022] The querying, according to the first hash address, in a pre-built hash index table to obtain an absolute address chain corresponding to the first hash address includes:
[0023] Find an index item in the pre-built hash index table that is equal to the value of the first hash address;
[0024] A storage path corresponding to an index item having a value equal to the first hash address is obtained, and an absolute address chain stored in the storage path is determined as the absolute address chain corresponding to the first hash address.
[0025] The method for quickly extracting seismic data based on a hash index table further includes:
[0026] Obtain seismic exploration auxiliary data and node information files;
[0027] Extracting traces is performed based on the seismic exploration auxiliary data, the node information file, the first shot file and the target seismic data.
[0028] The extracting of track gathers according to the seismic exploration auxiliary data, node information file, first shot file and seismic data to be extracted includes: extracting meta information of target seismic data, wherein the meta information of target seismic data includes: field file number, detection point line number and detection point number.
[0029] In the second aspect, the present application proposes a rapid extraction device for seismic data based on a hash index table, comprising:
[0030] A blasting file acquisition module, used to acquire a first blasting file;
[0031] A time retrieval module, used for retrieving the first blasting time in the first blasting file;
[0032] An address calculation module, used for calculating the first blasting time using a hash function to obtain a first hash address;
[0033] An address chain acquisition module, configured to query a hash index table construction unit according to the first hash address to obtain an absolute address chain corresponding to the first hash address;
[0034] A seismic data acquisition module, used for obtaining all seismic data corresponding to the absolute address chain according to the absolute address chain;
[0035] A difference calculation module is used to calculate the difference between the first blasting time and the target time;
[0036] The seismic data extraction module is used to extract target seismic data according to the difference value from all seismic data corresponding to the absolute address chain.
[0037] The hash index table construction unit includes:
[0038] A data storage subunit is used to store historical seismic data collected by the node instrument according to a preset period;
[0039] A blasting file acquisition subunit, used to acquire a second blasting file within a preset period;
[0040] A blasting time acquisition subunit, used for acquiring a second blasting time corresponding to the historical seismic data according to the second blasting file;
[0041] An address calculation subunit, configured to calculate the second blasting time using a hash function to obtain a second hash address;
[0042] An address chain storage subunit is used to store the absolute addresses of the historical earthquake data with the same second hash address in chronological order as an absolute address chain;
[0043] The hash index table composition subunit is used to use the second hash address as the index item in the hash index table and the absolute address chain as the storage path in the hash index table. The index item and the storage path corresponding to the index item constitute a pre-built hash index table that changes over time.
[0044] In a third aspect, the present application proposes an electronic device, comprising: a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for rapid extraction of seismic data based on a hash index table is executed.
[0045] In a fourth aspect, the present application proposes a computer-readable storage medium storing executable instructions, which, when executed, enable a processor to execute the method for rapid extraction of seismic data based on a hash index table.
[0046] Beneficial effects:
[0047] The present application proposes a method and device for quickly extracting seismic data based on a hash index table. Under the premise of knowing the target time and the corresponding blasting time, a pre-built hash index table can be used to quickly extract the corresponding seismic data, avoiding multiple traversals of all the seismic data. In the actual field acquisition process, the speed of extracting the track set is significantly improved, meeting the needs of real-time quality control of field acquisition. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is a flow chart of a method for quickly extracting seismic data based on a hash index table according to Embodiment 1 of the present application;
[0049] Figure 2 A flowchart of obtaining an absolute address chain according to an embodiment of the present application;
[0050] Figure 3 A flow chart for constructing a hash index table in an embodiment of the present application;
[0051] Figure 4 A hash index diagram of an embodiment of the present application is shown;
[0052] Figure 5 A schematic diagram of the hash bucket structure of an embodiment of the present application;
[0053] Figure 6 This is a flow chart of a method for quickly extracting seismic data based on a hash index table according to Embodiment 2 of the present application;
[0054] Figure 7 This is an example flow chart of a method for quickly extracting seismic data based on a hash index table according to an embodiment of the present application;
[0055] Figure 8 This is a principle block diagram of a device for rapid extraction of seismic data based on a hash index table according to an embodiment of the present application. DETAILED DESCRIPTION
[0056] The present disclosure is further described below in conjunction with the embodiments shown in the accompanying drawings.
[0057] For the actual application scenario of field seismic data collection by node instruments, the existing technology is time-consuming and requires large computing resources, and cannot meet the production needs of real-time quality control on site. This application establishes a hash index table for seismic data collected by node instruments in real time according to the blasting time, and uses a hash bucket algorithm (open hashing method) to avoid hash conflicts based on the storage characteristics of seismic data in the node instrument. The hash index table is used to quickly locate the target seismic data, so as to achieve real-time extraction of channel sets during the node instrument collection construction process and meet the needs of on-site quality control.
[0058] Embodiment 1
[0059] This embodiment proposes a method for quickly extracting seismic data based on a hash index table. Figure 1 As shown, including:
[0060] Step S1: Obtain the first blasting file;
[0061] In the collection of seismic data, the blasting file is used to record the relevant information of the blasting, including: blasting point line number, blasting point number, blasting time and date; the node information file is used to record the detection related information, including: node information file: detection point line number, detection point number, node equipment number, detection point X coordinate, detection point Y coordinate, detection point latitude, detection point longitude, distance difference between detection points, recorder, date; node instrument is used to record and save the seismic data corresponding to the blasting time. The seismic exploration auxiliary data (Seismic Processing Support Format for Surveys, referred to as SPS) file is used to record the relationship between the blasting point and the detection point. The seismic exploration auxiliary data is a general standard format file used to store seismic exploration auxiliary data collected by the seismic team. SPS file contains four parts: first, the shot point (s) file, which defines the line number, stake number, coordinates and other information of the shot point; second, the detection point (r) file, which defines the line number, stake number, coordinates and other information of the detection point; third, the relationship (x) file between the shot point and the detection point, which defines the file number of each earthquake record and the corresponding shot point information and the corresponding detection point information. The data arrangement order of the relationship file is consistent with that of the shot point file. Fourth, the format (c) file, which defines the format of the shot point file, the detection point file and the shot-detection point relationship file. The standard format sps rev1.0 is usually sufficient.
[0062] Before blasting, the node information file and SPS file have been defined. When a blast is fired at a certain moment, all blasting-related data are saved in the blasting file, and the seismic data corresponding to the blasting time is saved in the node instrument.
[0063] In the prior art, if one wants to obtain seismic data at a target time, one needs to extract corresponding information from the node information file, SPS file, shot file, and seismic data respectively, and one needs to traverse all the seismic data multiple times to find the required information.
[0064] In this embodiment, it is first necessary to obtain a blasting file. By simply retrieving the blasting time corresponding to the target time in the blasting file, the target seismic data can be quickly and accurately found using the pre-built hash index table.
[0065] Step S2: Retrieving the first blasting time from the first blasting file;
[0066] In this embodiment, the method for retrieving the first blasting time is not limited. The first blasting time can be automatically retrieved using an algorithm, or the first blasting time can be manually retrieved. Regardless of the method, as long as the first blasting time is known, the pre-constructed hash index table of this application can be used to quickly extract seismic data.
[0067] Step S3: using a hash function to calculate the first blasting time to obtain a first hash address;
[0068] In this embodiment, the first firing time needs to be processed using a hash function to obtain a first hash address, wherein the hash function calculation formula is as follows:
[0069] Index = x%array.length-1
[0070] Among them, Index is the first hash address, x is the first shot time, array.length is the number of index items in the pre-built hash index table, and % is the remainder operation.
[0071] Step S4: According to the first hash address, query the pre-built hash index table to obtain the absolute address chain corresponding to the first hash address, such as Figure 2 As shown, including:
[0072] Step S4.1: Find an index item in the pre-built hash index table that is equal to the value of the first hash address;
[0073] Step S4.2: Obtain a storage path corresponding to an index item having a value equal to the first hash address, and determine the absolute address chain stored in the storage path as the absolute address chain corresponding to the first hash address.
[0074] In this embodiment, the index items of the pre-constructed hash index table have multiple items. Taking the number of index items as 24 as an example, the index items are: 0, 1, 2, 3...23. The first blasting time in this example is based on the GPS (Global Positioning System) time. If the first blasting time is 11:40, the first hash address Index=40%24-1=15, then in the index items of the pre-constructed hash index table, an index item equal to 15 is found, and the storage path corresponding to index item 15 is determined as the absolute address chain corresponding to the first hash address.
[0075] Wherein, the pre-built hash index table is as follows: Figure 3 As shown, the construction process is as follows:
[0076] Step S100: saving historical seismic data collected by the node instrument according to a preset period;
[0077] In a specific implementation, the historical seismic data collected by the point instrument is saved according to a preset period, which may be half an hour or one hour.
[0078] Step S101: Acquire the second blasting file within a preset period;
[0079] Step S102: acquiring a second blasting time corresponding to historical earthquake data according to the second blasting file;
[0080] Step S103: using a hash function to calculate the second blasting time to obtain a second hash address;
[0081] Before using the hash index table to expressly extract seismic data, it is necessary to construct a hash index table. First, obtain the blasting file in this cycle. This application mainly uses the blasting time in the blasting file, and uses the blasting time as the key value. The key value is calculated using a hash function to obtain a second hash address. Selecting a suitable hash function is the key to successfully pre-constructing the hash index table. The hash function of this embodiment is calculated as follows:
[0082] Index = x%array.length-1
[0083] Among them, Index is the second hash address, x is the second firing time, array.length is the number of index items, and % is the remainder operation.
[0084] The calculated second hash address is used as the index item in the hash index table, such as Figure 4 As shown, the index items are 0, 1, 2, 3…array.length-1.
[0085] Step S104: saving the absolute addresses of the historical earthquake data with the same second hash address in chronological order as an absolute address chain;
[0086] In this embodiment, the data with the same second hash address (or the same key value) belong to the same subset, and each subset is called a hash bucket. Figure 4 As shown, the elements in the hash bucket are connected in chronological order through a single chain. The head node of each single chain is stored in the index item of the hash table index table. The value of the head node is the value of the second hash address calculated by the key value. The essence of each element in the single chain is the absolute address of the historical earthquake data with the same second hash address, such as Figure 5 As shown, this embodiment uses a hash bucket to avoid hash conflicts.
[0087] Step S105: Using the second hash address as an index item in a hash index table, using the absolute address chain as a storage path in the hash index table, the index items and the storage paths corresponding to the index items constitute a pre-built hash index table that changes over time.
[0088] In the specific implementation, the hash index table consists of index items and storage paths corresponding to the index items one by one, where the storage path is an absolute address chain in chronological order. It is worth noting that: as time goes by, the pre-built hash index table is constantly expanding, because every half an hour or an hour, the absolute address of historical earthquake data is added to the pre-built hash index table.
[0089] Step S5: according to the absolute address chain, obtaining all earthquake data corresponding to the absolute address chain;
[0090] In a specific implementation, the absolute address refers to the absolute address of a computer memory. It is understandable that when the absolute address of a computer memory is known, all the corresponding data stored in the absolute address can be found. Therefore, based on all the absolute addresses stored in the absolute address chain, the earthquake data corresponding to each absolute address can be obtained. However, the earthquake data obtained at this time is still very large, because as time goes by, the absolute addresses in the pre-built hash index table are constantly increasing, and the corresponding earthquake data are also constantly increasing. At this time, only all the earthquake data stored in the absolute address chain can be obtained, and the earthquake data at the target time cannot be accurately obtained.
[0091] Step S6: Calculate the difference between the first blasting time and the target time;
[0092] Step S7: extracting target seismic data from all seismic data corresponding to the absolute address chain according to the difference.
[0093] In this embodiment, after obtaining all the seismic data stored in the absolute address chain, it is necessary to calculate the difference between the first shot time and the target time, that is, the offset of the target seismic data in all current seismic data files. Because the absolute addresses in the absolute address chain are arranged in chronological order, the target seismic data can be retrieved by calculating the difference between the first shot time and the target time.
[0094] The method for quickly extracting seismic data based on a hash index table proposed in this embodiment is as follows: first, obtain the first blasting file; retrieve the first blasting time from the first blasting file; calculate the first hash address using a hash function for the first blasting time; second, query the pre-constructed hash index table according to the first hash address to obtain the absolute address chain corresponding to the first hash address; obtain all seismic data corresponding to the absolute address chain according to the absolute address chain; finally, calculate the difference between the first blasting time and the target time; extract the target seismic data from all seismic data corresponding to the absolute address chain according to the calculated difference. This embodiment realizes the rapid and accurate positioning of target seismic data using a pre-constructed hash index table.
[0095] Embodiment 2
[0096] This embodiment proposes a method for quickly extracting seismic data based on a hash index table. Figure 6 As shown, including:
[0097] Step S1: Obtain the first blasting file;
[0098] Step S2: Retrieving the first blasting time from the first blasting file;
[0099] Step S3: using a hash function to calculate the first blasting time to obtain a first hash address;
[0100] Step S4: querying a pre-built hash index table according to the first hash address to obtain an absolute address chain corresponding to the first hash address;
[0101] Step S5: according to the absolute address chain, obtaining all earthquake data corresponding to the absolute address chain;
[0102] Step S6: Calculate the difference between the first blasting time and the target time;
[0103] Step S7: extracting target seismic data from all seismic data corresponding to the absolute address chain according to the difference;
[0104] Step S8: Obtaining seismic exploration auxiliary data and node information files;
[0105] Step S9: extracting track gathers according to the seismic exploration auxiliary data, the node information file, the first shot file and the target seismic data.
[0106] The extracting of track gathers according to the seismic exploration auxiliary data, node information file, first shot file and seismic data to be extracted includes: extracting meta information of target seismic data, wherein the meta information of target seismic data includes: field file number, detection point line number and detection point number.
[0107] In this embodiment, steps S1 to S7 are the same as the corresponding steps in the first embodiment, and this embodiment will not be repeated. In order to solve the practical problem of real-time extraction of channel collection during the node instrument acquisition construction process and meet the needs of on-site quality control, this embodiment applies the rapid extraction method of seismic data based on the hash index table to the real-time extraction of channel collection. When it is necessary to extract channel collection, the seismic exploration auxiliary data and node information file are first obtained. The seismic exploration auxiliary data and node information file are pre-defined files. Secondly, the channel collection is extracted according to the seismic exploration auxiliary data, node information file, the first blasting file and the target seismic data. Because the target seismic data has been obtained based on the pre-built hash index table, the target seismic data can be directly used in the extraction of channel collection. Among them, the method of extracting channel collection belongs to the prior art and will not be repeated in this embodiment. Through the above steps, the retrieval speed of seismic data in node instrument seismic acquisition is greatly improved, and then the speed of extracting target seismic data is improved, providing an effective technical means for real-time extraction of channel collection in node instrument seismic acquisition construction, and meeting the needs of real-time quality control of collected seismic data in node instrument seismic acquisition production.
[0108] The method for rapid extraction of seismic data based on a hash index table proposed in this embodiment is based on a pre-built hash index table to rapidly extract target seismic data. After obtaining the target seismic data, the method extracts the track set according to the seismic exploration auxiliary data, the node information file and the first shot file. This method improves the retrieval speed of seismic data in node instrument seismic acquisition, thereby improving the speed of extracting the track set and meeting the demand for real-time quality control of the collected seismic data in node instrument seismic acquisition production.
[0109] Embodiment 3
[0110] This embodiment proposes a method for quickly extracting seismic data based on a hash index table, which is a specific example of the second embodiment. The specific implementation process of the method for quickly extracting seismic data based on a hash index table is described in detail through an actual example.
[0111] A fast seismic data extraction method based on hash index table, such as Figure 7 As shown, the specific implementation process includes:
[0112] Step S200: specifying absolute addresses of seismic exploration auxiliary data, node information files, shot files, and seismic data in a computer memory;
[0113] The shot files include a first shot file and a second shot file. The first shot file is used to determine the shot time of the target seismic data that needs to be retrieved currently, and the second shot file is used to pre-build a hash index table.
[0114] Step S201: defining the meta information of target seismic data;
[0115] The meta information of the target seismic data in this example includes: field file number (FFID, Field File Identity Document), detection point line number and detection point number;
[0116] Step S202: retrieve the first blasting file to obtain the corresponding first blasting time, calculate the difference between the first blasting time and the target time, use the first blasting time to obtain the corresponding seismic data in the pre-built hash index table, and extract the target seismic data from the corresponding seismic data according to the difference;
[0117] Step S203: extracting a track set for the meta-information of the target seismic data according to the seismic exploration auxiliary data, the node information file, the first shot file and the target seismic data;
[0118] Step S204: Perform quality control on the result of extracting the channel gather.
[0119] In this example, the method of pre-building the hash index table is the same as that of the pre-building the hash index table in the first embodiment, and is not repeated in this example.
[0120] Through the above process, in the actual process of field acquisition of node instruments, the application of the rapid extraction method of seismic data based on the hash index table will greatly improve the speed of extracting traces to meet the current needs of real-time quality control of field acquisition of node instruments.
[0121] Embodiment 4:
[0122] This embodiment proposes a rapid extraction device for seismic data based on a hash index table. Figure 8 As shown, it includes: a blasting file acquisition module, a time retrieval module, an address calculation module, an address chain acquisition module, a seismic data acquisition module, a difference calculation module, and a seismic data extraction module, wherein the blasting file acquisition module is connected to the time retrieval module, the time retrieval module is connected to the address calculation module, the address chain acquisition module is connected to the seismic data acquisition module, and the difference calculation module is connected to the seismic data extraction module;
[0123] A blasting file acquisition module, used to acquire a first blasting file;
[0124] A time retrieval module, used for retrieving the first blasting time in the first blasting file;
[0125] An address calculation module, used to calculate the first blasting time using a hash function to obtain a first hash address;
[0126] An address chain acquisition module, configured to query a hash index table construction unit according to the first hash address to obtain an absolute address chain corresponding to the first hash address;
[0127] A seismic data acquisition module, used for obtaining all seismic data corresponding to the absolute address chain according to the absolute address chain;
[0128] A difference calculation module is used to calculate the difference between the first blasting time and the target time;
[0129] The seismic data extraction module is used to extract target seismic data according to the difference from all seismic data corresponding to the absolute address chain.
[0130] The hash index table construction unit includes: a data storage subunit, a blasting file acquisition subunit, a blasting time acquisition subunit, an address calculation subunit, an address chain storage subunit, and a hash index table composition subunit. The data storage subunit is connected to the blasting file acquisition subunit, the blasting file acquisition subunit is connected to the blasting time acquisition subunit, the blasting time acquisition subunit is connected to the address calculation subunit, the address calculation subunit is connected to the address chain storage subunit, and the address chain storage subunit is connected to the hash index table composition subunit.
[0131] A data storage subunit is used to store historical seismic data collected by the node instrument according to a preset period;
[0132] A blasting file acquisition subunit, used to acquire a second blasting file within a preset period;
[0133] A blasting time acquisition subunit, used for acquiring a second blasting time corresponding to the historical seismic data according to the second blasting file;
[0134] An address calculation subunit, configured to calculate the second blasting time using a hash function to obtain a second hash address;
[0135] An address chain storage subunit is used to store the absolute addresses of the historical earthquake data with the same second hash address in chronological order as an absolute address chain;
[0136] The hash index table composition subunit is used to use the second hash address as the index item in the hash index table and the absolute address chain as the storage path in the hash index table. The index item and the storage path corresponding to the index item constitute a pre-built hash index table that changes over time.
[0137] The present embodiment proposes a rapid seismic data extraction device based on a hash index table. First, a blasting file acquisition module is used to acquire the first blasting file. Second, a time retrieval module is used to retrieve the first blasting time in the first blasting file. An address calculation module is used to calculate the first hash address using a hash function for the first blasting time. An address chain acquisition module is used to query the hash index table construction unit according to the first hash address to obtain the absolute address chain corresponding to the first hash address. A seismic data acquisition module is used to obtain all seismic data corresponding to the absolute address chain according to the absolute address chain. A difference calculation module is used to calculate the difference between the first blasting time and the target time. Finally, a seismic data extraction module is used to extract the target seismic data according to the difference in all seismic data corresponding to the absolute address chain. The present device can greatly improve the speed of extracting seismic data.
[0138] Embodiment 5
[0139] This embodiment proposes an electronic device, including: a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for quickly extracting seismic data based on a hash index table is executed.
[0140] The electronic device may be a mobile phone, a computer or a tablet computer, etc., including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method for quickly extracting seismic data based on a hash index table as described in the embodiment is implemented. It is understood that the electronic device may also include an input / output (I / O) interface and a communication component.
[0141] The processor is used to execute all or part of the steps in the method for rapid extraction of seismic data based on the hash index table as described in the above embodiment. The memory is used to store various types of data, which may include instructions of any application or method in the electronic device, as well as data related to the application.
[0142] The processor can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the hash index table-based seismic data rapid extraction method described in the above embodiments.
[0143] Embodiment 6
[0144] This embodiment provides a computer-readable storage medium storing executable instructions, which, when executed, enable a processor to execute the method for rapid extraction of seismic data based on a hash index table.
[0145] If implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0146] Based on this understanding, the technical solution of the present application can essentially or partly be embodied in the form of a software product that contributes to the prior art. The software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method for rapid extraction of seismic data based on a hash index table as described in each embodiment of the present application.
[0147] The aforementioned storage media include: flash memory, hard disk, multimedia card, card-type memory (for example, SD (Secure Digital Memory Card) or DX (Memory Data Register, MDR abbreviation, memory data register) memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, CD, server, APP (Application, abbreviation of application software) application store and other media that can store program verification codes, on which computer programs are stored. When the computer program is executed by the processor, the various steps of the above-mentioned method for rapid extraction of seismic data based on hash index table can be implemented.
[0148] The various embodiments in the present disclosure are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0149] The protection scope of the present disclosure is not limited to the above-mentioned embodiments. Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the scope and spirit of the present disclosure. If these changes and modifications fall within the scope of the claims of the present disclosure and their equivalents, the intention of the present disclosure also includes these changes and modifications.
Claims
1. A method for rapid extraction of seismic data based on a hash index table, characterized in that: include: Get the first shot file; Retrieving the first blasting time from the first blasting file; Using a hash function to calculate the first blasting time to obtain a first hash address; Obtaining an absolute address chain corresponding to the first hash address by searching in a pre-built hash index table according to the first hash address; According to the absolute address chain, all earthquake data corresponding to the absolute address chain are obtained; Calculate the difference between the first shot time and the target time; Among all the seismic data corresponding to the absolute address chain, target seismic data are extracted according to the difference.
2. The method for rapid extraction of seismic data based on a hash index table according to claim 1, characterized in that: The pre-built hash index table is constructed as follows: Save the historical seismic data collected by the node instrument according to the preset period; Obtaining the second blasting file within a preset period; According to the second blasting file, obtaining a second blasting time corresponding to the historical seismic data; Using a hash function to calculate the second blasting time to obtain a second hash address; The absolute addresses of the historical earthquake data having the same second hash address are saved in chronological order as an absolute address chain; The second hash address is used as an index item in a hash index table, the absolute address chain is used as a storage path in the hash index table, and the index items and the storage paths corresponding to the index items constitute a pre-built hash index table that changes over time.
3. The method for rapid extraction of seismic data based on a hash index table according to claim 2, characterized in that: The calculation formula of the hash function is: Index = x%array.length-1 Among them, Index is the first hash address or the second hash address, x is the first blasting time or the second blasting time, array.length is the number of index items, and % is the remainder operation.
4. The method for rapid extraction of seismic data based on a hash index table according to claim 1, characterized in that: The querying, according to the first hash address, in a pre-built hash index table to obtain an absolute address chain corresponding to the first hash address includes: Find an index item in the pre-built hash index table that is equal to the value of the first hash address; A storage path corresponding to an index item having a value equal to the first hash address is obtained, and an absolute address chain stored in the storage path is determined as the absolute address chain corresponding to the first hash address.
5. The method for rapid extraction of seismic data based on a hash index table according to claim 1, characterized in that: The method for quickly extracting seismic data based on a hash index table further includes: Obtain seismic exploration auxiliary data and node information files; Extracting traces is performed based on the seismic exploration auxiliary data, the node information file, the first shot file and the target seismic data.
6. The method for rapid extraction of seismic data based on a hash index table according to claim 5, characterized in that: The extracting of track gathers according to the seismic exploration auxiliary data, node information file, first shot file and seismic data to be extracted includes: extracting meta information of target seismic data, wherein the meta information of target seismic data includes: field file number, detection point line number and detection point number.
7. A rapid extraction device for seismic data based on a hash index table, characterized in that: include: A blasting file acquisition module, used to acquire a first blasting file; A time retrieval module, used for retrieving the first blasting time in the first blasting file; An address calculation module, used to calculate the first blasting time using a hash function to obtain a first hash address; An address chain acquisition module, configured to query a hash index table construction unit according to the first hash address to obtain an absolute address chain corresponding to the first hash address; A seismic data acquisition module, used for obtaining all seismic data corresponding to the absolute address chain according to the absolute address chain; A difference calculation module is used to calculate the difference between the first blasting time and the target time; The seismic data extraction module is used to extract target seismic data according to the difference from all seismic data corresponding to the absolute address chain.
8. The device for rapid extraction of seismic data based on a hash index table according to claim 7, characterized in that: The hash index table construction unit includes: A data storage subunit is used to store historical seismic data collected by the node instrument according to a preset period; A blasting file acquisition subunit, used to acquire a second blasting file within a preset period; A blasting time acquisition subunit, used for acquiring a second blasting time corresponding to the historical seismic data according to the second blasting file; An address calculation subunit, configured to calculate the second blasting time using a hash function to obtain a second hash address; An address chain storage subunit is used to store the absolute addresses of the historical earthquake data with the same second hash address in chronological order as an absolute address chain; The hash index table composition subunit is used to use the second hash address as the index item in the hash index table and the absolute address chain as the storage path in the hash index table. The index item and the storage path corresponding to the index item constitute a pre-built hash index table that changes over time.
9. An electronic device, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method for rapid extraction of seismic data based on a hash index table as described in any one of claims 1 to 6 is executed.
10. A computer-readable storage medium, characterized in that: It stores executable instructions, which, when executed, enable the processor to execute the method for quickly extracting seismic data based on a hash index table as described in any one of claims 1-6.