Lithology code batch conversion method suitable for Geoeast software

By designing a batch conversion method of lithology code suitable for Geoeast software, using C/C++ language to automatically read and replace code dictionaries in lithology description text, the conversion of lithology data in the existing technology is time-consuming, labor-intensive and easy. The error problem has achieved rapid and accurate batch conversion, improving work efficiency and accuracy.

CN119440545AInactive Publication Date: 2025-02-14PETROCHINA CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310952413.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-02-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the prior art converts the lithologic description data of the well recording lithology into codes that can be identified by the interpretation software, it requires manual search and replacement, which is time-consuming and labor-intensive and error-prone, making it difficult to achieve fast and accurate batch conversion.

Method used

Design a batch conversion method of lithologic code suitable for Geoeast software, and uses C/C++ language programming to automatically read, replace and output the computer system to realize batch conversion of lithologic description text. The method includes obtaining a lithologic color code dictionary, lithologic code dictionary, and dictionary of different lithologic display widths, and automatically replacing the original lithologic description text through code written in C/C++ to form a code file that is recognizable to the interpretation software.

Benefits of technology

It realizes fast and accurate batch conversion of lithologic description text, improves conversion efficiency, and enables the converted code to be directly identified by the interpretation software and loaded in batches, reducing the risk of human intervention and errors, and improving work timeliness and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440545A_ABST
    Figure CN119440545A_ABST
Patent Text Reader

Abstract

A lithologic code batch conversion method suitable for Geoeast software belongs to the technical field of logging lithologic code batch conversion methods, and comprises the following steps: S1, obtaining a lithologic color code dictionary; s2, acquiring a lithologic code dictionary; s3, obtaining different lithology display width dictionaries; and S4, outputting content by using a batch conversion method to form an interpretation software recognizable code file. According to the method, batch conversion of colors, lithological characters and display lengths of different lithological characters in interpretation software can be carried out on the lithological character description texts, the dictionaries and the lithological character description texts are read through the lithological character code batch conversion method, and the conversion efficiency is integrally improved through the method; by means of the lithologic code conversion method, the converted lithologic codes can meet the condition that the converted lithologic codes are directly recognized by interpretation software and loaded in batches and are converted into the lithologic codes which can be directly recognized by the interpretation software and loaded in batches, and accuracy is guaranteed while working time efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of logging lithology code batch conversion methods, and in particular relates to a lithology code batch conversion method suitable for Geoeast software. Background Art

[0002] The logging lithology description data is the data that can most directly reflect the vertical lithology changes of each well in addition to the logging curve. In some interpretation software, the lithology description file can be projected onto the seismic profile in the form of a graphic according to the time-depth relationship, so that people can have an intuitive understanding of the corresponding relationship between lithology and three-dimensional seismic data at a glance, which is conducive to improving research understanding. However, in the interpretation software, before loading the lithology data, the lithology data needs to be converted from the lithology description text to the lithology character code that can be recognized by the interpretation software. The conventional method is to use a text editor to search and replace the lithology description text one by one according to the color, lithology, and lithology display length dictionary provided by the interpretation software. This is time-consuming, labor-intensive, and error-prone. Faced with a large amount of logging lithology data, it is urgent to develop a method that can quickly and accurately convert lithology description texts in batches to improve work efficiency. Summary of the invention

[0003] In order to solve the above problems, the present invention proposes: a lithology code batch conversion method suitable for Geoeast software, which is designed by C / C++ language programming and automatically reads, replaces and outputs by a computer system to achieve batch conversion.

[0004] Further, the following steps are included:

[0005] S1. Obtaining a lithology color code dictionary;

[0006] S2, obtaining a lithology code dictionary;

[0007] S3, obtaining a dictionary of display widths of different lithologies;

[0008] S4. Use batch conversion method to output the content to form code files that can be recognized by interpretation software.

[0009] Furthermore, in step S1, the color code dictionary is an editable text file.

[0010] Furthermore, in step S2, the lithology code dictionary is an editable text file.

[0011] Furthermore, in step S3, the dictionary of different lithology display widths is an editable text file.

