Cross-hole earthquake CT data batch preprocessing method and system

By automatically identifying and processing transhole seismic CT data, the traditional manual processing is solved, and fast and accurate data preprocessing is achieved, and the efficiency and accuracy of data processing are improved.

CN119226240APending Publication Date: 2024-12-31SHAANXI RAILWAY ENG SURVEY CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410997190.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The traditional process of manually processing transhole seismic CT data is time-consuming and labor-intensive, prone to errors and inefficient, affecting the accuracy and efficiency of data processing.

Method used

Provide a batch preprocessing method and system for cross-hole seismic CT data. By obtaining the data storage path input by the user, automatically identifying file name identification information, dividing and arranging, format conversion and ordering processing, creating folders and storing data, and using The os.l i std i r() function and max/min function implement automated processing.

Benefits of technology

It realizes fast and accurate data preprocessing, saves time, avoids manual operation errors, and improves the efficiency and accuracy of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119226240A_ABST
    Figure CN119226240A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-hole seismic CT data batch preprocessing method and system, and the method comprises the steps: obtaining a cross-hole seismic CT original data file storage path inputted by a user, and reading a cross-hole seismic CT original data file based on the file storage path; identifying file name identification information of each cross-hole earthquake CT original data file, arranging and dividing the cross-hole earthquake CT original data file according to the identified file name identification information, and creating a folder corresponding to each arrangement; performing format conversion on each arranged cross-hole seismic CT original data file; and carrying out sequence adjustment processing on each arranged cross-hole seismic CT data file subjected to format conversion, and storing the data files in the folder of the corresponding arrangement. According to the method, batch preprocessing can be rapidly and accurately carried out on a large batch of cross-hole seismic CT original data, time is saved, and accurate data preprocessing is guaranteed due to the fact that manual operation is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of geophysical exploration data processing, and in particular to a cross-hole seismic CT data batch preprocessing method and system. Background Art

[0002] The cross-hole seismic CT method has achieved remarkable results in the field of karst exploration. In the project survey, the data collected in the field are 24 or 48 seismic wave data corresponding to a single shot, and the data format is *.dat. The data file numbers of each arrangement in each hole pair are arranged from deep to shallow in order from small to large. Therefore, before data processing, these data need to be pre-processed. First, the 24 data corresponding to each shot should be manually adjusted so that their gains are roughly the same. Secondly, the data format should be converted from *.dat to *.sg2 or *.sgy, and then the data corresponding to each arrangement should be arranged in sequence so that the order of the data file numbers is reversed and arranged from deep to shallow in order from large to small. The preprocessing of these data is often a tedious and repetitive process that requires manual processing. The process is time-consuming and error-prone, affecting efficiency. Summary of the invention

[0003] The present application provides a cross-hole seismic CT data batch preprocessing method and system to solve the problems of time-consuming, labor-intensive, error-prone and low efficiency in traditional manual processing methods.

[0004] According to the first aspect, an embodiment provides a method for batch preprocessing of cross-hole seismic CT data, the method comprising:

[0005] Obtaining a cross-hole seismic CT raw data file storage path input by a user, and reading the cross-hole seismic CT raw data file based on the file storage path;

[0006] Identify the file name identification information of each cross-hole seismic CT raw data file, arrange and divide the cross-hole seismic CT raw data files according to the identified file name identification information, and create a folder corresponding to each arrangement;

[0007] Convert the format of each arranged cross-hole seismic CT raw data file;

[0008] The format-converted cross-hole seismic CT data files of each arrangement are sequenced and stored in the folder of the corresponding arrangement.

[0009] Further, reading the cross-hole seismic CT raw data file based on the file storage path specifically includes:

[0010] Use the os.li std ir() function to get the data file in the specified path.

[0011] Further, the file name identification information of each cross-hole seismic CT raw data file is identified, and the cross-hole seismic CT raw data files are arranged and divided according to the identified file name identification information, and a folder corresponding to each arrangement is created, specifically including:

[0012] Since the cross-hole seismic CT raw data files are named with digital numbers, the data files with numbers in the range of [0,2000) are divided into the first arrangement and the first folder is created, the data files with numbers in the range of [2000,3000) are divided into the second arrangement and the second folder is created, the data files with numbers in the range of [3000,4000) are divided into the third arrangement and the third folder is created, and so on.

[0013] Furthermore, the cross-hole seismic CT raw data files are arranged and divided according to the identified file name identification information, and a folder corresponding to each arrangement is created, specifically including:

[0014] Create multiple subfolders under the original folder storing the cross-hole seismic CT raw data files for storing data files with different arrangements.

[0015] Furthermore, the format of each arranged cross-hole seismic CT raw data file is converted, including:

[0016] Decode the cross-hole seismic CT raw data file in *.dat format, identify the data content, and then re-encode it into data in *.sgy data format.

