CN112347063A - Method for realizing seismic data sharing and storage medium - Google Patents

Method for realizing seismic data sharing and storage medium Download PDF

Info

Publication number
CN112347063A
CN112347063A CN201910727217.5A CN201910727217A CN112347063A CN 112347063 A CN112347063 A CN 112347063A CN 201910727217 A CN201910727217 A CN 201910727217A CN 112347063 A CN112347063 A CN 112347063A
Authority
CN
China
Prior art keywords
file
data
seismic data
format
binary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910727217.5A
Other languages
Chinese (zh)
Inventor
王海波
汤东阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Petroleum and Chemical Corp
Sinopec Geophysical Research Institute
Original Assignee
China Petroleum and Chemical Corp
Sinopec Geophysical Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Petroleum and Chemical Corp, Sinopec Geophysical Research Institute filed Critical China Petroleum and Chemical Corp
Priority to CN201910727217.5A priority Critical patent/CN112347063A/en
Publication of CN112347063A publication Critical patent/CN112347063A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for realizing seismic data sharing and a storage medium. A method of implementing seismic data sharing, comprising: defining a data format in a preset file to obtain a first format definition file aiming at seismic data, wherein the preset file is a protocol for serialization; serializing the seismic data to obtain a binary data file by referring to the first format definition file; the binary data file is shared among a plurality of different computer systems. The method and the storage medium for realizing seismic data sharing of the embodiment of the invention are simple and suitable for seismic data sharing, the binary data file has better disk space utilization rate and rapid data access characteristic, the binary data file can be conveniently enabled to have definite format by the method, and the binary data file can be better shared in a computer system.

Description