[0012] Furthermore, in step S4, the batch conversion method is a code designed by C / C++ language programming. The code designed by C / C++ language is used to automatically read the original lithology description text and the lithology color code dictionary, the lithology code dictionary, and the different lithology display width dictionary into memory A1 and memory A2 respectively through the computer system, and the color and lithology in A1 are replaced with the code in A2 and stored in memory A3 according to the corresponding top depth and bottom depth rows in the original lithology description text. After the original lithology description text is completely replaced, it is output according to the original lithology description text file name to form a code file that can be recognized by the interpretation software.

[0013] Furthermore, memory A1 temporarily stores the original lithology description text.

[0014] Furthermore, the memory A2 temporarily stores a lithology color code dictionary, a lithology code dictionary, and a dictionary of display widths of different lithologies.

[0015] The beneficial effects of the present invention are as follows: the method of the present invention can realize batch conversion of the color, lithology, and display length of different lithologies in the interpretation software for the lithology description text. The method improves the conversion efficiency as a whole by reading the dictionary and using the lithology description text through the lithology code batch conversion method. The converted lithology code can be directly recognized and batch loaded by the interpretation software, and converted into lithology code that can be directly recognized and batch loaded by the interpretation software, thereby improving the work timeliness and ensuring accuracy. The advantages are as follows:

[0016] 1. The lithology color code dictionary, lithology code dictionary, and different lithology display width dictionary used in the present invention are all editable text files, which contain common lithologies and are convenient for adding different special lithologies in different regions at a later stage.

[0017] 2. The batch conversion method of the present invention is written in C / C++ language, and the small program written in C / C++ language has the characteristic of high operating efficiency.

[0018] 3. The batch conversion method of the present invention can load an unlimited number of lithology description texts at the same time, and multiple lithology description texts can be loaded at one time for batch conversion.

[0019] 4. The batch conversion method of the present invention saves the converted lithology code as a lithology code file with a file name corresponding to the single lithology description text according to the read single lithology description text file name, which is more convenient.

[0020] 5. In the batch conversion method of the present invention, the conversion process is directly controlled by the program and the computer automatically, and there is no human intervention in the intermediate process, which reduces the risk of errors.

[0021] 6. Compared with the prior art, the beneficial effects of the present invention include: the lithology code batch conversion method can avoid manual intervention, make full use of the high-speed computing power of the memory, improve work efficiency, and better realize the idea of ​​"improving quality, speed and efficiency". It is a real method for realizing accurate and fast batch conversion. The editability of the dictionary improves the applicability of the method. It is applicable to any region and any lithology, and also increases the scope of application of the batch conversion method. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is the original lithology description text map;

[0023] Figure 2 A color code dictionary diagram of the present invention;

[0024] Figure 3 It is the lithology code dictionary map of the present invention;

[0025] Figure 4 Display width dictionary maps for different lithologies of the present invention;

[0026] Figure 5 It is a flow chart of the batch conversion method of the present invention;

[0027] Figure 6 This is an example diagram of the lithology code finally formed after the batch conversion of the present invention;

[0028] Figure 7 This is a display example diagram of the batch conversion of the present invention loaded into the interpretation software. DETAILED DESCRIPTION

[0029] A lithology code batch conversion method suitable for Geoeast software is described in further detail below in conjunction with a flow chart of a specific embodiment of the present invention.

[0030] The technical solution adopted by the present invention is to design a lithology code batch conversion method suitable for interpretation software using C / C++ language, which is automatically read, replaced and output by a computer system, thereby achieving the purpose of batch conversion. The invention includes a lithology color code dictionary, a lithology code dictionary, a dictionary of different lithology display widths, and a batch conversion method. Through the coordinated use of the lithology code batch conversion method to read the dictionary and the lithology description text, the method improves the conversion efficiency as a whole, and can make the converted lithology code reach the conditions of being directly recognized and batch loaded by the interpretation software.

[0031] like Figure 1 As shown, the color code dictionary in the above scheme is an editable text file.