[0017] Further, each arranged cross-hole seismic CT data file that has undergone format conversion is sequenced, specifically including:

[0018] Since the cross-hole seismic CT raw data files are named with digital numbers, the max and min functions are used to sort the identified data file names:

[0019] fname=max(name[0])-i nt(fil ename)+min(name[0])

[0020] Among them, max(name[0]) represents the maximum number of cross-hole seismic CT data files in the current folder, min represents the minimum number of cross-hole seismic CT data files in the current folder, int(filename) represents the name of the cross-hole seismic CT data file to be reordered, and fname represents the name of the cross-hole seismic CT data file after reordering.

[0021] According to the second aspect, an embodiment provides a cross-hole seismic CT data batch preprocessing system, the system comprising:

[0022] A data reading module, used to obtain a cross-hole seismic CT raw data file storage path input by a user, and read the cross-hole seismic CT raw data file based on the file storage path;

[0023] A file division module is used to identify the file name identification information of each cross-hole seismic CT raw data file, arrange and divide the cross-hole seismic CT raw data files according to the identified file name identification information, and create a folder corresponding to each arrangement;

[0024] A format conversion module, used for converting the format of each arranged cross-hole seismic CT raw data file;

[0025] The sequencing module is used to sequence each arranged cross-hole seismic CT data file that has been converted into a different format and store it in a folder of the corresponding arrangement.

[0026] Furthermore, the file division module is specifically used for:

[0027] Since the cross-hole seismic CT raw data files are named with digital numbers, the data files with numbers in the range of [0,2000) are divided into the first arrangement and the first folder is created, the data files with numbers in the range of [2000,3000) are divided into the second arrangement and the second folder is created, the data files with numbers in the range of [3000,4000) are divided into the third arrangement and the third folder is created, and so on.

[0028] According to the third aspect, an embodiment provides an electronic device, the device comprising: a processor and a memory;

[0029] The memory is used to store one or more program instructions;

[0030] The processor is used to run one or more program instructions to execute the steps of a cross-hole seismic CT data batch preprocessing method as described in any one of the above items.

[0031] According to the fourth aspect, an embodiment provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of a cross-hole seismic CT data batch preprocessing method as described in any one of the above items are implemented.

[0032] The present application provides a cross-hole seismic CT data batch preprocessing method and system, which obtains the cross-hole seismic CT raw data file storage path input by the user, reads the cross-hole seismic CT raw data file based on the file storage path; identifies the file name identification information of each cross-hole seismic CT raw data file, arranges and divides the cross-hole seismic CT raw data file according to the identified file name identification information and creates a folder corresponding to each arrangement; converts the format of each arranged cross-hole seismic CT raw data file; and performs sequence processing on each arranged cross-hole seismic CT data file after format conversion, and stores it in the folder of the corresponding arrangement. The present invention can quickly and accurately perform batch preprocessing on a large number of cross-hole seismic CT raw data, which not only saves time, but also avoids manual operation, ensuring the accuracy of data preprocessing. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flow chart of a cross-hole seismic CT data batch preprocessing method provided by one embodiment of the present invention;

[0034] Figure 2 A specific implementation flow chart of a cross-hole seismic CT data batch preprocessing method provided by an embodiment of the present invention;

[0035] Figure 3 A data file before preprocessing in a cross-hole seismic CT data batch preprocessing method provided by an embodiment of the present invention;

[0036] Figure 4 A data file preprocessed in a cross-hole seismic CT data batch preprocessing method provided by an embodiment of the present invention;

[0037] Figure 5 A schematic diagram of the logical structure of a cross-hole seismic CT data batch preprocessing system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0039] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0040] The first embodiment of the present invention provides a batch preprocessing method for cross-hole seismic CT data. Figure 1 and Figure 2 Provide detailed explanation.

[0041] like Figure 1 As shown, in step S100, the cross-hole seismic CT raw data file storage path input by the user is obtained, and the cross-hole seismic CT raw data file is read based on the file storage path.

[0042] In this embodiment, only the file location directory needs to be manually input, and the remaining steps can be completed automatically.

[0043] Assume the path is:

[0044] path=r"D:\ShenHu i\DL\RSHZ-TDL-YR-BB13-RSHZ3-TDL-YR-BB22"

[0045] Using the os.li std ir() function, "files = os.li std ir(path)", the program can automatically read all data files at the file location.

[0046] like Figure 1 As shown, in step S200, the file name identification information of each cross-hole seismic CT raw data file is identified, and the cross-hole seismic CT raw data files are arranged and divided according to the identified file name identification information, and a folder corresponding to each arrangement is created.

[0047] Since the cross-hole seismic CT raw data files are named with digital numbers, in practical applications, the acquired data will be named in different ways according to different arrangements, specifically: starting with 1 or 2, such as 1001, 1002, ….