Method for realizing seismic data sharing and storage medium
Technical Field
The invention belongs to the technical field of petroleum exploration seismic data processing, and particularly relates to a method for realizing seismic data sharing and a storage medium.
Background
Oil exploration refers to a process of understanding the geological conditions of the underground by various exploration means, determining favorable areas for oil and gas accumulation, finding traps for stored oil gas and clearing the conditions and the production capacity of oil and gas reservoirs in order to find and find out oil and gas resources. For oil exploration, a method of seismic exploration may be employed. The seismic exploration is based on the geological and physical principles, and adopts the artificial method to cause the earth crust to vibrate, and then uses the precision instrument to record the vibration condition of each point on the ground after explosion, and the recorded seismic data is processed and interpreted to deduce the characteristics of the underground geological structure, and search the possible oil storage structure.
Often the processing of seismic data is not kick-on and we often need to share the seismic data among different computer systems for further processing. The oil industry usually adopts mature SEG-D or SEG-Y files to share data, but the SEG-D and SEG-Y file format definition is very complex, and a great deal of time and energy are needed to understand the data format, secondly, the data needing to be shared is often not so complex in the process of actually processing seismic data, the shared data is only a few simple data items, and the method is not suitable for some times.
Therefore, it is desirable to provide a simple method and storage medium for implementing seismic data sharing.
Disclosure of Invention
One of the technical problems to be solved by the present invention is how to provide a simple method and storage medium for implementing seismic data sharing.
In order to solve the above technical problem, an embodiment of the present application first provides a method for implementing seismic data sharing, including: defining a data format in a preset file to obtain a first format definition file aiming at seismic data, wherein the preset file is a protocol for serialization; serializing the seismic data to obtain a binary data file by referring to the first format definition file; the binary data file is shared among a plurality of different computer systems.
Preferably, the preset file comprises an XML file.
Preferably, for seismic data, defining a data format in a preset file to obtain a first format definition file, including: in the XML file, a first format definition file is obtained by defining a data format of an array of seismic data by using a tag < DataFormat > and a tag < Param >.
Preferably, the serializing the seismic data with reference to the first format definition file to obtain a binary data file includes: and writing the array length and the array data of the seismic data into a binary data file in sequence by referring to the first format definition file.
Preferably, the seismic data comprises: float type data, int type data, double type data, and char type data.
The embodiment of the application also provides a method for realizing seismic data sharing, which comprises the following steps: defining a data format in a preset file to obtain a second format definition file aiming at a binary data file obtained by serializing seismic data, wherein the preset file is a protocol for deserialization; deserializing the binary data file with reference to the second format definition file to obtain target seismic data, wherein processing the seismic data into the binary data file by the serialization and processing the binary data file into the target seismic data by the deserialization are adaptive; and storing the target seismic data into the memories of a plurality of different computer systems to realize sharing.
Preferably, the preset file comprises an XML file.
Preferably, the method further comprises: and if the byte code of the computer system environment is different from the byte code of the data format defined in the XML file, carrying out byte code conversion on the binary data file.
Preferably, the first and second electrodes are formed of a metal,
performing byte code conversion on the binary data file, including:
and converting the byte codes in the binary data file from big endian to little endian or from little endian to big endian.
The embodiment of the invention also discloses a storage medium which stores a computer program, and the computer program realizes the method according to any item when being executed by a processor.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
defining a data format in a preset file aiming at seismic data to obtain a first format definition file, wherein the preset file is a protocol for serialization; serializing the seismic data to obtain a binary data file by referring to the first format definition file; the binary data file is shared among a plurality of different computer systems. The binary data file has better disk space utilization rate and quick data access characteristic, the binary data file can be conveniently provided with a definite format by the method, and the binary data file can be better shared in a computer system.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the technology or prior art of the present application and are incorporated in and constitute a part of this specification. The drawings expressing the embodiments of the present application are used for explaining the technical solutions of the present application, and should not be construed as limiting the technical solutions of the present application.
FIG. 1 is a schematic flow chart of a method for implementing seismic data sharing according to a first embodiment of the invention;
fig. 2 is a flowchart of a method for implementing seismic data sharing according to a second embodiment of the invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the accompanying drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the corresponding technical effects can be fully understood and implemented. The embodiments and the features of the embodiments can be combined without conflict, and the technical solutions formed are all within the scope of the present invention.
A method of implementing seismic data sharing, comprising: defining a data format in a preset file to obtain a first format definition file aiming at seismic data, wherein the preset file is a protocol for serialization; serializing the seismic data to obtain a binary data file by referring to the first format definition file; the binary data file is shared among a plurality of different computer systems. The binary data file has better disk space utilization rate and quick data access characteristic, the binary data file can be conveniently provided with a definite format by the method, and the binary data file can be better shared in a computer system.
The invention is further illustrated by the following specific examples.
As shown in fig. 1, a method for implementing seismic data sharing according to an embodiment of the present invention includes:
and S1, defining a data format in a preset file to obtain a first format definition file aiming at the seismic data, wherein the preset file is a protocol for serialization.
Specifically, the preset file includes an XML file. And writing the format definition of the binary data in the XML file, wherein the XML format file written with the format definition of the binary data is the first format definition file. The first format definition file is a generic protocol that is suitable for serialized processing of seismic data.
For seismic data, defining a data format in a preset file to obtain a first format definition file, wherein the first format definition file comprises: in the XML file, a first format definition file is obtained by defining a data format of an array of seismic data by using a tag < DataFormat > and a tag < Param >.
The data description information in the XML file starts with a tag < DataFormat >, wherein the ByteOrder attribute represents the bytecode of the data during serialization, and the reference value is bignendian (big endian) and LittleEndian (little endian).
Each data item starts with a tag < Param >, name indicates the name of the data item, type indicates the type of the data item (including int, float, double, char, etc.), and replicated indicates whether the data is an array (yes, no).
The seismic data may include: float type data, int type data, double type data, and char type data.
Assuming that the seismic data to be serialized includes a float array and data of int type is used to describe the length of the float array, the data type can be defined as follows:
Figure BDA0002159324480000041
the binary data body may be format defined with reference to the above examples.
And S2, serializing the seismic data to obtain a binary data file by referring to the first format definition file.
Specifically, the method for obtaining a binary data file by serializing seismic data with reference to a first format definition file comprises the following steps: and writing the array length and the array data of the seismic data into a binary data file in sequence by referring to the first format definition file.
According to the previous example, the array length of seismic data is first written to the binary data file, and then the array data is written to the binary data file.
S3, sharing the binary data file among a plurality of different computer systems.
By the method, the binary data file can be conveniently provided with a clear format, is particularly suitable for seismic data, and is provided for sharing in a computer system.
The binary data file is suitable for sharing common seismic data, can be used for quickly accessing data, has a better utilization rate of a disk space, and is convenient for cooperative processing of the seismic data. The seismic data can be shared in different operating systems and programming environments, and the working efficiency of data processing personnel is greatly improved.
The method for realizing seismic data sharing can be used for serializing seismic data into a binary data file, further deserializing the binary data file into target seismic data, and processing the seismic data in different computer systems by data processing personnel. In order to cooperatively process the seismic data by data processing personnel, the serialization processing and the deserialization processing are adaptive, namely the contents of the target seismic data and the seismic data obtained after the seismic data are serialized and deserialized are the same.
Referring to fig. 2, an embodiment of the present invention further discloses a method for implementing seismic data sharing, including:
and S4, defining a data format in a preset file to obtain a second format definition file aiming at a binary data file obtained by serializing the seismic data, wherein the preset file is a protocol for deserialization.
Specifically, the preset file includes an XML file. And writing the format definition of the binary data in the XML file, wherein the XML format file written with the format definition of the binary data is the second format definition file. The second format definition file is a generic protocol suitable for deserialization of seismic data.
For example, the same data format as the first format definition file is defined in the XML format file to obtain the second format definition file. The first format definition file and the second format definition file may be the same, which may be used for serialization or deserialization. And writing the format definition of the binary data in the XML format file, wherein the XML format file written with the format definition of the binary data is the second format definition file.
And S5, deserializing the binary data file with reference to the second format definition file to obtain the target seismic data, wherein the processing of the seismic data into the binary data file by serialization and the processing of the binary data file into the target seismic data by deserialization are adapted.
Specifically, the first format definition file and the second format definition file are the same, the seismic data are serialized to obtain a binary data file by referring to the first format definition file, the binary data file is deserialized to obtain target seismic data by referring to the second format definition file, and the serialization processing and the deserialization processing are adaptive, namely the target seismic data and the seismic data obtained after the seismic data are serialized and deserialized have the same content.
Continuing with the previous example, the length of the float array is obtained by reading the size of (int) bytes and converting the size into integer value array _ size. Then, the size of bytes (float) array size is read and converted into float array, i.e. seismic data.
By the method, the binary data file can be deserialized into the target seismic data, so that the seismic data can be cooperatively processed in different computer systems.
Further, the method of processing seismic data further comprises:
and if the byte code of the computer system environment is the same as the byte code of the data format defined in the XML file, deserializing the binary data file with reference to the second format definition file to obtain the target seismic data.
If the byte code of the computer system environment is different from the byte code of the data format defined in the XML file, performing byte code conversion on data obtained by deserializing the binary data file with reference to the second format definition file, and obtaining target seismic data after the byte code conversion, for example, converting the byte code into a big-end byte order and a small-end byte order.
Specifically, the byte codes in the binary data file are converted from big-endian to little-endian or vice versa, so that the byte codes in the binary data file are the same as the deserialization environment byte codes.
And S6, storing the target seismic data into the memories of a plurality of different computer systems to realize sharing. Therefore, target seismic data can be read from the memories of a plurality of different computer systems and further processed, and cooperative processing is realized. The seismic data can be shared in different operating systems and programming environments, and the working efficiency of data processing personnel is greatly improved.
The embodiment of the invention discloses a storage medium, which stores a computer program, and the computer program realizes any one of the methods when being executed by a processor. Wherein the computer program comprises: defining a data format in a preset file to obtain a first format definition file aiming at seismic data, wherein the preset file is a protocol for serialization; serializing the seismic data to obtain a binary data file by referring to the first format definition file; the steps of sharing the binary data file in a plurality of different computer systems are the same as the steps of the above method for processing seismic data, and are not repeated herein.
Alternatively, the computer program comprises: defining a data format in a preset file to obtain a second format definition file aiming at a binary data file obtained by serializing seismic data, wherein the preset file is a protocol for deserialization;
deserializing the binary data file with reference to the second format definition file to obtain target seismic data, wherein processing the seismic data into the binary data file by the serialization and processing the binary data file into the target seismic data by the deserialization are adapted; the step of storing the target seismic data in the memories of a plurality of different computer systems to realize sharing is the same as the step of the above method for processing seismic data, and is not described herein again.
The above description is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of implementing seismic data sharing, comprising:
defining a data format in a preset file to obtain a first format definition file aiming at seismic data, wherein the preset file is a protocol for serialization;
serializing the seismic data to obtain a binary data file by referring to the first format definition file;
the binary data file is shared among a plurality of different computer systems.
2. The method of processing seismic data of claim 1, wherein the pre-set file comprises an XML file.
3. The method of processing seismic data of claim 2, wherein defining the data format in a predetermined file for the seismic data to obtain a first format definition file comprises:
in the XML file, a first format definition file is obtained by defining a data format of an array of seismic data by using a tag < DataFormat > and a tag < Param >.
4. The method of processing seismic data according to claim 3, wherein serializing the seismic data into a binary data file with reference to said first format definition file comprises:
and writing the array length and the array data of the seismic data into a binary data file in sequence by referring to the first format definition file.
5. The method of processing seismic data of claim 1, wherein the seismic data comprises: float type data, int type data, double type data, and char type data.
6. A method of implementing seismic data sharing, comprising:
defining a data format in a preset file to obtain a second format definition file aiming at a binary data file obtained by serializing seismic data, wherein the preset file is a protocol for deserialization;
deserializing the binary data file with reference to the second format definition file to obtain target seismic data, wherein processing the seismic data into the binary data file by the serialization and processing the binary data file into the target seismic data by the deserialization are adaptive;
and storing the target seismic data into the memories of a plurality of different computer systems to realize sharing.
7. The method of processing seismic data of claim 6, wherein the pre-set file comprises an XML file.
8. The method of processing seismic data of claim 7, further comprising:
and if the byte code of the computer system environment is different from the byte code of the data format defined in the XML file, carrying out byte code conversion on the binary data file.
9. The method of processing seismic data of claim 8, wherein byte code converting the binary data file comprises:
and converting the byte codes in the binary data file from big endian to little endian or from little endian to big endian.
10. A storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 9.
CN201910727217.5A 2019-08-07 2019-08-07 Method for realizing seismic data sharing and storage medium Pending CN112347063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910727217.5A CN112347063A (en) 2019-08-07 2019-08-07 Method for realizing seismic data sharing and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910727217.5A CN112347063A (en) 2019-08-07 2019-08-07 Method for realizing seismic data sharing and storage medium

