CN116467256A - Logging data HDS conversion DLIS format conversion method and system - Google Patents

Logging data HDS conversion DLIS format conversion method and system Download PDF

Info

Publication number
CN116467256A
CN116467256A CN202310239685.4A CN202310239685A CN116467256A CN 116467256 A CN116467256 A CN 116467256A CN 202310239685 A CN202310239685 A CN 202310239685A CN 116467256 A CN116467256 A CN 116467256A
Authority
CN
China
Prior art keywords
hds
file
dlis
format
data
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
CN202310239685.4A
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.)
BEIJING HUANDING ENERGY SERVICES
Hebei Huanding Petroleum Equipment Co ltd
Original Assignee
BEIJING HUANDING ENERGY SERVICES
Hebei Huanding Petroleum Equipment Co ltd
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 BEIJING HUANDING ENERGY SERVICES, Hebei Huanding Petroleum Equipment Co ltd filed Critical BEIJING HUANDING ENERGY SERVICES
Priority to CN202310239685.4A priority Critical patent/CN116467256A/en
Publication of CN116467256A publication Critical patent/CN116467256A/en
Pending legal-status Critical Current

Links

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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention provides a method and a system for converting logging data into a DLIS format, wherein the method comprises the following steps: creating a region of a process address space when reading an HDS format source file through a memory mapping file, and submitting a physical memory in which the HDS file existing on a disk is located to the region of the process address space; mapping the HDS file on the disk to the process address space and establishing a data index; and constructing a DLIS converter object by adopting object-oriented programming, and performing DLIS format conversion operation on the HDS file. The method for converting the HDS into the DLIS format of the logging data can quickly read the converted file data, realize the direct conversion of the logging data file with the HDS format into the DLIS data format, greatly save the time of field engineers and improve the conversion efficiency of the data format.

Description

