The content of the invention
It is an object of the invention to above-mentioned technical problem is solved, therefore, an aspect of of the present present invention provides a kind of earthquake number
According to treating method and apparatus.
To achieve these goals, there is provided a kind of processing method of geological data, it may include following steps:Obtain original
Geological data, the first index information data and the first serial number corresponding with original earthquake data, wherein, index information number
According to be from original earthquake data extract and it is corresponding with original earthquake data;Obtain one or more keywords;In multiple stage
In computer the first index information data are ranked up according to one or more of keywords, obtain the first index information number
According to the second serial number after sequence;Whether the first index information data after the first and second serial numbers judge to sort
Continuously, the first continuously corresponding with the second index information data geological data is carried out into multiple tracks and reads and be stored in storage text
In part, the second geological data in addition to the first geological data is carried out into single track and is read and is stored in storage file.
Preferably, the first continuously corresponding with the second index information data geological data is carried out into multiple tracks to read and deposit
The step being stored in storage file may include:By the first continuously corresponding with the second index information data geological data multiple tracks
Read and be stored in internal memory cache region, when internal memory cache region is write it is full when first geological data is stored in into storage file
In;The second geological data in addition to the first geological data carried out into single track reads and be stored in the step in storage file can
Including:The second geological data in addition to the first geological data is stored in internal memory cache region, when internal memory cache region writes full
When the second geological data is stored in storage file.
Preferably, in multiple stage computers the first index information data are arranged according to one or more of keywords
The step of sequence, may include:First index information data are ranked up according to the one keyword for obtaining, after sequence
The geological data corresponding with the first index information data is stored in multiple stage computers.
Preferably, in multiple stage computers the first index information data are arranged according to one or more of keywords
The step of sequence, may include:First keyword of the first index information data in the plurality of keyword for obtaining is arranged
Sequence sorted after the second index information data, by sequence after the second index information data be averagely stored in multiple stage computers
In;Second index information data of average storage in every computer are carried out according to the keyword in addition to the first keyword
The 3rd index information data after being sorted, by the corresponding geological data of the 3rd index information data storage text is stored in
In part.
To achieve these goals, it is proposed that a kind of processing meanss of geological data, it may include:First acquisition module, obtains
Original geological data, the first index information data and the first serial number corresponding with original earthquake data are taken, wherein, index
Information data is extracted and corresponding with original earthquake data from original earthquake data;Second acquisition module, obtains one
Or multiple keywords;Order module, according to one or more of keywords to the first index information number in multiple stage computers
According to being ranked up, second serial number of the first index information data after sequence is obtained;Memory module, by first and second
Serial number judges whether the first index information data after sorting are continuous, will be continuously corresponding with the second index information data
The multiple tracks that first geological data carries out reads and is stored in storage file, by the second earthquake number in addition to the first geological data
Read and be stored in storage file according to single track is carried out.
Preferably, memory module can read the first continuously corresponding with the second index information data geological data multiple tracks
Take and be stored in internal memory cache region, when internal memory cache region is write it is full when first geological data is stored in storage file;
The second geological data in addition to the first geological data can be stored in internal memory cache region, when internal memory cache region is write it is full when will
Second geological data is stored in storage file.
Preferably, order module can be ranked up to the first index information data according to the one keyword for obtaining,
The geological data corresponding with the first index information data after by sequence is stored in multiple stage computers.
Preferably, the first pass that order module can be to the first index information data in the plurality of keyword for obtaining
Key word is ranked up the second index information data after being sorted, by sequence after the second index information data be averagely stored in
In multiple stage computers;By the second index information data of average storage in every computer according in addition to the first keyword
Keyword is ranked up the 3rd index information data after being sorted, and the corresponding geological data of the 3rd index information data is deposited
In being stored in storage file.
The treating method and apparatus of above-mentioned geological data, are deposited by being ranked up to geological data using multiple stage computers
Storage, improves to a great extent sequence efficiency, improves the computational efficiency of reading and writing data, and realizes continuous to greatest extent
Read-write data.
Specific embodiment
Hereinafter, embodiments of the invention are described in detail with reference to the attached drawings.
Generally speaking, the processing method of geological data of the invention is comprised the following steps:Obtain original earthquake number
According to, the first index information data and the first serial number corresponding with original earthquake data, wherein, index information data are from original
It is extracting in beginning geological data and corresponding with original earthquake data;Obtain one or more keywords;In multiple stage computers
The first index information data are ranked up according to one or more of keywords, obtain the first index information data through row
The second serial number after sequence;Whether the first index information data after the first and second serial numbers judge to sort are continuous, will
Continuously first geological data corresponding with the second index information data carries out multiple tracks and reads and be stored in storage file, will
The second geological data in addition to the first geological data carries out single track and reads and be stored in storage file.
The processing method of the geological data of the present invention is retouched in detail below in conjunction with the specific embodiment of the present invention
State.
Fig. 1 is the flow chart of the processing method of geological data according to an exemplary embodiment of the present invention.
In step S101, original geological data, the first index information data and corresponding with original earthquake data are obtained
The first serial number, wherein, index information data be from original earthquake data extract and it is corresponding with original earthquake data.
In step S102, one or more keywords are obtained.
In step S103, in multiple stage computers the first index information data are entered according to one or more of keywords
Row sequence, obtains second serial number of the first index information data after sequence.
In step S104, whether the first index information data after the first and second serial numbers judge to sort are continuous,
The first continuously corresponding with the second index information data geological data is carried out into multiple tracks to read and be stored in storage file,
The second geological data in addition to the first geological data is carried out into single track to read and be stored in storage file.
Further, in the case that the keyword for obtaining in step s 102 is a keyword, can be by the first rope
Draw information data according to obtain one keyword be ranked up, by sequence after it is corresponding with the first index information data
Geological data be stored in multiple stage computers.
In the case that the keyword for obtaining in step s 102 is multiple keywords, can be by the first index information data
The first keyword in the plurality of keyword for obtaining is ranked up the second index information data after being sorted, will
The second index information data after sequence are averagely stored in multiple stage computers;By the second rope of average storage in every computer
Draw information data and the 3rd index information data after being sorted be ranked up according to the keyword in addition to the first keyword,
The corresponding geological data of 3rd index information data is stored in storage file.
Further, in step S104, judge the first index information data after sorting whether it is continuous according to be by
The second serial number after sequence is contrasted with the first serial number of original earthquake data, if first after two neighboring sequence
The serial number of index information data keeps adjacent after comparing with the serial number of corresponding initial data, then the two data are to connect
Continuous.
It should be understood that the magnitude of the geological data in the present invention is much larger than the number that the internal memory cache region of computer may store
According to magnitude, so just by the data output in buffer area and being stored in storage file when internal memory cache region writes full.When
The geological data of required storage in storing process last remaining data less than internal memory cache region maximum storage magnitude when, this
When internal memory cache region it is not written full, the last remaining data will also be output and be stored in storage file, be protected with this
The integrity of card output data.
For the deep explanation method of the present invention, specific example is set forth below sort method is illustrated.Following shows
Example is first as a example by the common-shot-gather by original earthquake data after observation system loading is converted to common midpoint gather
Plant sequencer procedure.
Step one, obtains original earthquake data, the first index information data and corresponding with original earthquake data first
Serial number, and the keyword of sequence is set, for example, the first keyword is concentrically period(CMP), the second keyword is offset distance
(The distance of Offset, i.e. shot point and geophone station).
Step 2, it is assumed that original earthquake data is ranked up using 10 computers, respectively the first computer to
Ten computers, are ranked up for No. CMP, after the completion of sequence using the first computer to the first keyword, it is assumed that have 5000 differences
No. CMP, in the range from 1 to 5000.
In one example, can be to the method that the first keyword is ranked up according to CMP numerical value from small to large or
Data are ranked up from big to small.The numerical value of CMP is one-to-one with No. CMP.
Step 3, the first computer using No. CMP for 1 to 500 index information data as the second keyword rank model
Enclose and be sent to the first computer, by No. CMP for 501 to 1000 index information data is activation to second computer, by that analogy,
Until giving the tenth computer for 4501 to 5000 index information data is activation by No. CMP.First computer is sent to first and arrives
The data of the tenth computer also include:Total road of the road number of the corresponding sequence of every computer and whole input data after sequence
Number.
Step 4, every computer is ranked up to the second keyword offset distance under the keyword of corresponding No. CMP, obtains
Corresponding second serial number of the first index information data to after sequence.
Step 5, stores after the completion of every sorting by computer to the geological data after sequence.For example computer three is complete
Into after sequence, the second serial number after according to sequence is read original geological data by the computer, and geological data is put into
In the relief area of internal memory;If the geological data after sequence is continuous(It should be understood that the seriality of the geological data after sequence
It is equal to the seriality of the first index information after sequence), just carry out multiple tracks reading, i.e., once read multiple tracks earthquake number
According to, if the geological data after sequence is not continuous, single track is read, i.e., once read one geological data.Other calculating
Machine is put into the geological data after sequence in the relief area of respective internal memory.
Step 6, all computers complete the geological data in respective relief area to be stored in into same storage after sequence
In file.Further, the geological data after every sorting by computer need to be stored in the relative position of storage file.Relative position
Can after the sequence that step 3 is obtained the road number of every sorting by computer and total road number of whole input data determining, with
Ensure the tram of the geological data output after sequence to storage file concurrently.In one example, it is assumed that whole defeated
The total road number for entering data is 10000, and the first computer to the road number that the tenth computer is included is 1000, then the road of computer two
The 1001 to 2000th of the total road number of number serial number, it is relative in storage file that second computer is stored in the data of storage file
Position is i.e. corresponding to the relative position of the road number.This step is using multicomputer while the advantage of parallel output data, improves
Write out the efficiency of data.
Following example is that the common-shot-gather with original earthquake data after observation system loading is converted to concentrically
Second sequencer procedure as a example by point road collection.
Step one, obtains original earthquake data, the first index information data and corresponding with original earthquake data first
Serial number, and the keyword of sequence is set, for example, the first keyword is concentrically period(CMP), the second keyword is offset distance
(The distance of Offset, i.e. shot point and geophone station).
Step 2, it is assumed that original earthquake data is ranked up using 10 computers, respectively the first computer to
Ten computers, the first computer to the tenth computer respectively to the first keyword No. CMP be ranked up, after the completion of sequence, it is assumed that
There is 5000 different No. CMP, in the range from 1 to 5000.
In one example, can be to the method that the first keyword is ranked up according to CMP numerical value from small to large or
Data are ranked up from big to small.The numerical value of CMP is one-to-one with No. CMP.
Step 3, the first computer using No. CMP for 1 to 500 index information data as the second keyword rank model
Enclose, second computer using No. CMP for 501 to 1000 index information data as the second keyword rank scope, with such
Push away, until using No. CMP for 4501 to 5000 index information data as the second keyword rank scope.
Step 4, every computer is ranked up to the second keyword offset distance under the keyword of corresponding No. CMP, obtains
Corresponding second serial number of the first index information data to after sequence.
Step 5, stores after the completion of every sorting by computer to the geological data after sequence.For example computer three is complete
Into after sequence, the second serial number after according to sequence is read original geological data by the computer, and geological data is put into
In the relief area of internal memory;If the geological data after sequence is continuous(It should be understood that the seriality of the geological data after sequence
It is equal to the seriality of the first index information after sequence), just carry out multiple tracks reading, i.e., once read multiple tracks earthquake number
According to, if the geological data after sequence is not continuous, single track is read, i.e., once read one geological data.Other calculating
Machine is put into the geological data after sequence in the relief area of respective internal memory.
Step 6, all computers complete the geological data in respective relief area to be stored in into same storage after sequence
In file.Further, the geological data after every sorting by computer need to be stored in the relative position of storage file.Relative position
Can be determined by the CMP scopes of every computer and the sum of No. CMP, to ensure concurrently by the earthquake after sequence
Tram of the data output to storage file.In this example, the sum of No. CMP is 5000, and the first computer is to the tenth meter
The CMP scopes that calculation machine is included are 500, then the CMP scopes of computer two account for the 501 to 1000th of sum, and second calculates
Machine is stored in relative position of the data of storage file in storage file i.e. corresponding to the relative position of the CMP scopes.
This step is using multicomputer while the advantage of parallel output data, improves the efficiency for writing out data.
Fig. 2 is the block diagram of the processing meanss of geological data according to an exemplary embodiment of the present invention.
As shown in Fig. 2 the processing meanss of the geological data of exemplary embodiment of the present include:.
First acquisition module 100 be used to obtaining original geological data, the first index information data and with original earthquake
Corresponding first serial number of data, wherein, index information data be from original earthquake data extract and with original earthquake number
According to corresponding.
Second acquisition module 200 is used to obtain one or more keywords.
Order module 300 is entered according to one or more of keywords in multiple stage computers to the first index information data
Row sequence, obtains second serial number of the first index information data after sequence.
Whether first index information data of the memory module 400 after the first and second serial numbers judge to sort are continuous,
The first continuously corresponding with the second index information data geological data is carried out into multiple tracks to read and be stored in storage file,
The second geological data in addition to the first geological data is carried out into single track to read and be stored in storage file.
Alternatively, order module 300 can be arranged the first index information data according to the one keyword for obtaining
Sequence, by sequence after the geological data corresponding with the first index information data be stored in multiple stage computers.
Alternatively, order module 300 can be to the first index information data in the plurality of keyword for obtaining the
One keyword is ranked up the second index information data after being sorted, by sequence after the second index information data averagely deposit
In being stored in multiple stage computers;By the second index information data of average storage in every computer according to except the first keyword it
Outer keyword is ranked up the 3rd index information data after being sorted, by the corresponding earthquake number of the 3rd index information data
According to being stored in storage file.
It should be understood that the processing meanss of geological data according to an exemplary embodiment of the present invention are executable above by reference to Fig. 1
The processing method of the geological data of description, in order to avoid repeating, will not be described here.
The treating method and apparatus of above-mentioned geological data, are deposited by being ranked up to geological data using multiple stage computers
Storage, improves to a great extent sequence efficiency, improves the computational efficiency of reading and writing data, and realizes continuous to greatest extent
Read-write data.
Describe the present invention already in connection with specific embodiment above, but the enforcement not limited to this of the present invention.In the present invention
Spirit and scope in, those skilled in the art can carry out various modifications and variations, these modification and modification will fall into right
Require within the protection domain of restriction.