[0048] In this embodiment, data files with numbers in the range of [0,2000) are divided into the first arrangement and a first folder (named "1" folder) is created, data files with numbers in the range of [2000,3000) are divided into the second arrangement and a second folder (named "2" folder) is created, data files with numbers in the range of [3000,4000) are divided into the third arrangement and a third folder (named "3" folder) is created, and so on.

[0049] like Figure 1 As shown, in step S300, each arranged cross-hole seismic CT raw data file is converted into a format.

[0050] In this embodiment, when format conversion is performed on each *.dat data file, the original data file is first decoded to identify the data content, and then re-encoded into data in *.sgy data format according to a certain format, thereby completing the data format conversion.

[0051] like Figure 1 As shown, in step S400, each arranged cross-hole seismic CT data file that has undergone format conversion is sequenced and stored in a folder corresponding to the arrangement.

[0052] Rearrange the data file name for each arrangement, and use the read data file name to reorder it through the max and min functions:

[0053] fname=max(name[0])-i nt(fi l ename)+min(name[0]);

[0054] And output the sequenced data files to the corresponding folder.

[0055] Assuming that the original data files are named 1001 to 1020, the purpose of reordering is to change the original 1001 to 1020, and the original 1020 to 1001. If you want to reorder the file name 1002, the formula is 1020+1001-1002=1019.

[0056] The method of the present invention was applied in a karst exploration project of an intercity railway, and more than 1,600 pairs of data were preprocessed, which greatly improved the efficiency of data processing, saved internal costs, and ensured the accuracy of data preprocessing.

[0057] The specific process is as follows:

[0058] The original CT data files of a certain hole include 57 data files, 1001.dat~1034.dat and 2001.dat~2023.dat, such as Figure 3As shown. First import the folder path:

[0059] "D:\20230403\YR-BB1-DY-46-1"

[0060] Then run the program to get the corresponding two subfolders 1 and 2, corresponding to the two arrangements respectively. The folders contain the *.sgy data files that have completed data format conversion and sequencing, such as Figure 4 As shown, the processing process only takes 4 to 10 seconds, greatly improving efficiency.

[0061] A cross-hole seismic CT data batch preprocessing method provided by an embodiment of the present invention obtains a cross-hole seismic CT raw data file storage path input by a user, reads the cross-hole seismic CT raw data file based on the file storage path; identifies the file name identification information of each cross-hole seismic CT raw data file, arranges and divides the cross-hole seismic CT raw data file according to the identified file name identification information and creates a folder corresponding to each arrangement; performs format conversion on each arrangement of the cross-hole seismic CT raw data file; performs sequence processing on each arrangement of the cross-hole seismic CT data file after format conversion, and stores it in the folder of the corresponding arrangement. The present invention can quickly and accurately perform batch preprocessing on a large number of cross-hole seismic CT raw data, which not only saves time, but also avoids manual operation, ensuring the accuracy of data preprocessing.

[0062] Corresponding to the above disclosed cross-hole seismic CT data batch preprocessing method, the embodiment of the present invention also discloses a cross-hole seismic CT data batch preprocessing system, such as Figure 5 As shown, it specifically includes:

[0063] A data reading module, used to obtain a cross-hole seismic CT raw data file storage path input by a user, and read the cross-hole seismic CT raw data file based on the file storage path;

[0064] A file division module is used to identify the file name identification information of each cross-hole seismic CT raw data file, arrange and divide the cross-hole seismic CT raw data files according to the identified file name identification information, and create a folder corresponding to each arrangement;

[0065] A format conversion module, used for converting the format of each arranged cross-hole seismic CT raw data file;

[0066] The sequencing module is used to sequence each arranged cross-hole seismic CT data file that has been converted into a different format and store it in a folder of the corresponding arrangement.

[0067] Furthermore, the file division module is specifically used for:

[0068] Since the cross-hole seismic CT raw data files are named with digital numbers, the data files with numbers in the range of [0,2000) are divided into the first arrangement and the first folder is created, the data files with numbers in the range of [2000,3000) are divided into the second arrangement and the second folder is created, the data files with numbers in the range of [3000,4000) are divided into the third arrangement and the third folder is created, and so on.

[0069] It should be noted that for the detailed description of a cross-hole seismic CT data batch preprocessing system provided in an embodiment of the present invention, reference can be made to the relevant description of a cross-hole seismic CT data batch preprocessing method provided in an embodiment of the present application, which will not be repeated here.

[0070] In addition, an embodiment of the present invention also provides an electronic device, which includes: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute the steps of a cross-hole seismic CT data batch preprocessing method as described in any of the above items.

[0071] It should be noted that for the detailed description of an electronic device provided in an embodiment of the present invention, reference can be made to the relevant description of a cross-hole seismic CT data batch preprocessing method provided in an embodiment of the present application, which will not be repeated here.