Logging data HDS conversion DLIS format conversion method and system
Technical Field
The invention relates to the technical field of logging, in particular to a method and a system for converting HDS (digital visual system) into DLIS (digital visual system) format of HDS data index logging data.
Background
The logging software of the HDLOG (logging collection processing platform of the tripod company) is a logging collection platform developed by the applicant, the logging data format stored by the logging software is HDS (logging file data format of the tripod company), and the logging data is submitted to an oilfield for interpretation after logging operation is completed, so that the logging data format supported by the oilfield interpretation system is needed.
The DLIS data format is the data format of the current foreign Schlumberger Bei Xiece well software (Schlumberger), and the Schlumberger well logging interpretation platform Techlog can be directly imported. In order to perform data interaction with a logging interpretation platform technog used in the domestic part of oil fields, data format conversion is a problem to be solved by HDLOG.
In the prior art, a logging field engineer converts an HDS data format into an LAS data format, and then converts the LAS data format into a DLIS format through third party software, as shown in fig. 1 of the accompanying drawings, the HDS format cannot be directly converted into the DLIS format, and the HDS format can be converted into the DLIS format only by using third party software such as forward.
Existing logging data format conversion methods are time consuming and laborious, and may lose some of the file information, such as header information and curve description, during the conversion process.
Disclosure of Invention
In view of the above, the present invention is directed to a method for converting HDS format of logging data into DLIS format, which directly converts the HDS format logging data file into DLIS format, and can quickly read the converted file data, so as to save time of field engineers and improve data format conversion efficiency.
The invention provides a method for converting logging data into a DLIS format by HDS, which comprises the following steps:
s1, creating a region of a process address space when reading an HDS format source file through a memory mapping file, and submitting a physical memory in which the HDS file existing on a disk is located to the region of the process address space;
s2, mapping the HDS file on the disk to the process address space, and establishing a data index;
this feature of file memory mapping is well suited for managing large-sized files;
thus, when the HDS file stored on the disk is processed, I/O operation on the file is not needed, and the converted file data can be read quickly; when a large amount of data is processed, the processing efficiency of data indexing and repacking is greatly improved, and a quite important effect is achieved;
s3, constructing a DLIS converter object by adopting object-oriented programming, and performing DLIS format conversion operation on the HDS file.
Further, the method of mapping the HDS file on the disk to the process address space in step S2 includes:
and establishing mapping association between all or part of the content of the HDS file on the disk and the created region of the process address space through file mapping, directly accessing the mapped HDS file without executing file I/O operation or buffering the content of the HDS file.
Further, the method of step S3 for performing DLIS format conversion operation on the HDS file includes:
by adopting an object-oriented design, a DLIS file class, an HDS file class and a DLIS converter class are established, and relevant attributes such as file header, output curve list, time depth data body, curve data index and the like are encapsulated in relevant classes.
In object-oriented programming, the most basic unit of encapsulation is an object, so that achieving the "best state" of "high cohesion, low coupling" of related components of a software structure is the most basic goal that needs to be achieved by the encapsulation of object-oriented design techniques.
The structure of the DLIS converter class and the format file conversion flow and page display are as shown in fig. 3 of the accompanying drawings:
further, the method of step S3 for performing DLIS format conversion operation on the HDS file further includes:
and adding related methods such as reading of the HDS format file, establishment of an HDS data index, conversion of a DLIS file header, repacking of data and the like.
The DLIS converter object constructed by the method can realize file format conversion easily and rapidly, a developer only needs to carry out conversion related operation through a channel outside the package, the steps of digital format conversion operation are simplified, and the data format conversion efficiency is improved.
Further, the step S3 converts the DLIS format of the HDS file into direct conversion, and develops WINFORM application implementation using C# language.
The invention also provides a system for converting the HDS format of the logging data into the DLIS format, which executes the method for converting the HDS format of the logging data into the DLIS format, and comprises the following steps:
creating a process address space module: the method comprises the steps of creating a region of a process address space when reading an HDS format source file through a memory mapping file, and submitting a physical memory in which the HDS file existing on a disk is located to the region of the process address space;
a file mapping module: mapping the HDS file on the disk to the process address space and establishing a data index;
a data format conversion module: and constructing a DLIS converter object by adopting object-oriented programming, and performing DLIS format conversion operation on the HDS file.
The present invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of a logging data HDS conversion DLIS format conversion method as described above, and a logging data HDS conversion DLIS format conversion system as described above.
The present invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed implements the steps of the logging data HDS conversion DLIS format conversion method as described above, and the logging data HDS conversion DLIS format conversion system as described above.
Compared with the prior art, the invention has the beneficial effects that:
the method for converting the HDS into the DLIS format of the logging data can quickly read the converted file data, realize the direct conversion of the logging data file with the HDS format into the DLIS data format, greatly save the time of field engineers and improve the conversion efficiency of the data format.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention.
In the drawings:
FIG. 1 is a schematic diagram of a prior art HDS data format conversion DLIS data format conversion scheme;
FIG. 2 is a schematic diagram of a computer device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a converting manner of converting an HDS data format into a DLIS data format according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an embodiment of the HDS data format conversion DLIS data format operation;
FIG. 5 is a diagram of a converting operation interface for converting HDS data format into DLIS data format according to an embodiment of the present invention;
FIG. 6 is a flow chart of a method for converting HDS to DLIS format of log data according to the present invention.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and products consistent with some aspects of the disclosure as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
An embodiment of the present invention provides a method for converting logging data into DLIS format, as shown in fig. 6, including the following steps:
s1, creating a region of a process address space when reading an HDS format source file through a memory mapping file, and submitting a physical memory in which the HDS file existing on a disk is located to the region of the process address space;
s2, mapping the HDS file on the disk to the process address space, and establishing a data index;
all or part of the content of the HDS file on the disk is mapped with the created area of the process address space through file mapping, the mapped HDS file is directly accessed, file I/O operation is not required to be executed, and buffer processing is not required to be carried out on the content of the HDS file; this feature of file memory mapping is well suited for managing large-sized files;
thus, when the HDS file stored on the disk is processed, I/O operation on the file is not needed, and the converted file data can be read quickly; when a large amount of data is processed, the processing efficiency of data indexing and repacking is greatly improved, and a quite important effect is achieved;
s3, constructing a DLIS converter object by adopting object-oriented programming, and performing DLIS format conversion operation on the HDS file.
FIG. 3 is a schematic diagram showing a conversion mode of converting an HDS data format into a DLIS data format according to an embodiment of the present invention;
the method for performing DLIS format conversion operation on the HDS file comprises the following steps:
an object-oriented design is adopted, a DLIS file class, an HDS file class and a DLIS converter class are established, and relevant attributes such as file header, output curve list, time depth data body, curve data index and the like are packaged in relevant classes;
in object-oriented programming, the most basic unit of encapsulation is an object, so that achieving the "best state" of "high cohesion, low coupling" of related components of a software structure is the most basic goal that needs to be achieved by the encapsulation of object-oriented design techniques.
The structure of the DLIS converter class and the format file conversion flow and page display are as shown in fig. 3 of the accompanying drawings:
the method for performing DLIS format conversion operation on the HDS file further comprises the following steps:
adding related methods such as reading of HDS format files, establishment of HDS data indexes, conversion of DLIS file heads, repacking of data and the like;
the DLIS converter object constructed by the method can realize file format conversion easily and rapidly, a developer only needs to carry out conversion related operation through a channel outside the package, the steps of digital format conversion operation are simplified, and the data format conversion efficiency is improved.
In this embodiment, DLIS format conversion is performed on the HDS file to direct conversion, and the WINFORM application is developed using the c# language.
FIG. 4 is a schematic diagram illustrating the operation of converting the HDS data format into the DLIS data format according to an embodiment of the present invention; referring to FIG. 5, a diagram of a conversion interface for converting HDS data format to DLIS data format according to an embodiment of the present invention is shown.
The embodiment of the invention also provides a system for converting the logging data into the DLIS format, which executes the method for converting the logging data into the DLIS format, and comprises the following steps:
creating a process address space module: the method comprises the steps of creating a region of a process address space when reading an HDS format source file through a memory mapping file, and submitting a physical memory in which the HDS file existing on a disk is located to the region of the process address space;
a file mapping module: mapping the HDS file on the disk to the process address space and establishing a data index;
a data format conversion module: and constructing a DLIS converter object by adopting object-oriented programming, and performing DLIS format conversion operation on the HDS file.
The method for converting the logging data into the DLIS format can quickly read the converted file data, realize the direct conversion of the logging data file with the HDS format into the DLIS data format, greatly save the time of field engineers and improve the conversion efficiency of the data format.
The embodiment of the invention also provides a computer device, and fig. 2 is a schematic structural diagram of the computer device provided by the embodiment of the invention; referring to fig. 2 of the drawings, the computer apparatus includes: input means 23, output means 24, memory 22 and processor 21; the memory 22 is configured to store one or more programs; when executed by the one or more processors 21, cause the one or more processors 21 to implement the logging data HDS conversion DLIS format conversion method as provided by the above embodiments; wherein the input device 23, the output device 24, the memory 22 and the processor 21 may be connected by a bus or otherwise, for example in fig. 2 by a bus connection.
The memory 22 is used as a readable storage medium of a computing device and can be used for storing a software program and a computer executable program, and is used for storing program instructions corresponding to the method for converting the logging data into the HDS format according to the embodiment of the invention; the memory 22 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the device, etc.; in addition, memory 22 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device; in some examples, memory 22 may further comprise memory located remotely from processor 21, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 23 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function control of the device; the output device 24 may include a display device such as a display screen.
The processor 21 executes various functional applications of the apparatus and data processing, i.e., implements the above-described logging data HDS conversion DLIS format conversion method, by running software programs, instructions and modules stored in the memory 22.
The computer equipment provided by the embodiment can be used for executing the method for converting the logging data into the HDS format and converting the DLIS format, and has corresponding functions and beneficial effects.
Embodiments of the present invention also provide a storage medium containing computer executable instructions which, when executed by a computer processor, are for performing a logging data HDS conversion DLIS format conversion method as provided by the above embodiments, the storage medium being any of various types of memory devices or storage devices, the storage medium comprising: mounting media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, lanbas (Rambus) RAM, etc.; nonvolatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc.; the storage medium may also include other types of memory or combinations thereof; in addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a second, different computer system, the second computer system being connected to the first computer system through a network (such as the internet); the second computer system may provide program instructions to the first computer for execution. Storage media includes two or more storage media that may reside in different locations (e.g., in different computer systems connected by a network). The storage medium may store program instructions (e.g., embodied as a computer program) executable by one or more processors.
Of course, the storage medium containing computer executable instructions provided in the embodiments of the present invention is not limited to the method for converting the log data into the HDS format of DLIS described in the above embodiments, and may also perform the related operations in the method for converting the log data into the HDS format of DLIS provided in any embodiment of the present invention.
Thus far, the technical solution of the present invention has been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of protection of the present invention is not limited to these specific embodiments. Equivalent modifications and substitutions for related technical features may be made by those skilled in the art without departing from the principles of the present invention, and such modifications and substitutions will be within the scope of the present invention.
The foregoing description is only of the preferred embodiments of the invention and is not intended to limit the invention; various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for HDS conversion of log data to DLIS format conversion comprising the steps of:
s1, creating a region of a process address space when reading an HDS format source file through a memory mapping file, and submitting a physical memory in which the HDS file existing on a disk is located to the region of the process address space;
s2, mapping the HDS file on the disk to the process address space, and establishing a data index;
s3, constructing a DLIS converter object by adopting object-oriented programming, and performing DLIS format conversion operation on the HDS file.
2. The method of claim 1, wherein the step S2 of mapping the HDS files on the disk to the process address space comprises:
and establishing mapping association between all or part of the content of the HDS file on the disk and the created region of the process address space through file mapping, directly accessing the mapped HDS file without executing file I/O operation or buffering the content of the HDS file.
3. The method of claim 1, wherein the step S3 of performing DLIS format conversion operations on the HDS file comprises:
an object-oriented design is adopted, a DLIS file class, an HDS file class and a DLIS converter class are established, and file header, an output curve list, a time depth data body and curve data index related attributes are packaged in the class.
4. The method of claim 3 wherein said method of performing DLIS format conversion operations on said HDS files of step S3 further comprises:
and adding an HDS format file for reading, establishing an HDS data index, converting a DLIS file header, and repacking data.
5. The method of claim 1, wherein said step S3 of converting said HDS file to DLIS format is performed using the c# language development WINFORM application.
6. A log data HDS conversion DLIS format conversion system, wherein a log data HDS conversion DLIS format conversion method according to any one of claims 1 to 5 is performed, comprising:
creating a process address space module: the method comprises the steps of creating a region of a process address space when reading an HDS format source file through a memory mapping file, and submitting a physical memory in which the HDS file existing on a disk is located to the region of the process address space;
a file mapping module: mapping the HDS file on the disk to the process address space and establishing a data index;
a data format conversion module: and constructing a DLIS converter object by adopting object-oriented programming, and performing DLIS format conversion operation on the HDS file.
7. A computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor performs the steps of the logging data HDS conversion DLIS format conversion method of any one of claims 1 to 5, and the logging data HDS conversion DLIS format conversion system of claim 6.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, performs the steps of the logging data HDS conversion DLIS format conversion method of any one of claims 1-5 and the logging data HDS conversion DLIS format conversion system of claim 6.
CN202310239685.4A 2023-03-14 2023-03-14 Logging data HDS conversion DLIS format conversion method and system Pending CN116467256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310239685.4A CN116467256A (en) 2023-03-14 2023-03-14 Logging data HDS conversion DLIS format conversion method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310239685.4A CN116467256A (en) 2023-03-14 2023-03-14 Logging data HDS conversion DLIS format conversion method and system

