Metadata label-based borehole trajectory data reference mapping method and system
Through the combination of metadata labels and unit mapping tables, the complexity of data benchmark conversion in well trajectory design is solved, flexible viewing and rapid switching of data is achieved, the risk of repeated design is reduced, and data sharing and application efficiency is improved.
Patent Information
- Application Number
- CN202410990704.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-26
AI Technical Summary
In the well trajectory design, due to the different unit system and geographical reference systems in different countries and regions, the depth reference conversion of vertical depth and sounding, the angle radian conversion of azimuth and tool face angle, the rotation and offset of east-west and south-west displacements are caused by different units and geographic reference systems, resulting in vertical depth and sounding depth reference conversion, azimuth and angle conversion of azimuth and tool face angle, and the rotation and offset of east-west displacements. Data types such as transformation are diverse and complex, causing difficulties in data storage, calculation and display, especially the challenges of quickly identifying data types for benchmark conversion.
Using a metadata label-based method, the characteristics, functional uses and processing scenarios of the wellbore trajectory data are classified, group labels, benchmark labels and data type labels, combined with unit mapping tables, and the corresponding benchmark converter is determined to realize the data. The reference map of the reference map decouples the data standards stored, calculated and displayed, and simplifies the reference conversion process.
It realizes flexible viewing and rapid switching of well trajectory data, avoids duplicate design problems caused by data changes such as location and centering, reduces data ambiguity and benchmark processing errors, and improves the efficiency of data sharing and application software development.
Smart Images