[0072] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a cross-hole seismic CT data batch preprocessing method as described in any of the above items are implemented.

[0073] It should be noted that for the detailed description of a computer-readable storage medium provided in an embodiment of the present invention, reference can be made to the relevant description of a cross-hole seismic CT data batch preprocessing method provided in an embodiment of the present application, which will not be repeated here.

[0074] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.

[0075] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.

Claims

1. A batch preprocessing method for cross-hole seismic CT data, characterized in that: The method comprises: Obtaining a cross-hole seismic CT raw data file storage path input by a user, and reading the cross-hole seismic CT raw data file based on the file storage path; Identify the file name identification information of each cross-hole seismic CT raw data file, arrange and divide the cross-hole seismic CT raw data files according to the identified file name identification information, and create a folder corresponding to each arrangement; Convert the format of each arranged cross-hole seismic CT raw data file; The format-converted cross-hole seismic CT data files of each arrangement are sequenced and stored in the folder of the corresponding arrangement.

2. A cross-hole seismic CT data batch preprocessing method according to claim 1, characterized in that: Reading the cross-hole seismic CT raw data file based on the file storage path specifically includes: Use the os.listdir() function to obtain the data files in the specified path.

3. The cross-hole seismic CT data batch preprocessing method according to claim 1, characterized in that: Identify the file name identification information of each cross-hole seismic CT raw data file, arrange and divide the cross-hole seismic CT raw data files according to the identified file name identification information, and create a folder corresponding to each arrangement, specifically including: Since the cross-hole seismic CT raw data files are named with digital numbers, the data files with numbers in the range of [0,2000) are divided into the first arrangement and the first folder is created, the data files with numbers in the range of [2000,3000) are divided into the second arrangement and the second folder is created, the data files with numbers in the range of [3000,4000) are divided into the third arrangement and the third folder is created, and so on.

4. A cross-hole seismic CT data batch preprocessing method as claimed in claim 3, characterized in that: Arrange and divide the cross-hole seismic CT raw data files according to the identified file name identification information and create folders corresponding to each arrangement, including: Create multiple subfolders under the original folder storing the cross-hole seismic CT raw data files for storing data files with different arrangements.

5. The cross-hole seismic CT data batch preprocessing method according to claim 1, characterized in that: The format of each cross-hole seismic CT raw data file is converted, including: Decode the cross-hole seismic CT raw data file in *.dat format, identify the data content, and then re-encode it into data in *.sgy data format.

6. The cross-hole seismic CT data batch preprocessing method according to claim 1, characterized in that: Each arranged cross-hole seismic CT data file that has been converted to a different format is sequenced, including: Since the cross-hole seismic CT raw data files are named with digital numbers, the max and min functions are used to sort the identified data file names: fname=max(name[0])-int(fi lename)+min(name[0]) Among them, max(name[0]) represents the maximum number of cross-hole seismic CT data files in the current folder, min represents the minimum number of cross-hole seismic CT data files in the current folder, int(filename) represents the name of the cross-hole seismic CT data file to be reordered, and fname represents the name of the cross-hole seismic CT data file after reordering.

7. A cross-hole seismic CT data batch preprocessing system, characterized in that: The system comprises: A data reading module, used to obtain a cross-hole seismic CT raw data file storage path input by a user, and read the cross-hole seismic CT raw data file based on the file storage path; A file division module is used to identify the file name identification information of each cross-hole seismic CT raw data file, arrange and divide the cross-hole seismic CT raw data files according to the identified file name identification information, and create a folder corresponding to each arrangement; A format conversion module, used for converting the format of each arranged cross-hole seismic CT raw data file; The sequencing module is used to sequence each arranged cross-hole seismic CT data file that has been converted into a different format and store it in a folder of the corresponding arrangement.

8. The cross-hole seismic CT data batch preprocessing system according to claim 7, characterized in that: The file division module is specifically used for: Since the cross-hole seismic CT raw data files are named with digital numbers, the data files with numbers in the range of [0,2000) are divided into the first arrangement and the first folder is created, the data files with numbers in the range of [2000,3000) are divided into the second arrangement and the second folder is created, the data files with numbers in the range of [3000,4000) are divided into the third arrangement and the third folder is created, and so on.

9. An electronic device, characterized in that: The device comprises: a processor and a memory; The memory is used to store one or more program instructions; The processor is used to run one or more program instructions to execute the steps of a cross-hole seismic CT data batch preprocessing method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a cross-hole seismic CT data batch preprocessing method as described in any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Geological profile map processing method based on cross-hole CT (Computed Tomography) and drilling information multi-dimensional coordination

    CN120279133A

  • A geological profile processing method based on multi-dimensional collaboration of cross-hole CT and borehole information

    CN120279133B