Publications (1)

Publication Number Publication Date
CN112347063A true CN112347063A (en) 2021-02-09

Family

ID=74367310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910727217.5A Pending CN112347063A (en) 2019-08-07 2019-08-07 Method for realizing seismic data sharing and storage medium

Country Status (1)

Country Link
CN (1) CN112347063A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221556A (en) * 2008-02-01 2008-07-16 中国建设银行股份有限公司 Method and device for XML document analysis
CN101256561A (en) * 2007-03-02 2008-09-03 阿里巴巴集团控股有限公司 Method, apparatus and system for storing and accessing database data
CN103699667A (en) * 2013-12-24 2014-04-02 天津大学 Web service multi-dimensional semantic model building method
CN103699633A (en) * 2013-12-23 2014-04-02 Tcl集团股份有限公司 Method and system for utilizing xml to realize generalization data exchange
CN103699391A (en) * 2013-12-30 2014-04-02 天津大学 Web service transformation method from traditional web services to multi-dimensional semantic models
CN103901468A (en) * 2014-03-18 2014-07-02 中国石油集团川庆钻探工程有限公司地球物理勘探公司 Seismic data processing method and device
CN104486396A (en) * 2014-12-10 2015-04-01 中国电信集团系统集成有限责任公司 Cross-platform network data transmission method
CN105320513A (en) * 2014-07-31 2016-02-10 中国石油化工股份有限公司 I/O (input/output) method suitable for any SEG-Y seismic data
CN105572729A (en) * 2015-12-10 2016-05-11 北京中矿大地地球探测工程技术有限公司 Distributed seismograph data decompilation method
CN106227852A (en) * 2016-07-28 2016-12-14 中国石油天然气集团公司 The recognition methods of seismic prospecting performance data file and device
CN107832315A (en) * 2017-06-12 2018-03-23 中国石油化工股份有限公司 The management method of oilfield enterprise's exploration and development volume data
CN109189704A (en) * 2018-08-07 2019-01-11 西北工业大学 A kind of general purpose interface bus adaptation method and device
CN109947705A (en) * 2017-11-28 2019-06-28 中国石油化工股份有限公司 A kind of access System and method for of petroleum works data

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256561A (en) * 2007-03-02 2008-09-03 阿里巴巴集团控股有限公司 Method, apparatus and system for storing and accessing database data
CN101221556A (en) * 2008-02-01 2008-07-16 中国建设银行股份有限公司 Method and device for XML document analysis
CN103699633A (en) * 2013-12-23 2014-04-02 Tcl集团股份有限公司 Method and system for utilizing xml to realize generalization data exchange
CN103699667A (en) * 2013-12-24 2014-04-02 天津大学 Web service multi-dimensional semantic model building method
CN103699391A (en) * 2013-12-30 2014-04-02 天津大学 Web service transformation method from traditional web services to multi-dimensional semantic models
CN103901468A (en) * 2014-03-18 2014-07-02 中国石油集团川庆钻探工程有限公司地球物理勘探公司 Seismic data processing method and device
CN105320513A (en) * 2014-07-31 2016-02-10 中国石油化工股份有限公司 I/O (input/output) method suitable for any SEG-Y seismic data
CN104486396A (en) * 2014-12-10 2015-04-01 中国电信集团系统集成有限责任公司 Cross-platform network data transmission method
CN105572729A (en) * 2015-12-10 2016-05-11 北京中矿大地地球探测工程技术有限公司 Distributed seismograph data decompilation method
CN106227852A (en) * 2016-07-28 2016-12-14 中国石油天然气集团公司 The recognition methods of seismic prospecting performance data file and device
CN107832315A (en) * 2017-06-12 2018-03-23 中国石油化工股份有限公司 The management method of oilfield enterprise's exploration and development volume data
CN109947705A (en) * 2017-11-28 2019-06-28 中国石油化工股份有限公司 A kind of access System and method for of petroleum works data
CN109189704A (en) * 2018-08-07 2019-01-11 西北工业大学 A kind of general purpose interface bus adaptation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡海峰;: "基于XML的Access自动阅卷技术研究与实现", 甘肃联合大学学报(自然科学版), no. 2, 10 July 2009 (2009-07-10), pages 44 - 49 *