Publications (1)

Publication Number Publication Date
CN116467256A true CN116467256A (en) 2023-07-21

Family

ID=87181439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310239685.4A Pending CN116467256A (en) 2023-03-14 2023-03-14 Logging data HDS conversion DLIS format conversion method and system

Country Status (1)

Country Link
CN (1) CN116467256A (en)

Similar Documents

Publication Publication Date Title
CN107391653B (en) Distributed NewSQL database system and picture data storage method
JP6994071B2 (en) Comprehensive validation method for Protocol buffer-based projects
CN109471851B (en) Data processing method, device, server and storage medium
US11294973B2 (en) Codeless information service for abstract retrieval of disparate data
KR102287677B1 (en) Data accessing method, apparatus, device, and storage medium
CN106354483B (en) Data processing method and device and electronic equipment
CN107592358A (en) Application program interface calling method and device based on HTTP service
CN111475150B (en) Cross-language binding method, device, equipment and storage medium
CN109284108B (en) Unmanned vehicle data storage method and device, electronic equipment and storage medium
CN114036431A (en) Page cache skipping method and device, electronic equipment and storage medium
CN112970011B (en) Pedigree in record query optimization
CN105824647A (en) Form page generating method and device
US8990515B2 (en) Aliasing buffers
CN111309432A (en) Fault drilling method, device and system
CN105867886B (en) Method and device for writing table
CN107844360B (en) Method and device for executing application code by hard disk
CN116467256A (en) Logging data HDS conversion DLIS format conversion method and system
CN112541104A (en) Data capturing method and device
US8898625B2 (en) Optimized storage of function variables
US8826253B2 (en) Delayed insertion of safepoint-related code
US20200159641A1 (en) Debugging asynchronous functions
CN107643892B (en) Interface processing method, device, storage medium and processor
JP5546909B2 (en) Data processing system, method and program
CN112528273B (en) Medical data detection method, device, medium and electronic equipment
CN104360850A (en) Method and device for processing service code

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