A method and system for converting well logging data from HDS to DLIS format.
By using memory mapping and object-oriented design, HDS format logging data can be directly converted to DLIS format, solving the problems of time-consuming and laborious conversion and information loss in existing technologies, and achieving efficient data format conversion.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HEBEI HUANDING PETROLEUM EQUIP CO LTD
- Filing Date
- 2023-03-14
- Publication Date
- 2026-06-30
AI Technical Summary
In existing technologies, HDS format logging data cannot be directly converted to DLIS format. It requires conversion through third-party software, which is time-consuming, labor-intensive, and may result in the loss of file information.
Using memory-mapped file technology and object-oriented programming, HDS files are mapped to process address space regions, and DLIS converter objects are constructed to directly perform format conversion, avoiding file I/O operations. WinForms applications are developed using the C# language.
It enables direct conversion of HDS format well logging data files to DLIS format, improving data format conversion efficiency, saving time for field engineers, and simplifying operation procedures.
Smart Images

Figure CN116467256B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of well logging technology, and more specifically, to a method and system for converting HDS data to DLIS format for well logging data indexed by HDS. Background Technology
[0002] HDLOG (Huanding Company Logging Acquisition and Processing Platform) logging software is a logging acquisition platform developed by the applicant. The logging software saves logging data in HDS (Huanding Company Logging File Data Format). After the logging operation is completed, the logging data is handed over to the oilfield for interpretation, which requires the logging data format supported by the oilfield interpretation system.
[0003] The DLIS data format is the same as that used by Schlumberger's logging software abroad, and can be directly imported into Schlumberger's Techlog logging interpretation platform. However, data format conversion is a problem that HDLOG needs to solve in order to interact with the Techlog logging interpretation platform used in some domestic oilfields.
[0004] Previously, the conversion of HDLOG logging data format involved the logging field engineer converting the HDS data format to LAS data format, and then using third-party software to convert the LAS data format to DLIS format. (See attached diagram.) Figure 1 As shown, HDS format cannot be directly converted to DLIS format; third-party software such as Forward.net is required for conversion.
[0005] Existing methods for converting well logging data formats are time-consuming and labor-intensive, and may lose some file information during the conversion process, such as file header information and curve descriptions. Summary of the Invention
[0006] Therefore, the purpose of this invention is to propose a method for converting well logging data from HDS to DLIS format, which can directly convert HDS format well logging data files into DLIS format and quickly read the converted file data, thereby saving time for field engineers and improving the efficiency of data format conversion.
[0007] This invention provides a method for converting well logging data from HDS to DLIS format, comprising the following steps:
[0008] S1. By using memory-mapped files, a region of the process address space is created when reading HDS format source files, and the physical memory where the HDS file that already exists on the disk is located is submitted to the region of the process address space.
[0009] S2. Map the HDS file on the disk to the process address space and establish a data index;
[0010] This characteristic of file memory mapping is very suitable for managing large files;
[0011] This eliminates the need for I / O operations when processing HDS files stored on disk, enabling rapid reading and conversion of file data. It significantly improves the efficiency of data indexing and repackaging when dealing with large amounts of data, playing a crucial role in this process.
[0012] S3. Using object-oriented programming, construct a DLIS converter object to perform DLIS format conversion on the HDS file.
[0013] Further, the method for mapping the HDS file on the disk to the process address space in step S2 includes:
[0014] File mapping establishes a mapping association between all or part of the contents of an HDS file on the disk and a region of the created process address space, allowing direct access to the mapped HDS file without performing file I / O operations or buffering the HDS file contents.
[0015] Furthermore, the method for performing DLIS format conversion on the HDS file in step S3 includes:
[0016] Using object-oriented design, DLIS file class, HDS file class, and DLIS converter class are established, and related attributes such as file header, output curve list, time depth data volume, and curve data index are encapsulated in the relevant classes.
[0017] In object-oriented programming, the most basic unit of encapsulation is the object. The most basic goal that encapsulation in object-oriented design technology needs to achieve is to enable the related components of the software structure to achieve the "optimal state" of "high cohesion and low coupling".
[0018] The structure of the DLIS converter class, the format file conversion process, and the page display are shown in the attached figure. Figure 3 As shown:
[0019] Furthermore, the method for performing DLIS format conversion on the HDS file in step S3 further includes:
[0020] Added methods for reading HDS format files, creating HDS data indexes, converting DLIS file headers, and repackaging data.
[0021] The DLIS converter object constructed using the method of this invention can easily and quickly achieve file format conversion. Developers only need to perform conversion-related operations through the external channel, which simplifies the steps of digital format conversion operations and improves the efficiency of data format conversion.
[0022] Furthermore, step S3, which converts the HDS file to DLIS format for direct conversion, is implemented using a WinForms application developed in C#.
[0023] This invention also provides a well logging data HDS to DLIS format conversion system, which performs the well logging data HDS to DLIS format conversion method as described above, including:
[0024] The process address space creation module is used to create a region of the process address space when reading HDS format source files through memory-mapped files, and to submit the physical storage where the HDS file already exists on the disk is located to the region of the process address space.
[0025] File mapping module: used to map HDS files on the disk to the process address space and establish a data index;
[0026] Data format conversion module: Using object-oriented programming, a DLIS converter object is constructed to perform DLIS format conversion on the HDS file.
[0027] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of the well logging data HDS to DLIS format conversion method as described above, and the well logging data HDS to DLIS format conversion system as described above.
[0028] The present invention also provides a computer device, the computer device including a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the well logging data HDS to DLIS format conversion method as described above, and the well logging data HDS to DLIS format conversion system as described above.
[0029] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0030] The HDS to DLIS format conversion method of this invention can quickly read and convert file data, and directly convert HDS format well logging data files into DLIS data format, which greatly saves the time of field engineers and improves the efficiency of data format conversion. Attached Figure Description
[0031] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention.
[0032] In the attached diagram:
[0033] Figure 1 A schematic diagram illustrating the conversion method from HDS data format to DLIS data format in existing technologies;
[0034] Figure 2 This is a schematic diagram of the configuration of a computer device according to an embodiment of the present invention;
[0035] Figure 3 This is a schematic diagram illustrating the HDS data format to DLIS data format conversion method according to an embodiment of the present invention;
[0036] Figure 4 This is a schematic diagram illustrating the operation process of converting HDS data format to DLIS data format according to an embodiment of the present invention;
[0037] Figure 5 This is a diagram of the interface for converting HDS data format to DLIS data format according to an embodiment of the present invention.
[0038] Figure 6 This is a flowchart of a method for converting well logging data from HDS to DLIS format according to the present invention. Detailed Implementation
[0039] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and products consistent with some aspects of this disclosure as detailed in the appended claims.
[0040] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0041] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0042] The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0043] This invention provides a method for converting well logging data from HDS to DLIS format. (See also...) Figure 6 As shown, it includes the following steps:
[0044] S1. By using memory-mapped files, a region of the process address space is created when reading HDS format source files, and the physical memory where the HDS file that already exists on the disk is located is submitted to the region of the process address space.
[0045] S2. Map the HDS file on the disk to the process address space and establish a data index;
[0046] File mapping establishes a mapping association between all or part of the contents of an HDS file on disk and a region of the process's address space, allowing direct access to the mapped HDS file without performing file I / O operations or buffering the HDS file content. This characteristic of file memory mapping is very suitable for managing large files.
[0047] This eliminates the need for I / O operations when processing HDS files stored on disk, enabling rapid reading and conversion of file data. It significantly improves the efficiency of data indexing and repackaging when dealing with large amounts of data, playing a crucial role in this process.
[0048] S3. Using object-oriented programming, construct a DLIS converter object to perform DLIS format conversion on the HDS file.
[0049] See Figure 3 The diagram shown is a schematic representation of the HDS data format to DLIS data format conversion method according to an embodiment of the present invention.
[0050] The method for performing DLIS format conversion on the HDS file includes:
[0051] Using object-oriented design, we created DLIS file class, HDS file class, and DLIS converter class, and encapsulated related attributes such as file header, output curve list, time depth data volume, and curve data index in the relevant classes;
[0052] In object-oriented programming, the most basic unit of encapsulation is the object. The most basic goal that encapsulation in object-oriented design technology needs to achieve is to enable the related components of the software structure to achieve the "optimal state" of "high cohesion and low coupling".
[0053] The structure of the DLIS converter class, the format file conversion process, and the page display are shown in the attached figure. Figure 3 As shown:
[0054] The method for performing DLIS format conversion on the HDS file further includes:
[0055] Add methods for reading HDS format files, creating HDS data indexes, converting DLIS file headers, and repackaging data.
[0056] The DLIS converter object constructed using the method of this invention can easily and quickly achieve file format conversion. Developers only need to perform conversion-related operations through the external channel, which simplifies the steps of digital format conversion operations and improves the efficiency of data format conversion.
[0057] In this embodiment, the HDS file is converted from DLIS format to direct conversion, which is implemented using a WinForm application developed in C#.
[0058] See Figure 4 The diagram shown is a schematic representation of the operation flow for converting HDS data format to DLIS data format according to an embodiment of the present invention; see also Figure 5 The diagram shown is an interface diagram of the HDS data format to DLIS data format conversion operation according to an embodiment of the present invention.
[0059] This invention also provides a well logging data HDS to DLIS format conversion system, which performs the well logging data HDS to DLIS format conversion method as described above, including:
[0060] The process address space creation module is used to create a region of the process address space when reading HDS format source files through memory-mapped files, and to submit the physical storage where the HDS file already exists on the disk is located to the region of the process address space.
[0061] File mapping module: used to map HDS files on the disk to the process address space and establish a data index;
[0062] Data format conversion module: Using object-oriented programming, a DLIS converter object is constructed to perform DLIS format conversion on the HDS file.
[0063] The well logging data HDS to DLIS format conversion method of this invention can quickly read the conversion file data and directly convert HDS format well logging data files into DLIS data format, which greatly saves the time of field engineers and improves the data format conversion efficiency.
[0064] This invention also provides a computer device. Figure 2 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention; see the attached drawing. Figure 2 As shown, the computer device includes: an input device 23, an output device 24, a memory 22, and a processor 21; the memory 22 is used to store one or more programs; when the one or more programs are executed by the one or more processors 21, the one or more processors 21 implement the well logging data HDS to DLIS format conversion method provided in the above embodiment; wherein the input device 23, the output device 24, the memory 22, and the processor 21 can be connected via a bus or other means. Figure 2 Taking the example of a connection between China and Israel via a bus.
[0065] The memory 22, as a read / write storage medium for a computing device, can be used to store software programs and computer-executable programs, such as the program instructions corresponding to the HDS to DLIS format conversion method for well logging data described in this embodiment of the invention. The memory 22 may mainly include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device. Furthermore, the memory 22 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 22 may further include memory remotely located relative to the processor 21, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0066] Input device 23 can be used to receive input digital or character information, and generate key signal inputs related to user settings and function control of the device; output device 24 may include display devices such as a display screen.
[0067] The processor 21 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 22, thereby realizing the above-mentioned method for converting well logging data from HDS to DLIS format.
[0068] The computer equipment provided above can be used to execute the well logging data HDS to DLIS format conversion method provided in the above embodiments, and has corresponding functions and beneficial effects.
[0069] This invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the well logging data HDS to DLIS format conversion method provided in the above embodiments. The storage medium can be any type of memory device or storage device, including: mounting media such as CD-ROM, floppy disk, or magnetic tape; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements; the storage medium may also include other types of memory or combinations thereof; furthermore, the storage medium may reside in a first computer system in which the program is executed, or it may reside in a different second computer system connected to the first computer system via a network (such as the Internet); the second computer system can provide program instructions to the first computer for execution. The storage medium includes two or more storage media that can reside in different locations (e.g., in different computer systems connected via a network). The storage medium can store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.
[0070] Of course, the computer-executable instructions provided in the embodiments of the present invention are not limited to the well logging data HDS to DLIS format conversion method described in the above embodiments, but can also perform related operations in the well logging data HDS to DLIS format conversion method provided in any embodiment of the present invention.
[0071] The technical solution of the present invention has been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of the present invention.
[0072] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for converting well logging data from HDS to DLIS format, characterized in that, Includes the following steps: S1. By using memory-mapped files, a region of the process address space is created when reading HDS format source files, and the physical memory where the HDS file that already exists on the disk is located is submitted to the region of the process address space. S2. Map the HDS file on the disk to the process address space and establish a data index; The method for mapping the HDS file on the disk to the process address space in step S2 includes: By using file mapping, all or part of the contents of the HDS file on the disk are mapped to a region of the process address space, allowing direct access to the mapped HDS file without performing file I / O operations or buffering the contents of the HDS file. S3. Using object-oriented programming, construct a DLIS converter object and perform DLIS format conversion on the HDS file; The method for performing DLIS format conversion on the HDS file in step S3 includes: Using object-oriented design, we created DLIS file class, HDS file class, and DLIS converter class, and encapsulated file header, output curve list, time depth data volume, and curve data index related attributes in the classes.
2. The method for converting well logging data from HDS to DLIS format according to claim 1, characterized in that, The method for performing DLIS format conversion on the HDS file in step S3 further includes: Added HDS format file reading, HDS data index creation, DLIS file header conversion, and data repackaging.
3. The method for converting well logging data from HDS to DLIS format according to claim 1, characterized in that, The S3 step of converting the HDS file to DLIS format for direct conversion is implemented using a WinForms application developed in C#.
4. A system for converting well logging data from HDS to DLIS format, characterized in that, Performing the well logging data HDS to DLIS format conversion method as described in any one of claims 1-3, comprising: The process address space creation module is used to create a region of the process address space when reading HDS format source files through memory-mapped files, and to submit the physical storage where the HDS file already exists on the disk is located to the region of the process address space. File mapping module: used to map HDS files on the disk to the process address space and establish a data index; Data format conversion module: Using object-oriented programming, a DLIS converter object is constructed to perform DLIS format conversion on the HDS file.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the well logging data HDS to DLIS format conversion method as described in any one of claims 1-3, and the well logging data HDS to DLIS format conversion system as described in claim 4.
6. A computer device, the computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the well logging data HDS to DLIS format conversion method as described in any one of claims 1-3, and the well logging data HDS to DLIS format conversion system as described in claim 4.