Summary of the invention
The object of the present invention is to provide a kind of method and apparatus that obtains geological data, can obtain rapidly required geological data.
An aspect of of the present present invention provides a kind of method of obtaining geological data, comprising: a) detect from least one geological data file the road that meets predetermined condition; B) extract the track address in the road detecting and the finger target value in the road that extraction detects; C) track address in the road with identical finger target value among the road detecting is divided into a subset; D) in the mode of shining upon, the finger target value of the index of each subset, each subset and each subset are stored in index file; E) scope of the finger target value of reception user input; F) the corresponding subset of finger target value in sensing range from index file; G) read the road geological data of storing under the track address that the subset that detects comprises.
Alternatively, the step of the finger target value in the road that extraction detects comprises: the N kind of extracting the road detecting refers to target value, N is greater than 0 natural number, wherein, step c) comprises: C1) the identical i that has among the road detecting is referred to the track address in the road of target value is divided into an i subset; C2) determine whether i equals N; C3), in the time that i is not equal to N, make i=i+1, for each i-1 subset, the identical i that has among this i-1 subset is referred to the track address in the road of target value is divided into an i subset of this i-1 subset, return to step C2), wherein, the initial value of i is 1.
Alternatively, step d) comprises: in the mode of shining upon by by step C1) the i index of each i subset of generating, the i of each i subset refer to that target value and each i subset store in index file.
Alternatively, step d) comprises: in the mode of shining upon by by step C3) the 1st index to the i index of each i subset of generating, the 1st index to the i of each i subset refer to that target value and each i subset store in index file.
Alternatively, step e) comprises: the M kind that receives user input refers to that the scope of target value, M are to be greater than 0 natural number that is less than or equal to N, and wherein, step f) comprises: from index file, detect the subset that has mapping relations with described M kind index; Refer to that from M kind described in the sub-centralized detecting detecting M kind that target value all meets user input refers to the subset of the scope of target value.
Alternatively, the described road that meets predetermined condition is predetermined survey line Nei road.
Alternatively, described index comprises at least one in following: the horizontal ordinate of the horizontal ordinate of shot point, the ordinate of shot point, geophone station, the ordinate of geophone station, common midpoint number, the horizontal ordinate of common midpoint, the ordinate of common midpoint, static correction value, offset distance.
Alternatively, the position of the track data storage in the track address Shi Gai road in described road.
Another aspect of the present invention provides a kind of equipment that obtains geological data, comprising: detecting unit, detects the road that meets predetermined condition from least one geological data file; Extraction unit, extracts the track address in the road detecting and the finger target value in the road that extraction detects; Subset division unit, is divided into a subset by the track address in the road with identical finger target value among the road detecting; Storage unit, stores the finger target value of the index of each subset, each subset and each subset in index file in the mode of shining upon; Receiving element, the scope of the finger target value of reception user input; Subset detecting unit, the corresponding subset of finger target value from index file in sensing range; Reading unit, reads the road geological data of storing under the track address that the subset that detects comprises.
Alternatively, the N kind that extraction unit extracts the road detecting refers to target value, N is greater than 0 natural number, and subset division unit comprises: the first division unit, refers to that by the identical i that has among the road detecting the track address in the road of target value is divided into an i subset; Determining unit, determines whether i equals N; The second division unit, in the time that determining unit determines that i is not equal to N, make i=i+1, for each i-1 subset, the identical i that has among this i-1 subset is referred to the track address in the road of target value is divided into an i subset of this i-1 subset, return to determining unit and determine whether i equals N, wherein, the initial value of i is 1.
Alternatively, storage unit refers to that by the i index of the each i subset being generated by the first division unit, the i of each i subset target value and each i subset store in index file in the mode of mapping.
Alternatively, storage unit refers to that by the 1st index to the i index of the each i subset being generated by the second division unit, the 1st index to the i of each i subset target value and each i subset store in index file in the mode of mapping.
Alternatively, the M kind that receiving element receives user input refers to the scope of target value, and M is greater than 0 natural number that is less than or equal to N, and subset detecting unit comprises: the first detecting unit detects the subset that has mapping relations with described M kind index from index file; The second detecting unit, refers to that from M kind described in the sub-centralized detecting detecting M kind that target value all meets user input refers to the subset of the scope of target value.
Alternatively, the described road that meets predetermined condition is predetermined survey line Nei road.
Alternatively, described index comprises at least one in following: the horizontal ordinate of the horizontal ordinate of shot point, the ordinate of shot point, geophone station, the ordinate of geophone station, common midpoint number, the horizontal ordinate of common midpoint, the ordinate of common midpoint, static correction value, offset distance.
Alternatively, the position of the track data storage in the track address Shi Gai road in described road.
According to the method and apparatus that obtains geological data of the present invention, do not need the geological data in all geological data files to scan and just can obtain rapidly the geological data in required scope, greatly shorten the time of obtaining geological data.
By in ensuing description part set forth general plotting of the present invention other aspect and/or advantage, some will be clearly by descriptions, or can pass through general plotting of the present invention enforcement and learn.
Embodiment
Now the embodiment of the present invention is described in detail, its sample table shows in the accompanying drawings.Below with reference to the accompanying drawings embodiment is described to explain the present invention.
Fig. 1 illustrates according to the process flow diagram of the method for obtaining geological data of the first exemplary embodiment of the present invention.
In step 101, detect the road that meets predetermined condition from least one geological data file.Specifically, stored and the file of road geological data, detected the road that meets the condition setting in advance from one or more.For example, can detect 300-400 survey line Nei road from least one geological data file.
In step 102, extract the track address in the road detecting and the finger target value in the road that extraction detects.
The track address in road can Shi Gai road the position of track data storage, that is, obtain the path of the track data in this road.The memory location of file at the track data place that for example, the track address in road can comprise and the position of the track data in road in this file.
Index can be for describing the various indexs of attribute of geological data, for example, can be ordinate, static correction value, offset distance of horizontal ordinate, the common midpoint of ordinate, common midpoint (CMP, Common Middle Ponit) number, the common midpoint of horizontal ordinate, the geophone station of ordinate, the geophone station of horizontal ordinate, the shot point of shot point etc.Should be appreciated that, be not limited to above cited index.
In one example, the N kind of extracting the road detecting refers to target value, and N is greater than 0 natural number.N kind index can be preset by user, also can be defaulted as conventional index.
In step 103, the track address in the road with identical finger target value among the road detecting is divided into a subset.Specifically, according to the finger target value in the road detecting, the track address in the road detecting is divided, the track address in the road with identical finger target value is divided into a subset, to form at least one subset.Should be appreciated that, for a kind of index, the quantity of the subset of formation depends on the quantity of the different value of this index.
In a preferred embodiment, utilize the method shown in Fig. 2 that the track address in the road with identical finger target value among the road detecting is divided into a subset.
In step 104, in the mode of shining upon, the finger target value of the index of each subset, each subset and each subset are stored in index file.Specifically, by the finger target value of the index of each subset, each subset and corresponding the storing in index file of each subset, like this, the index of a subset and refer to that target value is equivalent to the label of this subset.
In step 105, receive the scope of the finger target value of user's input.Specifically, the M kind that receives user input refers to the scope of target value,, receives in the M kind index of user's input every kind of scope that refers to target value that is, and wherein, M is greater than 0 natural number that is less than or equal to N.Should be appreciated that, user inputs the scope that M kind refers to target value, that is, user wants to obtain M kind in geological data file and refers to the scope Nei road geological data of target value in input.
In step 106, the corresponding subset of finger target value from index file in sensing range.Can first from index file, detect the subset that has mapping relations with described M kind index, that is, from index file, detect the corresponding subset of M kind index, in other words, from index file, detect the subset only with M kind index.Then refer to that from M kind described in the sub-centralized detecting detecting M kind that target value all meets user input refers to the subset of the scope of target value, wherein, M is greater than 0 natural number that is less than or equal to N.
In step 107, read the road geological data of storing under the track address that the subset that detects comprises.Specifically, first obtain the track address that the subset that detects comprises, then read according to the track address of obtaining the road geological data of storing under this track address.Can use existing various algorithm to read according to the track address of obtaining the road geological data of storing under this track address.
Fig. 2 illustrates the process flow diagram that according to an embodiment of the invention track address in the road with identical finger target value among the road detecting is divided into the method for a subset.Can be in the method shown in 103 o'clock execution graphs 2 of execution step.
In step 201, the identical i that has among the road detecting is referred to the track address in the road of target value is divided into an i subset, wherein, the initial value of i is 1.
Therefore, in one example, the step 104 of Fig. 1 can also comprise: in the mode of shining upon, the i of the i index of the each i subset being generated by step 201, each i subset is referred to target value and each i subset store in index file.
In step 202, determine whether i equals N.
When determine that i is not equal to N in step 202 time, in step 203, make i=i+1, for each i-1 subset, the identical i that has among this i-1 subset is referred to the track address in the road of target value is divided into an i subset of this i-1 subset, returns to step 202.
Therefore, in one example, the step 104 of Fig. 1 can also comprise: in the mode of shining upon, the 1st index to the i of the 1st index to the i index of the each i subset being generated by step 203, each i subset is referred to target value and each i subset store in index file.
Fig. 3 illustrates the block diagram of the equipment that obtains according to an embodiment of the invention geological data.
As shown in Figure 3, the equipment 300 that obtains geological data according to the present invention comprises: detecting unit 310, extraction unit 320, subset division unit 330, storage unit 340, receiving element 350, subset detecting unit 360 and reading unit 370.
Detecting unit 310 detects the road that meets predetermined condition from least one geological data file.Specifically, detecting unit 310 has been stored and the file of road geological data, has been detected the road that meets the condition setting in advance from one or more.For example, detecting unit 310 can detect 300-400 survey line Nei road from least one geological data file.
Extraction unit 320 extracts the track address in the road detecting and extracts the finger target value in the road detecting.The track address in road can Shi Gai road the position of track data storage, that is, obtain the path of the track data in this road.Index can be for describing the various indexs of attribute of geological data.
In one example, the N kind that extraction unit 320 extracts the road detecting refers to target value, and N is greater than 0 natural number.N kind index can be preset by user, also can be defaulted as conventional index.
The track address in the road with identical finger target value among the road detecting is divided into a subset by subset division unit 330.Specifically, subset division unit 330 is divided the track address in the road detecting according to the finger target value in the road detecting, the track address in the road with identical finger target value is divided into a subset, to form at least one subset.
Storage unit 340 stores the finger target value of the index of each subset, each subset and each subset in index file in the mode of mapping.Specifically, storage unit 340 is the finger target value of the index of each subset, each subset and corresponding the storing in index file of each subset, like this, and the index of a subset and refer to that target value is equivalent to the label of this subset.
Receiving element 350 receives the scope of the finger target value of user's input.Specifically, the M kind that receiving element 350 receives user input refers to the scope of target value,, receives in the M kind index of user's input every kind of scope that refers to target value that is, and wherein, M is greater than 0 natural number that is less than or equal to N.
Subset detecting unit 360 is the corresponding subset of finger target value in sensing range from index file.Subset detecting unit 360 can comprise: the first detecting unit (not shown) and the second detecting unit (not shown).The first detecting unit detects the subset that has mapping relations with described M kind index from index file.The second detecting unit refers to that from M kind described in the sub-centralized detecting detecting M kind that target value all meets user input refers to the subset of the scope of target value.
Reading unit 370 reads the road geological data of storing under the track address that the subset that detects comprises.Specifically, first reading unit 370 obtains the track address that the subset that detects comprises, and then reads according to the track address of obtaining the road geological data of storing under this track address.Reading unit 370 can use existing various algorithm to read according to the track address of obtaining the road geological data of storing under this track address.
Fig. 4 illustrates the block diagram of subset division unit according to an embodiment of the invention.
As shown in Figure 4, comprise according to subset division of the present invention unit 330: the first division unit 410, determining unit 420 and the second division unit 430.
The first division unit 410 refers to that by the identical i that has among the road detecting the track address in the road of target value is divided into an i subset, and wherein, the initial value of i is 1.
Therefore, in one example, the storage unit 340 in Fig. 3 refers to that by the i index of the each i subset being generated by the first division unit 410, the i of each i subset target value and each i subset store in index file in the mode of mapping.
Determining unit 420 determines whether i equals N.
In the time that determining unit 420 determines that i is not equal to N, the second division unit 430 makes i=i+1, for each i-1 subset, the identical i that has among this i-1 subset is referred to the track address in the road of target value is divided into an i subset of this i-1 subset, return to determining unit 420 and determine whether i equals N.
Therefore, in one example, the storage unit 340 in Fig. 3 refers to that by the 1st index to the i of the 1st index to the i index of the each i subset being generated by the second division unit 420, each i subset target value and each i subset store in index file in the mode of mapping.
In addition, may be implemented as computer program according to the said method of exemplary embodiment of the present invention, thereby in the time of this program of operation, realize said method.Can be implemented nextport hardware component NextPort according to the unit in the equipment of exemplary embodiment of the present invention.Those skilled in the art, according to the performed processing of unit limiting, can for example use field programmable gate array (FPGA) or special IC (ASIC) to realize unit.
According to the method and apparatus that obtains geological data of the present invention, do not need the geological data in all geological data files to scan and just can obtain rapidly the geological data in required scope, greatly shorten the time of obtaining geological data.
Although represented and described some embodiments of the present invention, it should be appreciated by those skilled in the art that in the case of not departing from by claim and equivalent thereof and limit the principle of the present invention and spirit of its scope, can modify to these embodiment.