Similar Documents

Publication Publication Date Title
CN106570018B (en) Serialization and deserialization method, device and system and electronic equipment
US11494339B2 (en) Multi-level compression for storing data in a data store
US9977802B2 (en) Large string access and storage
CN108205577B (en) Array construction method, array query method, device and electronic equipment
Koranne et al. Hierarchical data format 5: HDF5
US9262495B2 (en) Dimensional reduction mechanisms for representing massive communication network graphs for structural queries
US10534753B2 (en) Caseless file lookup in a distributed file system
US20180239788A1 (en) Paged column dictionary
CN106874459B (en) Streaming data storage method and device
CN102541927A (en) Method and device for realizing data cache
CN111427847A (en) Indexing and query method and system for user-defined metadata
CN110109894A (en) Implementation method, device, storage medium and the equipment of non-relational database
CN105320513A (en) I/O (input/output) method suitable for any SEG-Y seismic data
CN103746705A (en) Method for compressing vector data
CN103942301A (en) Distributed file system oriented to access and application of multiple data types
US8024374B2 (en) Computer object conversion using an intermediate object
CN107590077B (en) Spark load memory access behavior tracking method and device
CN109947705B (en) System and method for accessing petroleum engineering data
CN107273443B (en) Mixed indexing method based on metadata of big data model
CN112347063A (en) Method for realizing seismic data sharing and storage medium
CN104111899A (en) Cache data storage method and system and cache data reading method
CN110659292A (en) Spark and Ignite-based distributed real-time graph construction and query method and system
US10509578B2 (en) Logical address space for storage resource pools
US20140074785A1 (en) Open file rebalance
US8566814B2 (en) Transporting object packets in a nested system landscape

Legal Events

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