[0032] like Figure 2 As shown, the lithology code dictionary in the above scheme is an editable text file.

[0033] like Figure 3 As shown, the different lithology display width dictionaries in the above scheme are editable text files.

[0034] like Figure 4 As shown, the batch conversion method in the above scheme is to design a code for batch conversion of lithology codes suitable for interpretation software through C / C++ language. The code designed in C / C++ language is used to automatically read the original lithology description text and lithology color code dictionary, lithology code dictionary, and different lithology display width dictionary into memory A1 (temporary storage of original lithology description text) and A2 (temporary storage of lithology color code dictionary, lithology code dictionary, and different lithology display width dictionary) through the computer system, and replace the color and lithology in A1 with the code in A2 and store them in memory A3 according to the corresponding top depth and bottom depth rows in the original lithology description text. After the original lithology description text is completely replaced, it is output according to the original lithology description text file name (generally stored according to the well name) to form a code file recognizable by the interpretation software. The process is as follows Figure 5 shown.

[0035] Taking wells Ce27 and Ce31 in the X area as examples, the application effect of the lithology batch conversion method is described in detail.

[0036] (1) Read the lithology description text and dictionary files of wells such as Survey 27 and Survey 31 and store them temporarily in the memory.

[0037] (2) Using the conversion code, the color and lithology in the lithology description text are automatically searched and replaced according to the code in the dictionary file to generate the corresponding color, lithology, and lithology display length code and temporarily store it in the memory.

[0038] (3) For all converted lithology codes (such as Figure 6 (as shown) output the read lithology description text to the text of the corresponding file name and save the output.

[0039] (4) Load the converted lithology code into the interpretation software to project the lithology onto the seismic section in graphical form (e.g. Figure 7 shown).

[0040] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solutions and concepts of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A lithology code batch conversion method suitable for Geoeast software, characterized in that: Designed using C / C++ language programming, it can automatically read, replace and output files through the computer system to achieve batch conversion.

2. The lithology code batch conversion method applicable to Geoeast software according to claim 1, characterized in that: The steps include: S1. Obtaining a lithology color code dictionary; S2, obtaining a lithology code dictionary; S3, obtaining a dictionary of display widths of different lithologies; S4. Use batch conversion method to output the content to form code files that can be recognized by interpretation software.

3. The lithology code batch conversion method applicable to Geoeast software as claimed in claim 2, characterized in that: In step S1, the color code dictionary is an editable text file.

4. The lithology code batch conversion method applicable to Geoeast software as claimed in claim 2, characterized in that: In step S2, the lithology code dictionary is an editable text file.

5. The lithology code batch conversion method applicable to Geoeast software as claimed in claim 2, characterized in that: In step S3, the dictionary of different lithology display widths is an editable text file.

6. The lithology code batch conversion method applicable to Geoeast software according to claim 2, characterized in that: In step S4, the batch conversion method is a code designed by programming in C / C++ language. The code designed in C / C++ language is used to automatically read the original lithology description text and the lithology color code dictionary, the lithology code dictionary, and the different lithology display width dictionary into memory A1 and memory A2 respectively through the computer system, and the color and lithology in A1 are replaced with the code in A2 and stored in memory A3 according to the corresponding top depth and bottom depth rows in the original lithology description text. After the original lithology description text is completely replaced, it is output according to the original lithology description text file name to form a code file that can be recognized by the interpretation software.

7. The lithology code batch conversion method applicable to Geoeast software according to claim 6, characterized in that: Memory A1 temporarily stores the original lithology description text.

8. The lithology code batch conversion method applicable to Geoeast software according to claim 6, characterized in that: Memory A2 temporarily stores the lithology color code dictionary, lithology code dictionary, and different lithology display width dictionary.

Citation Information

Patent Citations

  • Structured code automatic configuration method and device

    CN101122854A

  • Well data format conversion method and system

    CN111639050A

  • Conversion processing method and device based on various coding files, terminal and medium

    CN113595683A

  • Data processing method and device

    CN114218964A

  • Machine readable code and method and device of encoding and decoding same

    CN1434957A