Figure CN119026203A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of oil and gas drilling engineering data processing, and in particular relates to a wellbore trajectory data benchmark mapping method and system based on metadata tags. Background Art
[0002] In the well trajectory design stage, various types of data are involved, such as depth measurement, well inclination, azimuth, vertical depth, east-west, south-north displacement, and dogleg. In order to achieve the corresponding changes of well trajectory data with the changes of core height and measured coordinates, avoid repeated design, and reduce workload, it is necessary to decouple calculation, storage, and display. In order to facilitate data exchange, storage data generally adopts a unified benchmark. In order to facilitate the call of calculation functions, calculation data generally uses the units and benchmarks required by mathematical functions. The benchmarks of displayed data vary due to the unit systems and geographic reference systems adopted by different countries and regions.
[0003] During the entire design phase, the depth benchmark conversion is required for vertical depth and depth measurement, the azimuth and tool face angles are converted into radians and rotated, and the east-west, south-north displacements are converted into rotations and offsets, etc. The variety of data types and the complexity of conversion forms pose great challenges to the storage, calculation and display of trajectory design data. Identifying data types and quickly completing benchmark conversion through data types during software design is an urgent problem to be solved.
[0004] Metadata refers to data that describes data. It is a collection of data elements used to describe information such as data characteristics, structure, content, format, source, and organization. Metadata is information about data, and can also be understood as the attributes or characteristics of data. Metadata is often used for data management and data sharing so that users can better understand and use data. Data tags are a structured data description that is used to identify certain attributes or characteristics of data. Data tags are usually created manually to identify a certain attribute or classification of data. Summary of the invention
[0005] In view of the above problems, the present invention provides a method and system for well trajectory data benchmark mapping based on metadata tags. The present invention quickly completes benchmark mapping by calibrating data types and combining unit mapping tables for metadata data tags, thereby decoupling data standards for storage, calculation, and display, solving the problem of flexible viewing and rapid switching of well trajectory data, and avoiding the problem of repeated design due to changes in data such as position and core height. In addition, a set of model data can simultaneously meet the needs of display, storage, and calculation, reduce data ambiguity, reduce the complexity of upper-level application benchmark processing, and reduce the error rate of benchmark processing. Data can be shared more easily, and application software development can be faster and more convenient.
[0006] The first object of the present invention is to provide a wellbore trajectory data benchmark mapping method based on metadata tags, comprising:
[0007] Different metadata tags are identified for different wellbore trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the wellbore trajectory data, wherein the metadata tags include group tags, reference tags, and data type tags;
[0008] Obtaining group labels, reference labels, and data type labels corresponding to original and target wellbore trajectory data;
[0009] According to the reference tag type of the original wellbore trajectory data, determining a reference converter corresponding to the reference tag type;
[0010] The corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group labels, data type labels and unit mapping tables of the original and target wellbore trajectory data.
[0011] In a specific embodiment of the present invention, the identification of different metadata tags for different wellbore trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the wellbore trajectory data includes:
[0012] Classify the data into group labels according to functional usage scenarios, wherein the group labels include display group labels, storage group labels, and algorithm group labels;
[0013] Classifying the data into reference labels according to the processing scenario, wherein the reference labels include unit reference, orientation reference and depth reference;
[0014] The data is classified into data type labels according to the characteristics of the borehole trajectory data, and the data type labels include length data, depth data, angle data and angle change rate data.
[0015] In a specific embodiment of the present invention, the group label classification of data according to functional usage scenarios includes:
[0016] Identify the data displayed on the interface as a display group label, wherein the display group label identifies the unit and reference of the data usage interface;
[0017] Identifying the data stored in the database as a storage group tag, wherein the storage group tag identifies the unit and basis of the data using the database;
[0018] The data in use for computation is identified as an algorithm group tag, wherein the algorithm group tag identifies a unit and a basis of an algorithm used by the data.
[0019] In a specific embodiment of the present invention, the benchmark label classification of data according to the processing scenario includes:
[0020] Identify the data that needs to be converted into units as the unit system basis;
[0021] Identify data that require processing of rotations and / or offsets with respect to true north and grid north as orientation datums;
[0022] The data required to process the offset in the depth direction is identified as a depth reference.
[0023] In a specific embodiment of the present invention, data that needs to be processed for rotation on true north and grid north is identified as an orientation reference, including:
[0024] Identify data that needs to handle rotations about true north and grid north as an angular datum;
[0025] Identify the data that needs to handle the offset between true north and grid north as a coordinate datum.
[0026] In a specific embodiment of the present invention, the data type label classification of the data according to the characteristics of the borehole trajectory data includes:
[0027] Identify the data related to length in the borehole trajectory data as length data;
[0028] Identify the data related to the depth in the borehole trajectory data as depth data;
[0029] Identify the data related to the angle in the borehole trajectory data as angle data;
[0030] The data related to the angle change in the borehole trajectory data are identified as angle change rate data.
[0031] In a specific embodiment of the present invention, the reference converter includes a base converter, a depth reference converter, an angle reference converter and a coordinate reference converter;
[0032] The base converter is used to process the unit reference and perform unit conversion;
[0033] The depth reference converter is used to process the unit reference and the depth reference to convert the depth data;
[0034] The angle reference converter is used to process the unit reference and the angle reference to convert the angle;
[0035] The coordinate reference converter is used to process the unit reference and the coordinate reference and to offset the coordinate system.
[0036] In a specific embodiment of the present invention, when the corresponding reference converter is a base converter, the corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including:
[0037] Retrieving the group label and data type label of the original well trajectory data, and determining the unit of the original well trajectory data;
[0038] Determine the converted data unit according to the data group of the target wellbore trajectory data and in combination with the data type of the original wellbore trajectory data;
[0039] The basic converter performs data unit system conversion according to the determined converted data units and unit mapping table, that is, completes the unit reference mapping of the original wellbore trajectory data.
[0040] In a specific embodiment of the present invention, when the corresponding reference converter is a depth reference converter, the corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including:
[0041] Retrieve the group label and data type label of the original well trajectory data;
[0042] Determine the unit of the depth reference value and the unit of the depth value of the original wellbore trajectory data based on the group label and the data type label of the original wellbore trajectory data;
[0043] Determine the data unit after the depth reference value is converted and the data unit after the depth value is converted according to the data group of the target wellbore trajectory data and in combination with the data type of the original wellbore trajectory data;
[0044] The depth reference converter sequentially converts the depth reference value data unit system and the depth value data unit system according to the determined data unit after the depth reference value is converted, the data unit after the depth value is converted, and the unit mapping table;
[0045] Based on the conversion of the depth reference value data unit system and the depth value data unit system, a converted value of the depth reference value and a converted value of the depth value are obtained;
[0046] The target depth reference value of the wellbore trajectory data is retrieved, and the unit system is converted by combining the converted data unit with the single mapping table to obtain the value after the target depth reference unit conversion;
[0047] Subtract the converted value of the depth reference value from the converted value of the depth value, and then add the converted value of the target depth reference unit to obtain the depth reference conversion value;
[0048] The depth reference converter performs depth reference conversion according to the depth reference conversion value, that is, completes the depth reference mapping of the original wellbore trajectory data.
[0049] In a specific embodiment of the present invention, when the corresponding reference converter is an angle reference converter, the corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including:
[0050] Retrieve the group label and data type label of the original well trajectory data;
[0051] Determine the unit of the reference value and the unit of the data value of the original well trajectory data based on the group label and the data type label of the original well trajectory data;
[0052] Determine the data unit after the conversion of the reference value and the data unit after the conversion of the data value according to the data group of the target wellbore trajectory data and in combination with the data type of the original wellbore trajectory data;
[0053] The angle reference converter sequentially converts the reference value data unit system and the data value unit system according to the determined data unit after the reference value is converted, the data unit after the data value is converted, and the unit mapping table;
[0054] Based on the conversion of the reference value data unit system and the data value unit system, a reference value converted value and a data value converted value are obtained;
[0055] The target convergence angle of the target wellbore trajectory data is taken out, and the unit system is converted by combining the converted data unit and the single mapping table to obtain the value of the target convergence angle after the unit conversion;
[0056] Add the value of the reference value to the value after the data value unit is converted, and then subtract the value of the target convergence angle unit converted to obtain the angle reference conversion value;
[0057] The angle reference converter performs angle reference conversion according to the angle reference conversion value, that is, completes the angle reference mapping of the original wellbore trajectory data.
[0058] In a specific embodiment of the present invention, when the corresponding reference converter is a coordinate reference converter, the corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including:
[0059] Retrieve the group label and data type label of the original well trajectory data;
[0060] Determine the coordinate value data and the reference value of the original wellbore trajectory data based on the group label and the data type label of the original wellbore trajectory data;
[0061] The coordinate reference converter converts the reference value into radians according to the unit mapping table to obtain a first conversion value;
[0062] Retrieving a target reference value of target wellbore trajectory data;
[0063] The coordinate reference converter converts the target reference value into radians according to the unit mapping table to obtain a second conversion value;
[0064] Based on the first conversion value and the second conversion value, a coordinate reference conversion value is obtained, and the calculation formula of the coordinate reference conversion value is as follows:
[0065] x1=cos(c2-c1)*x+sin(c2-c1)*y、y1=cos(c2-c1)*y-sin(c2-c1)*x, where (x1, y1) are coordinate reference conversion values, (x, y) are coordinate value data of original wellbore trajectory data, c1 is the first conversion value, and c2 is the second conversion value;
[0066] The coordinate reference converter performs coordinate reference conversion according to the coordinate reference conversion value, that is, completes the coordinate reference mapping of the original wellbore trajectory data.
[0067] In a specific embodiment of the present invention, the unit mapping table includes contents of four levels: the first level, the second level, the third level and the fourth level;
[0068] The first layer is the unit system, which expresses the unit system used by the data unit;
[0069] The second layer is the unit class, which belongs to the large classification, including length, angle and angle change rate. Each unit class corresponds to a basic unit;
[0070] The third layer is the unit family, which is a further classification of the major categories, including depth, azimuth and well deviation;
[0071] The fourth layer is measurement, which includes various data units.
[0072] A second object of the present invention is to provide a wellbore trajectory data reference mapping system based on metadata tags, comprising:
[0073] Identification module: used to identify different metadata tags for different wellbore trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the wellbore trajectory data, wherein the metadata tags include group tags, reference tags, and data type tags;
[0074] Acquisition module: used to obtain the group labels, reference labels and data type labels corresponding to the original and target wellbore trajectory data;
[0075] Determination module: used for determining a reference converter corresponding to a reference tag type according to the reference tag type of the original wellbore trajectory data;
[0076] Conversion module: used for the corresponding reference converter to complete the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data.
[0077] A third object of the present invention is to provide an electronic device, comprising: a processor, wherein the processor is coupled to a memory;
[0078] The memory is used to store computer programs;
[0079] The processor is used to execute the computer program stored in the memory so that the electronic device executes the method as described above.
[0080] A fourth object of the present invention is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, and when the program or instruction is executed on a computer, the computer executes the method as described above.
[0081] Beneficial effects of the present invention:
[0082] The present invention provides a method and system for benchmark mapping of borehole trajectory data based on metadata tags. First, different metadata tags are identified for different borehole trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the borehole trajectory data. This step fully considers the characteristics of the borehole trajectory data and the complexity of the subsequent processing of the borehole trajectory data, and materializes the characteristics of the borehole trajectory data and the processing process through group tags, benchmark tags, and data type tags, laying a foundation for the simplicity and rapidity of the benchmark mapping of the subsequent borehole trajectory data. At the same time, for different metadata tags, the present invention specifically defines different benchmark converters and establishes a unit mapping table, completes the rapid benchmark mapping of the borehole trajectory data, and realizes the decoupling of the data standards for storage, calculation, and display, solves the problem of flexible viewing and rapid switching of the well trajectory data, and avoids the problem of repeated design due to changes in data such as position and core height.
[0083] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0085] Figure 1 A flowchart of a wellbore trajectory data benchmark mapping method based on metadata tags according to an embodiment of the present invention is shown;
[0086] Figure 2 shows the overall structure of the converter according to an embodiment of the present invention;
[0087] Figure 3 A hierarchical diagram of a unit mapping table according to an embodiment of the present invention is shown;
[0088] Figure 4 A framework diagram of a well trajectory data reference mapping system based on metadata tags according to an embodiment of the present invention is shown;
[0089] Figure 5 A framework diagram of an electronic device according to an embodiment of the present invention is shown;
[0090] In the figure: identification module 1; acquisition module 2; determination module 3; feasibility judgment module 4; collision judgment module 5; arrival judgment module 6; completion module 7; electronic device 300; processor 301; memory 302. DETAILED DESCRIPTION
[0091] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0092] like Figure 1 As shown, a wellbore trajectory data benchmark mapping method based on metadata tags according to an embodiment of the present invention is characterized by comprising:
[0093] Step S1, identifying different metadata tags for different wellbore trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the wellbore trajectory data, wherein the metadata tags include a group tag, a reference tag, and a data type tag;
[0094] Step S2, obtaining group labels, reference labels and data type labels corresponding to original and target wellbore trajectory data;
[0095] Step S3, determining a reference converter corresponding to the reference tag type according to the reference tag type of the original wellbore trajectory data;
[0096] Step S4: The corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group labels, data type labels and unit mapping tables of the original and target wellbore trajectory data.
[0097] In step S1 of the embodiment of the present invention, different metadata tags are identified for different wellbore trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the wellbore trajectory data, including:
[0098] Step A1: classify the data into group labels according to functional use scenarios, wherein the group labels include a display group label, a storage group label, and an algorithm group label;
[0099] Step A2: classify the data into reference labels according to the processing scenario, wherein the reference labels include unit reference, orientation reference and depth reference;
[0100] Step A3: classify the data into data type labels according to the characteristics of the borehole trajectory data, wherein the data type labels include length data, depth data, angle data, and angle change rate data.
[0101] In step A1, the data is grouped and categorized according to functional usage scenarios, including:
[0102] a. Identify the data displayed on the interface as a display group label, wherein the data identified by the display group (Display) label uses the units and references of the interface; such data changes with changes in the unit system, depth reference, and angle reference;
[0103] b. Identify the data stored in the database as a storage group (Storage) tag, wherein the data identified by the storage group tag uses the unit and benchmark of the database; such data does not change with the change of the benchmark;
[0104] c. Identify the data used in the calculation as an algorithm group tag, where the algorithm group tag identifies the unit and benchmark required by the algorithm using the data; such data does not change with the change of the benchmark.
[0105] In the embodiment of the present invention, data without a group label is assumed to be the algorithm group.
[0106] In step A2, the data is classified into benchmark labels according to the processing scenario, including:
[0107] a. Identify the data that needs to be converted into units as the unit system basis;
[0108] b. Identify data that needs to be processed with respect to rotation and / or offset with respect to true north and grid north as an orientation reference;
[0109] c. Identify the data that needs to process the offset in the depth direction as the depth reference.
[0110] Step A2 is subdivided into step b, identifying the data that needs to be processed for rotation and / or on true north and grid north as an orientation reference, including:
[0111] 1) Identify the data that needs to process the rotation between true north and grid north as the angle reference;
[0112] 2) Identify the data that needs to handle the offset between true north and grid north as a coordinate datum.
[0113] In the embodiment of the present invention, data type labels can be used in a superimposed manner. The data has which labels to perform the benchmark conversion bound to the relevant labels. In the actual operation process, the data must have a unit benchmark label. Data without a data type label is bound to the unit benchmark label by default.
[0114] In step A3, data types are classified into labels based on the characteristics of the borehole trajectory data, including:
[0115] a. Identify the length-related data in the borehole trajectory data as length data;
[0116] b. Identifying the depth-related data in the borehole trajectory data as depth data;
[0117] b. Identifying the angle-related data in the borehole trajectory data as angle data;
[0118] c. Identify the data related to angle change in the borehole trajectory data as angle change rate data.
[0119] In the embodiment of the present invention, length, depth, angle, angle change rate, etc. are a large category. In the actual engineering practice process, in the specific embodiment, diameter, well inclination, and azimuth data are exemplarily used as different data types.
[0120] The data type label corresponds to the unit family in the unit map. The benchmark processing of different data type labels is different, as shown in Table 1.
[0121] Table 1
[0122]
[0123] The second column of the data names in the table in Table 1 is an explanation of the second column of the data names.
[0124] In step S4 of the embodiment of the present invention, the reference converter includes a base converter, a depth reference converter, an angle reference converter and a coordinate reference converter;
[0125] The base converter is used to process the unit reference and perform unit conversion;
[0126] The depth reference converter is used to process the unit reference and the depth reference to convert the depth data;
[0127] The angle reference converter is used to process the unit reference and the angle reference to convert the angle;
[0128] The coordinate reference converter is used to process the unit reference and the coordinate reference and to offset the coordinate system.
[0129] In the embodiment of the present invention, different data converters are defined for different data types. IConverter provides a basic interface for data conversion. All converters are derived from IConverter and implement its interface. The overall structure is as follows: Figure 2 As shown, Figure 2 In the code, IConverter Interface means conversion interface, BaseConverter Class means base converter, Datum ValueConverter means depth converter, Angle ValueConverter means angle converter, and CoordValueConverter means coordinate base converter.
[0130] In step S4 of the embodiment of the present invention, the unit mapping table is the basis for calculating the unit base conversion. The storage unit defaults to the base unit, the coefficient is 1, and the display unit and the calculation unit are realized by the positive and negative changes with the storage unit. The unit mapping table can be used as a separate configuration file or database table, including the first layer, the second layer, the third layer and the fourth layer. Figure 3 As shown;
[0131] The first layer is the unit system (System), which expresses the unit system used by the data unit, such as the metric system (SI) and the imperial system (API);
[0132] The second layer is the unit class (Class), which belongs to the large classification, including length (Length), angle (Angle) and angle change rate (Angle Rate). Each unit class corresponds to a basic unit; it is the basis for conversion of all units in the class and the basis for database storage;
[0133] The third layer is the unit family, which is a further classification of the major categories, including depth, azimuth and well deviation, which are related to pre-drilling design business.
[0134] The fourth layer is Measure, which includes various data units, corresponding to units such as feet, meters, and degrees.
[0135] In the embodiment of the invention, exemplarily, it is shown that the unit mapping table is stored as a csv file, as shown in Table 2.
[0136] Table 2
[0137] Unit system type Unit Family describe Display units Storage Unit Calculation Unit API CLASS_length FAMILY_depth Depth ft(1) ft(1) ft(1) API CLASS_angle FAMILY_angle Angles °(1) °(1) Rad(57.2957795130823) API CLASS_angle FAMILY_azimuth Azimuth °(1) °(1) rad(57.2957795130823) API CLASS_angle FAMILY_inc Inclination °(1) °(1) rad(57.2957795130823) API CLASS_angle_rate FAMILY_angrate Angle Rate ° / 100ft ° / 100ft rad / ft(5729.577951) API CLASS_angle FAMILY_azimuth Azimuth °(1) °(1) Rad(57.2957795130823) SI CLASS_length FAMILY_depth Depth m(0.3048) ft(1) ft(1) SI CLASS_angle FAMILY_azimuth Azimuth °(1) °(1) rad(57.2957795130823) SI CLASS_angle FAMILY_angle Angles °(1) °(1) rad(57.2957795130823) SI CLASS_angle FAMILY_azimuth Azimuth °(1) °(1) rad(57.2957795130823) SI CLASS_angle FAMILY_inc Inclination °(1) °(1) rad(57.2957795130823) SI CLASS_angle_rate FAMILY_angrate Angle Rate ° / 30m(1.016) ° / 100ft(1) rad / ft(5729.577951)
[0138] In Table 2, angrate is the abbreviation of Angle Rate, which is the angle change rate; azimuth is the azimuth; and inc is the abbreviation of Inclinatiaon, which is the well inclination.
[0139] In step S4 of the embodiment of the present invention, when the corresponding reference converter is a basic converter, the corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including:
[0140] Step B1, extracting the group label and data type label of the original wellbore trajectory data, and determining the unit of the original wellbore trajectory data;
[0141] Step B2, determining the converted data unit according to the data group of the target wellbore trajectory data and in combination with the data type of the original wellbore trajectory data;
[0142] Step B3: The basic converter performs data unit conversion according to the determined converted data unit and unit mapping table, that is, completes the unit reference mapping of the original wellbore trajectory data.
[0143] In step S4 of the embodiment of the present invention, when the corresponding reference converter is a depth reference converter, the corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including:
[0144] Step C1, extracting the group label and data type label of the original well trajectory data;
[0145] Step C2: determining the unit of the depth reference value (elevation) and the unit of the depth value of the original wellbore trajectory data based on the group label and the data type label of the original wellbore trajectory data;
[0146] Step C3, determining the data unit after the depth reference value (altitude) is converted and the data unit after the depth value is converted according to the data group of the target wellbore trajectory data and in combination with the data type of the original wellbore trajectory data;
[0147] Step C4, the depth reference converter sequentially converts the depth reference value (altitude) data unit system and the depth value data unit system according to the determined data unit after the depth reference value (altitude) is converted, the data unit after the depth value is converted, and the unit mapping table;
[0148] Step C5, based on the conversion of the depth reference value (altitude) data unit system and the depth value data unit system, obtain a converted value of the depth reference value (altitude) and a converted value of the depth value;
[0149] Step C6, taking out the target depth reference value of the target wellbore trajectory data, converting the unit system by combining the converted data unit and the single mapping table, and obtaining the converted value of the target depth reference unit;
[0150] Step C7, subtract the converted value of the depth reference value (altitude) from the converted value of the depth value, and then add the converted value of the target depth reference unit to obtain the depth reference conversion value, which is expressed as v1-d1+d2, where v1 is the converted value of the depth value, d1 is the converted value of the depth reference value (altitude), and d2 is the converted value of the target depth reference unit;
[0151] Step C8: the depth reference converter performs depth reference conversion according to the depth reference conversion value, that is, completes the depth reference mapping of the original wellbore trajectory data.
[0152] In step S4 of the embodiment of the present invention, when the corresponding reference converter is an angle reference converter, the corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including:
[0153] Step D1, extracting the group label and data type label of the original well trajectory data;
[0154] Step D2, based on the group label and data type label of the original wellbore trajectory data, determine the unit of the reference value (in this case, the convergence angle) and the unit of the data value of the original wellbore trajectory data;
[0155] Step D3, determining the data unit after the conversion of the reference value (in this case, the convergence angle) and the data unit after the conversion of the data value according to the data group of the target wellbore trajectory data and in combination with the data type of the original wellbore trajectory data;
[0156] Step D4, the angle reference converter sequentially converts the reference value data unit system and the data value unit system according to the determined data unit after the reference value is converted, the data unit after the data value is converted, and the unit mapping table;
[0157] Step D5, based on the conversion of the reference value data unit system and the data value data unit system, obtain the reference value converted value and the data value converted value;
[0158] Step D6, taking out the target convergence angle of the target wellbore trajectory data, converting the unit system by combining the converted data unit and the single mapping table, and obtaining the value of the target convergence angle after the unit conversion;
[0159] Step D7, add the converted value of the reference value to the converted value of the data value, and then subtract the converted value of the target convergence angle unit, to obtain the angle reference conversion value, the expression of which is v1+c1-c2, where c1 is the converted value of the reference value, v1 is the converted value of the data value, and c2 is the converted value of the target convergence angle unit;
[0160] Step D8: The angle reference converter performs angle reference conversion according to the angle reference conversion value, that is, completes the angle reference mapping of the original wellbore trajectory data.
[0161] In step S4 of the embodiment of the present invention, when the corresponding reference converter is a coordinate reference converter, the corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including:
[0162] Step E1, extracting the group label and data type label of the original well trajectory data;
[0163] Step E2, determining the coordinate value data and reference value (i.e., convergence angle) of the original wellbore trajectory data based on the group label and data type label of the original wellbore trajectory data;
[0164] Step E3, the coordinate reference converter converts the reference value into radians according to the unit mapping table to obtain a first conversion value;
[0165] Step E4, taking out the target reference value (i.e., convergence angle) of the target wellbore trajectory data;
[0166] Step E5, the coordinate reference converter converts the target reference value (i.e., the convergence angle) into radians according to the unit mapping table to obtain a second conversion value;
[0167] Step E6: Based on the first conversion value and the second conversion value, a coordinate reference conversion value is obtained. The calculation formula of the coordinate reference conversion value is as follows:
[0168] x1=cos(c2-c1)*x+sin(c2-c1)*y、y1=cos(c2-c1)*y-sin(c2-c1)*x, where (x1, y1) are coordinate reference conversion values, (x, y) are coordinate value data of original wellbore trajectory data, c1 is the first conversion value, and c2 is the second conversion value;
[0169] Step E7: the coordinate reference converter performs coordinate reference conversion according to the coordinate reference conversion value, that is, completes the coordinate reference mapping of the original wellbore trajectory data.
[0170] In a specific embodiment of the present invention, specific unit benchmark mapping, depth benchmark mapping, angle base mapping and coordinate benchmark mapping can be performed according to the method of the above embodiment based on the group label, data type label, benchmark label of the original wellbore trajectory data and the group label, data type label, benchmark label of the target wellbore trajectory data, that is, based on the metadata tag data label, the benchmark mapping of the wellbore trajectory data is quickly completed according to the unit mapping table, and the data standards for storage, calculation and display are decoupled, so as to solve the problem of flexible viewing and fast switching of well trajectory data and avoid the problem of repeated design due to changes in data such as position and core height.
[0171] like Figure 4 As shown, a wellbore trajectory data reference mapping system based on metadata tags according to an embodiment of the present invention includes:
[0172] Identification module 1: used to identify different metadata tags for different wellbore trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the wellbore trajectory data, wherein the metadata tags include group tags, reference tags, and data type tags;
[0173] Acquisition module 2: used to obtain group labels, reference labels and data type labels corresponding to original and target wellbore trajectory data;
[0174] Determination module 3: used to determine a reference converter corresponding to the reference tag type according to the reference tag type of the original wellbore trajectory data;
[0175] Conversion module 4: A corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group labels, data type labels and unit mapping tables of the original and target wellbore trajectory data.
[0176] like Figure 5As shown, some embodiments of the present invention provide an electronic device, the electronic device 300, comprising: a processor 301, the processor 301 is coupled to a memory 302;
[0177] The memory 302 is used to store computer programs;
[0178] The processor 301 is configured to execute the computer program stored in the memory 302 so that the electronic device executes the method described in the above embodiment.
[0179] In certain embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program or instruction. When the program or instruction is executed on a computer, the computer executes the method described in the above embodiments.
[0180] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an electronic device or a device.
[0181] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for benchmarking well trajectory data based on metadata tags, characterized in that: include: Different metadata tags are identified for different wellbore trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the wellbore trajectory data, wherein the metadata tags include group tags, reference tags, and data type tags; Obtaining group labels, reference labels, and data type labels corresponding to original and target wellbore trajectory data; According to the reference tag type of the original wellbore trajectory data, determining a reference converter corresponding to the reference tag type; The corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group labels, data type labels and unit mapping tables of the original and target wellbore trajectory data.
2. A method for mapping wellbore trajectory data based on metadata tags according to claim 1, characterized in that: The method of identifying different metadata tags for different wellbore trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the wellbore trajectory data includes: Classify the data into group labels according to functional usage scenarios, wherein the group labels include display group labels, storage group labels, and algorithm group labels; Classifying the data into reference labels according to the processing scenario, wherein the reference labels include unit reference, orientation reference and depth reference; The data is classified into data type labels according to the characteristics of the borehole trajectory data, and the data type labels include length data, depth data, angle data and angle change rate data.
3. A method for mapping wellbore trajectory data based on metadata tags according to claim 2, characterized in that: The group label classification of data according to functional usage scenarios includes: Identify the data displayed on the interface as a display group label, wherein the display group label identifies the unit and reference of the data usage interface; Identifying the data stored in the database as a storage group tag, wherein the storage group tag identifies the unit and basis of the data using the database; The data in use for computation is identified as an algorithm group tag, wherein the algorithm group tag identifies a unit and a basis of an algorithm used by the data.
4. A method for mapping wellbore trajectory data based on metadata tags according to claim 2, characterized in that: The benchmark label classification of the data according to the processing scenario includes: Identify the data that needs to be converted into units as the unit system basis; Identify data that require processing of rotations and / or offsets with respect to true north and grid north as orientation datums; The data required to process the offset in the depth direction is identified as a depth reference.
5. A method for mapping wellbore trajectory data based on metadata tags according to claim 4, characterized in that: Identify data that needs to handle rotations and / or offsets with respect to True North and Grid North as an orientation datum, including: Identify data that needs to handle rotations about true north and grid north as an angular datum; Identify the data that needs to handle the offset between true north and grid north as a coordinate datum.
6. A method for mapping wellbore trajectory data based on metadata tags according to claim 2, characterized in that: The step of classifying the data types according to the characteristics of the well trajectory data includes: Identify the data related to length in the borehole trajectory data as length data; Identify the data related to the depth in the borehole trajectory data as depth data; Identify the data related to the angle in the borehole trajectory data as angle data; The data related to the angle change in the borehole trajectory data are identified as angle change rate data.
7. A method for mapping wellbore trajectory data based on metadata tags according to claim 1, characterized in that: The reference converters include a base converter, a depth reference converter, an angle reference converter, and a coordinate reference converter; The base converter is used to process the unit reference and perform unit conversion; The depth reference converter is used to process the unit reference and the depth reference to convert the depth data; The angle reference converter is used to process the unit reference and the angle reference to convert the angle; The coordinate reference converter is used to process the unit reference and the coordinate reference and to offset the coordinate system.
8. A method for mapping wellbore trajectory data based on metadata tags according to claim 7, characterized in that: When the corresponding reference converter is a base converter, the corresponding reference converter completes the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including: Retrieving the group label and data type label of the original well trajectory data, and determining the unit of the original well trajectory data; Determine the converted data unit according to the data group of the target wellbore trajectory data and in combination with the data type of the original wellbore trajectory data; The basic converter performs data unit system conversion according to the determined converted data units and unit mapping table, that is, completes the unit reference mapping of the original wellbore trajectory data.
9. A method for mapping wellbore trajectory data based on metadata tags according to claim 7, characterized in that: When the corresponding reference converter is a depth reference converter, the corresponding reference converter completes reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including: Retrieve the group label and data type label of the original well trajectory data; Determine the unit of the depth reference value and the unit of the depth value of the original wellbore trajectory data based on the group label and the data type label of the original wellbore trajectory data; Determine the data unit after the depth reference value is converted and the data unit after the depth value is converted according to the data group of the target wellbore trajectory data and in combination with the data type of the original wellbore trajectory data; The depth reference converter sequentially converts the depth reference value data unit system and the depth value data unit system according to the determined data unit after the depth reference value is converted, the data unit after the depth value is converted, and the unit mapping table; Based on the conversion of the depth reference value data unit system and the depth value data unit system, a converted value of the depth reference value and a converted value of the depth value are obtained; The target depth reference value of the wellbore trajectory data is retrieved, and the unit conversion is performed in combination with the converted data unit and the single mapping table to obtain the value after the target depth reference unit conversion; Subtract the converted value of the depth reference value from the converted value of the depth value, and then add the converted value of the target depth reference unit to obtain the depth reference conversion value; The depth reference converter performs depth reference conversion according to the depth reference conversion value, that is, completes the depth reference mapping of the original wellbore trajectory data.
10. A method for mapping wellbore trajectory data based on metadata tags according to claim 7, characterized in that: When the corresponding reference converter is an angle reference converter, the corresponding reference converter completes reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including: Retrieve the group label and data type label of the original well trajectory data; Determine the unit of the reference value and the unit of the data value of the original well trajectory data based on the group label and the data type label of the original well trajectory data; Determine the data unit after the conversion of the reference value and the data unit after the conversion of the data value according to the data group of the target wellbore trajectory data and in combination with the data type of the original wellbore trajectory data; The angle reference converter sequentially converts the reference value data unit system and the data value unit system according to the determined data unit after the reference value is converted, the data unit after the data value is converted, and the unit mapping table; Based on the conversion of the reference value data unit system and the data value unit system, a reference value converted value and a data value converted value are obtained; The target convergence angle of the target wellbore trajectory data is taken out, and the unit system is converted by combining the converted data unit and the single mapping table to obtain the value of the target convergence angle after the unit conversion; Add the value of the reference value to the value after the data value unit is converted, and then subtract the value of the target convergence angle unit converted to obtain the angle reference conversion value; The angle reference converter performs angle reference conversion according to the angle reference conversion value, that is, completes the angle reference mapping of the original wellbore trajectory data.
11. A method for mapping wellbore trajectory data based on metadata tags according to claim 7, characterized in that: When the corresponding reference converter is a coordinate reference converter, the corresponding reference converter completes reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data, including: Retrieve the group label and data type label of the original well trajectory data; Determine the coordinate value data and the reference value of the original wellbore trajectory data based on the group label and the data type label of the original wellbore trajectory data; The coordinate reference converter converts the reference value into radians according to the unit mapping table to obtain a first conversion value; Retrieving a target reference value of target wellbore trajectory data; The coordinate reference converter converts the target reference value into radians according to the unit mapping table to obtain a second conversion value; Based on the first conversion value and the second conversion value, a coordinate reference conversion value is obtained, and the calculation formula of the coordinate reference conversion value is as follows: x1=cos(c2-c1)*x+sin(c2-c1)*y、y1=cos(c2-c1)*y-sin(c2-c1)*x, where (x1, y1) are coordinate reference conversion values, (x, y) are coordinate value data of original wellbore trajectory data, c1 is the first conversion value, and c2 is the second conversion value; The coordinate reference converter performs coordinate reference conversion according to the coordinate reference conversion value, that is, completes the coordinate reference mapping of the original wellbore trajectory data.
12. A method for mapping wellbore trajectory data based on metadata tags according to any one of claims 1 to 11, characterized in that: The unit mapping table includes contents of four levels: the first level, the second level, the third level and the fourth level; The first layer is the unit system, which expresses the unit system used by the data unit; The second layer is the unit class, which belongs to the large classification, including length, angle and angle change rate. Each unit class corresponds to a basic unit; The third layer is the unit family, which is a further classification of the major categories, including depth, azimuth and well deviation; The fourth layer is measurement, which includes various data units.
13. A wellbore trajectory data benchmark mapping system based on metadata tags, characterized in that: include: Identification module: used to identify different metadata tags for different wellbore trajectory data according to the characteristics, functional use scenarios, and processing scenarios of the wellbore trajectory data, wherein the metadata tags include group tags, reference tags, and data type tags; Acquisition module: used to obtain the group labels, reference labels and data type labels corresponding to the original and target wellbore trajectory data; Determination module: used for determining a reference converter corresponding to a reference tag type according to the reference tag type of the original wellbore trajectory data; Conversion module: used for the corresponding reference converter to complete the reference mapping of the original wellbore trajectory data according to the group label, data type label and unit mapping table of the original and target wellbore trajectory data.
14. An electronic device, characterized in that: include: a processor coupled to the memory; The memory is used to store computer programs; The processor is configured to execute the computer program stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or an instruction, and when the program or the instruction is executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 12.
