Method and device for visually presenting measurement and control decoding data while drilling
By drawing and calibrating the curve of the decoded data while drilling, the problem of not being able to display the complete data information in the existing technology is solved, and the simultaneous display of parameter values and accuracy values is realized, which improves the visualization effect of drilling and mining.
Patent Information
- Application Number
- CN202310499159.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2043-05-05
AI Technical Summary
The prior art cannot effectively display the complete information of the decoded data of drilling measurement and control while drilling, resulting in the completeness and intuitiveness of missing feature information during drilling and mining.
By drawing the initial curve of the decoded data of drilling while drilling, and determining the calibration gray value of each point based on preset calibration rules, re-coloring to achieve simultaneous display of parameter values and precision values.
The simultaneous display of parameter values and accuracy values in the decoded data while drilling is realized, providing better visualization effects, and providing better data display for drilling and mining sites and subsequent research.
Smart Images

Figure CN118897907A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of petroleum engineering technology, and in particular to a method, device, electronic device and storage medium for visually presenting measurement and control while drilling decoded data. Background Art
[0002] The decoded data of measurement and control while drilling are engineering parameters or geological parameters measured in real time during the drilling and mining process, which can be used to determine the downhole environment and the working status of the tools, and based on this, the risks that may be encountered during the mining process can be judged in real time, thereby providing safety support for drilling and mining. As the use of the decoded data of measurement and control while drilling becomes more and more common, the demand for the visualization display of the decoded data of measurement and control while drilling is also increasing.
[0003] At present, the visualization display scheme for the MWD decoded data adopted in the prior art cannot display the complete information of the MWD decoded data. Summary of the invention
[0004] In order to solve the above technical problems, the solution of the present disclosure is proposed. The embodiments of the present disclosure provide a method, device, electronic device and storage medium for visually presenting measurement and control while drilling decoded data.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for visually presenting measurement while drilling (MTD) decoded data is provided, comprising: drawing an initial curve of each type of target MDT decoded data according to classification results of a plurality of acquired target MDT decoded data; wherein the target MDT decoded data is the MDT decoded data to be visually presented; based on a preset calibration rule, determining a calibration gray value for each point in the initial curve of each type of target MDT decoded data; wherein one point corresponds to one target MDT decoded data, and one point corresponds to one calibration gray value; based on the correspondence between the points in the initial curve of each type of target MDT decoded data and the calibration gray value, recoloring the corresponding points using the calibration gray value to obtain a calibration curve; and pushing the calibration curve to a user terminal.
[0006] According to a second aspect of an embodiment of the present disclosure, a device for visually presenting measurement while drilling (MTD) decoded data is provided, comprising: a preprocessing module, configured to: draw an initial curve of each type of target MDT decoded data according to classification results of a plurality of acquired target MDT decoded data; wherein the target MDT decoded data is the MDT decoded data to be visually presented; a calibration module, configured to: determine a calibration gray value of each point in the initial curve of each type of target MDT decoded data based on a preset calibration rule; wherein one point corresponds to one target MDT decoded data, and one point corresponds to one calibration gray value; a recoloring execution module, configured to: based on the correspondence between the points in the initial curve of each type of target MDT decoded data and the calibration gray value, recolor the corresponding points using the calibration gray value to obtain a calibration curve; and a push module, configured to push the calibration curve to a user terminal.
[0007] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method for visually presenting downhole measurement and control decoding data described in the present disclosure.
[0008] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program for executing the method for visually presenting measurement and control while drilling decoded data described in the present disclosure.
[0009] In summary, by using the method for visually presenting the decoded data of measurement and control while drilling according to the above embodiment of the present disclosure, the calibrated gray value of each point in the curve can be determined, wherein the calibrated gray value of each point can be determined by using the parameter value and the precision value corresponding to the point, and then the curve can be recolored by using the calibrated gray value. The curve obtained in this way at least realizes the simultaneous display of the parameter value and the precision value in the decoded data of measurement and control while drilling, thereby providing a better visualization effect for the drilling and production site or subsequent research. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
[0011] Figure 1It is a flowchart of a method for visually presenting measurement and control while drilling decoded data provided by an exemplary embodiment of the present disclosure;
[0012] Figure 2 This disclosure Figure 1 An exemplary flow chart of a method for visually presenting measurement and control while drilling decoded data provided by an embodiment;
[0013] Figure 3 This disclosure Figure 1 Another exemplary flowchart of a method for visually presenting measurement and control while drilling decoded data provided by an embodiment;
[0014] Figure 4 This disclosure Figure 1 Another exemplary flowchart of a method for visually presenting measurement and control while drilling decoded data provided by an embodiment;
[0015] Figure 5 This disclosure Figure 1 Another exemplary flow chart of a method for visually presenting measurement and control while drilling decoded data provided in an embodiment;
[0016] Figure 6 is a schematic diagram of the calibration curve provided by an exemplary embodiment of the present disclosure;
[0017] Figure 7 It is a structural schematic diagram of a device for visually presenting measurement and control while drilling decoding data provided by an exemplary embodiment of the present disclosure;
[0018] Figure 8 This disclosure Figure 1 An exemplary structural diagram of a device for visually presenting measurement and control while drilling decoded data provided by an embodiment;
[0019] Fig. 9 It is a structural schematic diagram of an application embodiment of the electronic device disclosed in the present invention. DETAILED DESCRIPTION
[0020] The present disclosure is further described below in conjunction with the embodiments shown in the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
[0021] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
[0022] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0023] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0024] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0025] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0026] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0027] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0028] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0029] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0030] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0031] The embodiments of the present disclosure can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0032] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0033] First, the inventive concept of the present disclosure is summarized in conjunction with the background technology.
[0034] After repeated research, the inventors of the present disclosure have found that the visual display scheme for the while drilling measurement and control decoded data adopted in the prior art cannot display the complete information of the while drilling measurement and control decoded data because:
[0035] In the prior art, when drawing the visualization curve of the while drilling measurement and control decoding data, the RGB color model is often used, and a three-dimensional rectangular coordinate system is adopted to respectively represent the grayscale values of the three color RGB channels. Therefore, the curve can only display one parameter characteristic information (for example, parameter value) in a single color; that is, any point on the curve cannot fully display the complete characteristic information (for example, parameter value and precision value) of the while drilling measurement and control decoding data, thereby causing the loss of characteristic information in the visualization display link, affecting the integrity, diversity, and intuitiveness of the characteristic information display.
[0036] In view of this, the inventors of the present disclosure consider:
[0037] The collected while drilling measurement and control decoded data can be used to draw a curve first, and then the calibration gray value (determined based on the precision value and parameter value) of each point in the curve can be determined by color correction (for example, RGB three-channel gray value), and then the curve can be recolored using the calibration gray value. The curve obtained in this way at least realizes the simultaneous display of the parameter value and the precision value in the while drilling measurement and control decoded data, thereby providing a better visualization effect for the drilling and production site or subsequent research.
[0038] Combine the following Figures 1 to 9 , the scheme for visually presenting the decoding data of measurement and control while drilling disclosed in the present invention is described.
[0039] Exemplary Methods
[0040] Figure 1 1 is a flow chart of a method for visually presenting the decoded data of measurement and control while drilling provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to an electronic device (for example, a server), such as Figure 1 As shown, the method for visually presenting the decoding data of measurement and control while drilling includes the following steps:
[0041] S1. According to the classification results of the acquired multiple target measurement and control while drilling decoded data, an initial curve of each type of target measurement and control while drilling decoded data is drawn, wherein the target measurement and control while drilling decoded data is the measurement and control while drilling decoded data to be visualized.
[0042] Among them, the present disclosure does not limit the specific value of "multiple" and the specific value of the number of target downhole measurement and control decoding data included in each type of target downhole measurement and control decoding data; both can be determined based on the data collection situation at the drilling and production site.
[0043] Classification may refer to: extracting data belonging to a category from multiple target LWD decoded data by classification, and storing them in a data file for drawing the initial curve. The data file corresponding to each category of target LWD decoded data may be used as the classification result.
[0044] The specific classification and how to draw the initial curve will be described below and will not be elaborated here.
[0045] In addition, the present disclosure does not limit the method of "obtaining" multiple target LWD decoded data. For example, it may include but is not limited to the paradigm of direct reading or sampling to obtain the LWD decoded data transmitted back in real time from the drilling site.
[0046] In addition, the present disclosure does not limit the specific form of "obtaining" multiple target measurement and control while drilling decoded data. For example, it can be in the form of a data table; and the data table may include different types of target measurement and control while drilling decoded data.
[0047] S2. Determine the calibration gray value of each point in the initial curve of the measurement and control while drilling decoded data of each type of target based on a preset calibration rule.
[0048] Among them, one of the points corresponds to one of the target measurement and control while drilling decoding data, and one of the points corresponds to one of the calibration grayscale values.
[0049] It should be noted that the calibration grayscale value of each point can be determined according to the parameter value and the precision value in the target LWD decoding data corresponding to the point. The specific steps will be described below and will not be repeated here.
[0050] S3. Based on the correspondence between the points in the initial curve of the measurement and control while drilling decoded data of each type of target and the calibration grayscale value, the corresponding points are recolored using the calibration grayscale value to obtain a calibration curve.
[0051] The “corresponding relationship” may be determined with reference to step S2, which is described in detail below.
[0052] S4. Push the calibration curve to the user terminal.
[0053] Among them, since the above steps S1 to S3 are executed on the server side, in order to facilitate users to view the re-colored initial curve, it is necessary to push it to the user terminal.
[0054] Here, the user terminal may include but is not limited to dedicated display terminals, smart phones, tablet computers and other terminals at the drilling and production site.
[0055] The server and the client can communicate with each other via wired or wireless means, wherein the wireless means may include but are not limited to WIFI, mobile communication network, etc.
[0056] In summary, by using the method for visually presenting the decoded data of measurement and control while drilling according to the above embodiment of the present disclosure, the calibrated gray value of each point in the curve can be determined, wherein the calibrated gray value of each point can be determined by using the parameter value and the precision value corresponding to the point, and then the curve can be recolored by using the calibrated gray value. The curve obtained in this way at least realizes the simultaneous display of the parameter value and the precision value in the decoded data of measurement and control while drilling, thereby providing a better visualization effect for the drilling and production site or subsequent research.
[0057] exist Figure 1Based on the embodiment, as an optional example, each target measurement and control while drilling decoded data at least includes data acquisition time, parameter name, original parameter value and original accuracy value.
[0058] Reference Figure 2 Step S1 "drawing an initial curve of each type of target while drilling measurement and control decoding data according to the classification results of the multiple target while drilling measurement and control decoding data obtained" may include the following steps:
[0059] S110, classifying the plurality of target while-drilling measurement and control decoding data using the parameter name, and classifying the data acquisition time, original parameter value, and original precision value belonging to the same parameter name into one category as a group of data to be processed.
[0060] The data acquisition time, original parameter value and original precision value belonging to the same target while-drilling measurement and control decoding data are stored correspondingly.
[0061] It should be explained here that since multiple target LWD decoding data may include data with different parameter names, it is necessary to implement data classification based on parameter names using the above step S110 and save the classification results in their respective corresponding data files for easy query.
[0062] Among them, a classification result may correspond to a group of data to be processed, and the group of data to be processed is named or identified by its corresponding parameter name.
[0063] In addition, the present disclosure does not limit the form of the data file; for example, the data file may be an array.
[0064] In an optional example, assuming that a group of data to be processed corresponds to a data table (for example, Table 1), the data corresponding to each row of the data table can be stored in the corresponding array in the form of key-value pairs for easy query. Specifically, for each data corresponding to any row of the data table, in the array, the data collection time can be used as the key value (i.e., Key), and the original parameter value and the original precision can be used as the value (i.e., Value), respectively, to form a corresponding key-value pair (i.e., Key-Value) as an element in the array for storage; that is, stored in the form of (data collection time, original parameter value), (data collection time, original precision value). Furthermore, (data collection time, original parameter value) and (data collection time, original precision value) can be divided into two arrays for storage.
[0065] In an optional example, for a drilling and production scenario, after classifying the multiple target downhole measurement and control decoding data obtained, multiple groups of data to be processed are obtained. Assume that one group of data to be processed is
[0066] The data are shown in Table 1.
[0067]
[0068]
[0069] Table 1
[0070] Referring to Table 1, each row of data in the group of data to be processed may include four items: data collection time, parameter name, original parameter value, and original precision value. Among them, the parameter name is AZM; regarding the data collection time, take 16.24.02 as an example, where 16 represents "hour", 24 represents "minute", and 02 represents "second"; its full time meaning is 16:24:02. In the subsequent steps, the corresponding initial curve can be drawn based on the data to be processed in Table 1.
[0071] S120, for each group of the data to be processed, in a preset coordinate system, draw the initial curve with the original parameter value and the data acquisition time as coordinates, wherein the data acquisition time and the original parameter value belonging to the same target LWD decoded data form a point.
[0072] In step S120, the preset coordinate system may be a plane rectangular coordinate system, wherein the original parameter value is used as the horizontal coordinate and the data acquisition time is used as the vertical coordinate; the scales of the horizontal and vertical axes may be set as required, and the present disclosure does not limit this.
[0073] Specifically, for each group of the data to be processed, the corresponding point of each data (including parameter name, data collection time, original parameter value and original precision value) in the plane rectangular coordinate system is determined, so that the initial curve can be drawn. The initial curve name can be named according to the parameter name corresponding to each group of the data to be processed.
[0074] By using the method of the above embodiment, an initial curve for each group of the data to be processed can be drawn to prepare for the subsequent step of performing recoloring based on the calibrated grayscale value.
[0075] exist Figure 1 , 2 Based on the embodiment, as an optional example, the mapping data range of each group of the data to be processed includes a first mapping data range of the original parameter value and a second mapping data range of the original precision value; the grayscale value range includes the grayscale value range of each of the three RGB channels.
[0076] Reference Figure 3 Step S2 "determining the calibration gray value of each point in the initial curve of the measurement and control while drilling decoded data of each type of target based on the preset calibration rule" can be performed by including the steps of:
[0077] S21. Based on the preset data processing rules, determine the mapping data range of each group of the data to be processed and the gray value range that matches the mapping data range. S22. For each group of the data to be processed, determine the calibration gray value corresponding to each new parameter value of the group of data to be processed within the mapping data range using the boundary value of the mapping data range of the group of data to be processed and the boundary value of the gray value range that matches the mapping data range. S23. For each new parameter value of the data to be processed within the mapping data range, determine the original parameter value corresponding to the new parameter value based on the mapping relationship between the original data range and the mapping data range; S24. For each new parameter value of the data to be processed within the mapping data range, based on the point corresponding to the original parameter value corresponding to the new parameter value in the associated initial curve, use the calibration gray value corresponding to the new parameter value as the calibration gray value of the point.
[0078] By using the method of the above embodiment, the calibrated gray value of each point in the initial curve of the measurement and control while drilling decoded data of each type of target can be determined, so as to prepare for subsequent recoloring.
[0079] In the present disclosure, step S21 can be implemented in a variety of available ways. For example, referring to Figure 4 In an optional example, step S21 may include the following steps:
[0080] S2110. Based on mathematical statistics, determine a first initial data range of original parameter values and a second initial data range of original precision values in each group of the data to be processed.
[0081] The step S2110 may be specifically implemented as follows:
[0082] First, based on sorting the original parameter values in each group of data to be processed according to numerical values, a first initial data range of the original parameter values is determined, wherein the effective maximum value of the original parameter values is used as the upper limit of the first initial data range, and the effective minimum value of the original parameter values is used as the lower limit of the first initial data range. Secondly, based on sorting the original precision values in each group of data to be processed according to numerical values, a second initial data range of the original precision values is determined, wherein the effective maximum value of the original precision values is used as the upper limit of the second initial data range, and the effective minimum value of the original precision values is used as the lower limit of the second initial data range.
[0083] It should be noted that after the original parameter values and original precision values are sorted according to numerical size, the invalid values are screened out to ensure that the values in the first initial data range of the original parameter values and the second initial data range of the original precision values are all valid values.
[0084] Taking the original parameter value as an example, the method of filtering out invalid values may be, for example:
[0085] Calculate the original parameter mean of the data sequence whose original parameter values are sorted by numerical value, then calculate the difference between each original parameter and the original parameter mean, delete the original parameters whose difference is greater than the preset difference threshold; retain the remaining original parameters.
[0086] S2120. Using preset mapping rules, map each original parameter value in each group of data to be processed from the first initial data range to the first mapping data range, and map each original precision value in each group of data to be processed from the second initial data range to the second mapping data range.
[0087] Wherein, according to the situation, the step S2120 can be specifically implemented as follows:
[0088] Corresponding to the case of “mapping each original parameter value in each group of data to be processed from the first initial data range to the first mapped data range”:
[0089] First, based on the preset quantile rule, determine the first quantile value and the second quantile value of the original parameter value in each group of data to be processed; secondly, replace the upper limit of the first initial data range with the first quantile value of the original parameter value, and replace the lower limit of the first initial data range with the second quantile value of the original parameter value, so as to obtain the first mapped data range; finally, according to calculation formula (1), map each original parameter value in each group of data to be processed except the upper limit and the lower limit of the first initial data range to the first mapped data range;
[0090]
[0091] Where i represents the serial number of the original parameter value in each group of data to be processed; μ i represents any original parameter value other than the upper limit and lower limit of the first initial data range in each group of data to be processed before mapping; val i Represents any new parameter value other than the upper limit and lower limit of the first mapping data range in each group of data to be processed after mapping; valMAX represents the upper limit of the first mapping data range; valMIN represents the lower limit of the first mapping data range.
[0092] For the case of “mapping each original precision value in each group of data to be processed from the second initial data range to the second mapped data range”:
[0093] First, based on the preset quantile rule, determine the first quantile value and the second quantile value of the original precision value in each group of data to be processed; secondly, replace the upper limit of the second initial data range with the first quantile value of the original precision value, and replace the lower limit of the second initial data range with the second quantile value of the original precision value, so as to obtain the second mapped data range; finally, according to calculation formula (2), map each original precision value in each group of data to be processed except the upper limit and the lower limit of the second initial data range to the second mapped data range;
[0094]
[0095] Where j represents the serial number of the original precision value in each group of data to be processed; θ j represents any original precision value other than the upper limit and lower limit of the second initial data range in each group of data to be processed before mapping; j Represents any new precision value other than the upper limit and lower limit of the second mapping data range in each group of data to be processed after mapping; preMAX represents the upper limit of the second mapping data range; preMIN represents the lower limit of the second mapping data range.
[0096] It should be noted that the present disclosure does not limit the selection of the first quantile value and the second quantile value, which can be determined according to the quantile rule preset by the user. For example, the first quantile value can be the upper 80% quantile value, and the second quantile value can be the lower 20% quantile value.
[0097] S2130. For each group of data to be processed, determine the grayscale value range of each of the RGB three channels by using the first initial data range and the first mapped data range in the group of data to be processed.
[0098] Here, step S2130 may be specifically implemented as follows:
[0099] First, based on the first initial data range and the upper and lower limits of the first mapped data range, using calculation formulas (3) to (4), determine a general grayscale value range that matches the first mapped data range; secondly, using a preset configuration rule and the upper limit of the general grayscale value range, determine the grayscale values of the RGB channels corresponding to the upper limit of the first mapped data range as the upper limits of the grayscale value ranges of the RGB channels; finally, using a preset configuration rule and the lower limit of the general grayscale value range, determine the grayscale values of the RGB channels corresponding to the lower limit of the first mapped data range as the lower limits of the grayscale value ranges of the RGB channels;
[0100]
[0101]
[0102] Among them, G max represents the upper limit of the general gray value range; G min represents the lower limit of the general grayscale value range; valMAX represents the upper limit of the first mapping data range; valMIN represents the lower limit of the first mapping data range; μ max represents the upper limit of the first initial data range; μ min Indicates the lower limit of the first initial data range.
[0103] The present disclosure does not limit the above-mentioned "preset configuration rule". For example, it can be a random number between (0, 1). Based on this, "using the preset configuration rule and the upper limit of the general grayscale value range to determine the grayscale values of the three RGB channels corresponding to the upper limit of the first mapping data range" can be specifically implemented as follows:
[0104] Taking the calculation of the grayscale value of the R channel in the RGB three channels as an example, a random number between (0, 1) is generated, for example, 0.46, and the random number 0.46 is equal to the upper limit G of the general grayscale value range. max The result of multiplication is (0.46×G max) The grayscale value of the R three channels corresponding to the upper limit of the first mapping data range.
[0105] Similarly, the grayscale values of the G channel and the B channel corresponding to the upper limit of the first mapping data range can be calculated; and the grayscale values of the RGB channels corresponding to the lower limit of the first mapping data range can be calculated.
[0106] In the present disclosure, step S22 can be implemented in a variety of available ways. For example, referring to Figure 5 In an optional example, step S22 may include the following steps:
[0107] S2210. For each new parameter value, determine the primary correction grayscale value of each of the RGB channels corresponding to the new parameter value by using the preset first correction rule, the boundary value of the first mapping data range, and the boundary value of the grayscale value range of each of the RGB channels.
[0108] The step S2210 may be specifically implemented as follows:
[0109] Using the following calculation formulas (5) to (7), calculate the primary correction grayscale value of each of the three RGB channels corresponding to the new parameter value;
[0110]
[0111]
[0112]
[0113] Among them, R1 represents the gray value of the R channel once corrected; R max Indicates the upper limit of the grayscale value range of the R channel; R min Indicates the lower limit of the grayscale value range of the R channel; G1 indicates the grayscale value of the G channel once corrected; G max Indicates the upper limit of the grayscale value range of the G channel; G min Indicates the lower limit of the grayscale value range of the G channel; B1 indicates the grayscale value of the B channel once corrected; B max Indicates the upper limit of the grayscale value range of the B channel; B min represents the lower limit of the grayscale value range of the B channel; val represents the new parameter value within the first mapping data range; valMAX represents the upper limit of the first mapping data range; valMIN represents the lower limit of the first mapping data range.
[0114] S2220: Using a preset conversion rule, convert the primary corrected grayscale values of the three RGB channels corresponding to the new parameter values into HSI values.
[0115] The step S2220 may be specifically implemented as follows:
[0116] Using the following calculation formulas (8) to (12), the primary correction grayscale values of the three RGB channels corresponding to the new parameter values are converted into HSI values;
[0117]
[0118]
[0119] S=0 (10)
[0120]
[0121]
[0122] Among them, when calculating S, when the value of I is 0, the calculation formula (10) is used; when the value of I is between 0 and 0.6, the calculation formula (11) is used; when the value of I is between 0.6 and 1, the calculation formula (12) is used;
[0123] H represents the hue value; I represents the brightness value; S represents the saturation value; x, n respectively represent one of the first-corrected grayscale values of the RGB three channels corresponding to the new parameter value, and the difference between the two is the largest; f represents the maximum difference between the first-corrected grayscale values of the RGB three channels corresponding to the new parameter value; f0 represents the minimum difference between the first-corrected grayscale values of the RGB three channels corresponding to the new parameter value; K represents a constant, and its value is 0, 2 or 4.
[0124] S2230, calibrate the HSI value by using a preset second correction rule, a boundary value of the second mapping data range, and a new precision value of the measurement and control while drilling decoded data belonging to the same target as the new parameter value to obtain a corrected HSI value.
[0125] The step S2230 may be specifically implemented as follows:
[0126] The HSI value is corrected using the following calculation formulas (13) to (16) to obtain a corrected HSI value;
[0127]
[0128] H1=H (14)
[0129] S1=S×rp (15)
[0130] I1=I×rp (16)
[0131] Among them, pre represents the new precision value of the same target downhole measurement and control decoding data as the new parameter value; rp represents the precision index; preMAX represents the upper limit of the second mapping data range; preMIN represents the lower limit of the second mapping data range; H represents the hue value; I represents the brightness value; S represents the saturation value; H1 represents the corrected hue value; I1 represents the corrected brightness value; S1 represents the corrected saturation value.
[0132] S2240: Convert the corrected HSI value into RGB three-channel grayscale value as the calibration grayscale value.
[0133] Among them, the step S2240 can be specifically implemented as follows:
[0134] Each corrected HSI value may be converted into a corresponding RGB three-channel grayscale value according to circumstances.
[0135] When the corrected hue value is 0≤H1<120°, the corresponding RGB three-channel grayscale value can be calculated according to the following calculation formulas (17) to (19):
[0136] B′=I1(1-S1) (17)
[0137]
[0138] G′=3I1-(R′+B′) (19)
[0139] Among them, R represents the grayscale value of the R channel corresponding to the conversion using the corrected HSI value; G represents the grayscale value of the G channel corresponding to the conversion using the corrected HSI value; B represents the grayscale value of the B channel corresponding to the conversion using the corrected HSI value; H1 represents the corrected hue value; I1 represents the corrected brightness value; S1 represents the corrected saturation value.
[0140] When the corrected hue value is 120°≤H1<240°, the corresponding RGB three-channel grayscale value can be calculated according to the following calculation formulas (20) to (23):
[0141] H′=H1-120 (20)
[0142] R′=I1(1-S1) (21)
[0143]
[0144] B′=3I1-(R′+G′) (23)
[0145] Among them, R represents the grayscale value of the R channel corresponding to the conversion using the corrected HSI value; G represents the grayscale value of the G channel corresponding to the conversion using the corrected HSI value; B represents the grayscale value of the B channel corresponding to the conversion using the corrected HSI value; H1 represents the corrected hue value; I1 represents the corrected brightness value; S1 represents the corrected saturation value; H represents the result of subtracting 120 from the corrected hue value.
[0146] When the corrected hue value is 240°≤H1<360°, the corresponding RGB three-channel grayscale value can be calculated according to the following calculation formulas (24) to (27):
[0147] H″=H1-240 (24)
[0148] G′=I1(1-S1) (25)
[0149]
[0150] R′=3I1-(R′+B′) (27)
[0151] Among them, R represents the grayscale value of the R channel corresponding to the conversion using the corrected HSI value; G represents the grayscale value of the G channel corresponding to the conversion using the corrected HSI value; B represents the grayscale value of the B channel corresponding to the conversion using the corrected HSI value; H1 represents the corrected hue value; I1 represents the corrected brightness value; S1 represents the corrected saturation value; H represents the result of subtracting 240 from the corrected hue value.
[0152] In the present disclosure, by utilizing steps S23 and S24 in the above-mentioned embodiment, the correspondence between the points in the initial curve of the downhole measurement and control decoding data of each type of target and the calibration grayscale value can be determined; that is, a mapping relationship between each point in each initial curve and the corresponding calibration grayscale value is established; thereby preparing for the execution of step S3.
[0153] In summary, by using the method for visually presenting the decoded data of measurement and control while drilling according to the above embodiment of the present disclosure, the calibrated gray value of each point in the curve can be determined, wherein the calibrated gray value of each point can be determined by using the parameter value and the precision value corresponding to the point, and then the curve can be recolored by using the calibrated gray value. The curve obtained in this way at least realizes the simultaneous display of the parameter value and the precision value in the decoded data of measurement and control while drilling, thereby providing a better visualization effect for the drilling and production site or subsequent research.
[0154] The following summarizes the method for visually presenting the measurement and control while drilling decoded data according to the above embodiment of the present disclosure in conjunction with specific examples.
[0155] Assume that for a certain drilling and production scenario, 100 target LWD measurement and control decoded data are simulated using random numbers. Then, after classifying the 100 target LWD measurement and control decoded data, a group of data to be processed is determined (refer to Table 2, including 10 data), and the parameter name is AZ.
[0156] Data collection time Parameter name Original parameter value Original precision value 16.24.00 AZ 56.158 6.65 16.24.10 AZ 176.20 6.22 16.24.20 AZ 49.885 2.26 16.24.30 AZ 22.455 3.93 16.24.40 AZ 98.626 0.10 16.24.50 AZ 108.67 8.37 16.24.60 AZ 5.38 4.08 16.24.70 AZ 109.31 7.85 16.24.80 AZ 145.04 9.00 16.24.90 AZ 72.027 6.79
[0157] Table 2
[0158] Based on the data to be processed in Table 2, the following steps can be performed in sequence:
[0159] Step 1, executing the method of steps S110 to S120 in the above embodiment of the present disclosure, to draw an initial curve AZ;
[0160] Step 2, executing step S2110 in the above embodiment of the present disclosure, it can be determined that the first initial data range of the original parameter value is 5.38~176.20, and the second initial data range of the original precision value is 0.10~9.00; wherein the average value of the original parameter value is 89.20; and the average value of the original precision value is 4.86.
[0161] Step 3, execute step S2120 in the above embodiment of the present disclosure, assuming that the first quantile value can be the upper 80% quantile value and the second quantile value can be the lower 20% quantile value; then the first mapping data range can be determined to be 20 to 150, wherein any original parameter value in the group of data to be processed is transformed into a corresponding new parameter value after mapping.
[0162] Similarly, it can be determined that the second mapped data range is 0.15 to 8.5, wherein any original precision value in the group of data to be processed is transformed into a corresponding new precision value after being mapped.
[0163] Step 4: Execute step S2130 in the above embodiment of the present disclosure to determine the grayscale value range of each of the three channels of RGB of the group of data to be processed. Specifically, the grayscale value range of the R channel is (30-240), the grayscale value range of the G channel is (45-220), and the grayscale value range of the B channel is (20-225).
[0164] In step 5, for a new parameter value, execute step S2210 in the above embodiment of the present disclosure to determine the first-corrected grayscale value of each of the three RGB channels corresponding to the new parameter value; that is, the grayscale value of the R channel is 173, the grayscale value of the G channel is 169, and the grayscale value of the B channel is 169.
[0165] In step 6, for the new parameter value in step 5, execute step S2220 in the above embodiment of the present disclosure to determine the HSI value corresponding to the new parameter value; that is, the hue value H is 0, the brightness value I is 170, and the saturation value S1 is 1.
[0166] In step 7, for the HSI value in step 6, execute step S2230 in the above embodiment of the present disclosure, and it can be determined that the precision value index is 0.73; the corrected hue value H1 is 0, the corrected brightness value I1 is 124.1, and the saturation value S is 0.73.
[0167] Step 8, for the corrected HSI value in step 7, execute step S2240 in the above embodiment of the present disclosure to determine the calibration grayscale value corresponding to the new parameter value; that is, the grayscale value of the R channel is 12, the grayscale value of the G channel is 0, and the grayscale value of the B channel is 12.
[0168] By repeating the above steps 5 to 8, the calibration grayscale value corresponding to each parameter value in the group of data to be processed can be determined.
[0169] Step 9, executing steps S23 to S24 in the above embodiment of the present disclosure, a mapping relationship between each point in the initial curve AZ and the corresponding calibration gray value can be determined, that is, the calibration gray value of each point in the initial curve AZ can be determined;
[0170] Step 10, executing step S3 in the above embodiment of the present disclosure, the calibration gray value can be used to recolor the corresponding points in the initial curve AZ to obtain the calibration curve AZ.
[0171] Step 11: Push the calibration curve AZ to the user terminal.
[0172] like Figure 6 As shown, it is the calibration curve AZ, wherein the ordinate is the data acquisition time, the abscissa is the original parameter value, and the name of the curve is the parameter name AZ. Figure 6 It can be found that the color of the curve has changes in light and dark. The changes in light and dark can show the control characteristics of the precision, so that more information can be displayed on the same curve. For example, the curve has obvious changes at 16.24.42 seconds.
[0173] In summary, by using the method for visually presenting the decoded data of measurement and control while drilling according to the above embodiment of the present disclosure, the calibrated gray value of each point in the curve can be determined, wherein the calibrated gray value of each point can be determined by using the parameter value and the precision value corresponding to the point, and then the curve can be recolored by using the calibrated gray value. The curve obtained in this way at least realizes the simultaneous display of the parameter value and the precision value in the decoded data of measurement and control while drilling, thereby providing a better visualization effect for the drilling and production site or subsequent research.
[0174] Exemplary Devices
[0175] It should be understood that the method for visually presenting the decoded data of measurement and control while drilling in the aforementioned embodiment of this document can also be similarly applied to the following device for visually presenting the decoded data of measurement and control while drilling with similar extension; for the sake of simplicity, it is not described in detail.
[0176] Figure 7 FIG. 1 is a schematic diagram of a device structure for visually presenting measurement and control while drilling decoding data provided by an exemplary embodiment of the present disclosure. Figure 7 , the device for visually presenting the decoding data of measurement and control while drilling comprises:
[0177] The preprocessing module 710 is configured to: draw an initial curve of each type of target measurement and control while drilling decoded data according to the classification results of the multiple target measurement and control while drilling decoded data obtained; wherein the target measurement and control while drilling decoded data is the measurement and control while drilling decoded data to be visualized; the calibration module 720 is configured to: determine the calibration gray value of each point in the initial curve of each type of target measurement and control while drilling decoded data based on a preset calibration rule; wherein one point corresponds to one target measurement and control while drilling decoded data, and one point corresponds to one calibration gray value; the recoloring execution module 730 is configured to: based on the correspondence between the points in the initial curve of each type of target measurement and control while drilling decoded data and the calibration gray value, recolor the corresponding points using the calibration gray value to obtain a calibration curve; the push module 740: pushes the calibration curve to the user terminal.
[0178] Optionally, each target measurement and control while drilling decoded data includes at least data acquisition time, parameter name, original parameter value and original precision value.
[0179] Optionally, the preprocessing module 710 is further configured to: classify the multiple target downhole measurement and control decoded data using the parameter name, and classify the data acquisition time, original parameter value and original precision value belonging to the same parameter name into one category as a group of data to be processed; wherein the data acquisition time, original parameter value and original precision value belonging to the same target downhole measurement and control decoded data are stored correspondingly; for each group of the data to be processed, in a preset coordinate system, draw the initial curve with the original parameter value and the data acquisition time as coordinates; wherein the data acquisition time and the original parameter value belonging to the same target downhole measurement and control decoded data form a point.
[0180] Optionally, refer to Figure 8The calibration module 720 includes: a first processing submodule 7210, configured to: determine, based on a preset data processing rule, a mapping data range of each group of the data to be processed and a gray value range matching the mapping data range; a second processing submodule 7220, configured to: for each group of the data to be processed, determine, using the boundary value of the mapping data range of the group of the data to be processed and the boundary value of the gray value range matching the mapping data range, a calibration gray value corresponding to each new parameter value of the group of the data to be processed within the mapping data range; a third processing submodule 7230, configured to: for each new parameter value of the data to be processed within the mapping data range, determine, based on a mapping relationship between the original data range and the mapping data range, the original parameter value corresponding to the new parameter value; a fourth processing submodule 7230, configured to: for each new parameter value of the data to be processed within the mapping data range, based on a point corresponding to the original parameter value corresponding to the new parameter value in the associated initial curve, use the calibration gray value corresponding to the new parameter value as the calibration gray value of the point.
[0181] Optionally, the mapping data range of each group of the data to be processed includes a first mapping data range of the original parameter value and a second mapping data range of the original precision value; the gray value range includes the gray value range of each of the three RGB channels.
[0182] Optionally, the first processing submodule 7210 is further configured to: determine the first initial data range of the original parameter values and the second initial data range of the original precision values in each group of the data to be processed based on mathematical statistics; map each original parameter value in each group of the data to be processed from the first initial data range to the first mapping data range, and map each original precision value in each group of the data to be processed from the second initial data range to the second mapping data range using a preset mapping rule; and determine the grayscale value range of each of the three RGB channels for each group of data to be processed using the first initial data range and the first mapping data range in the group of data to be processed.
[0183] Optionally, the first processing submodule 7210 is further configured to: determine a first initial data range of the original parameter value based on sorting the original parameter values in each group of data to be processed according to numerical size, wherein the effective maximum value of the original parameter value is used as the upper limit of the first initial data range, and the effective minimum value of the original parameter value is used as the lower limit of the first initial data range; determine a second initial data range of the original precision value based on sorting the original precision values in each group of data to be processed according to numerical size, wherein the effective maximum value of the original precision value is used as the upper limit of the second initial data range, and the effective minimum value of the original precision value is used as the lower limit of the second initial data range.
[0184] Optionally, the first processing submodule 7210 is further configured to: determine the first quantile value and the second quantile value of the original parameter value in each group of data to be processed based on a preset quantile rule, and determine the first quantile value and the second quantile value of the original precision value in each group of data to be processed; replace the upper limit of the first initial data range with the first quantile value of the original parameter value, and replace the lower limit of the first initial data range with the second quantile value of the original parameter value, to obtain the first mapped data range; according to calculation formula (1), map each original parameter value in each group of data to be processed except the upper limit and the lower limit of the first initial data range to the first mapped data range;
[0185]
[0186] Where i represents the serial number of the original parameter value in each group of data to be processed; μ i represents any original parameter value other than the upper limit and lower limit of the first initial data range in each group of data to be processed before mapping; val i represents any new parameter value other than the upper limit and lower limit of the first mapping data range in each group of data to be processed after mapping; valMAX represents the upper limit of the first mapping data range; valMIN represents the lower limit of the first mapping data range;
[0187] and, replacing the upper limit of the second initial data range with the first quantile value of the original precision value, and replacing the lower limit of the second initial data range with the second quantile value of the original precision value, to obtain the second mapped data range;
[0188] According to calculation formula (2), each original precision value in each group of to-be-processed data except the upper limit and the lower limit of the second initial data range is mapped to the second mapped data range;
[0189]
[0190] Where j represents the serial number of the original precision value in each group of data to be processed; θ j represents any original precision value other than the upper limit and lower limit of the second initial data range in each group of data to be processed before mapping; j Represents any new precision value other than the upper limit and lower limit of the second mapping data range in each group of data to be processed after mapping; preMAX represents the upper limit of the second mapping data range; preMIN represents the lower limit of the second mapping data range.
[0191] Optionally, the first processing submodule 7210 is further configured to: determine a general grayscale value range matching the first mapping data range based on the first initial data range and the upper and lower limits of the first mapping data range using calculation formulas (3) to (4); determine the grayscale values of the three RGB channels corresponding to the upper limit of the first mapping data range using a preset configuration rule and the upper limit of the general grayscale value range as the upper limit of the grayscale value range of the three RGB channels; determine the grayscale values of the three RGB channels corresponding to the lower limit of the first mapping data range using a preset configuration rule and the lower limit of the general grayscale value range as the lower limit of the grayscale value range of the three RGB channels;
[0192]
[0193]
[0194] Among them, G max represents the upper limit of the general gray value range; G min represents the lower limit of the general grayscale value range; valMAX represents the upper limit of the first mapping data range; valMIN represents the lower limit of the first mapping data range; μ max represents the upper limit of the first initial data range; μ min Indicates the lower limit of the first initial data range.
[0195] Optionally, the second processing submodule 7220 is further configured to: for each new parameter value, determine the first-corrected grayscale value of each of the RGB channels corresponding to the new parameter value by using the preset first correction rule, the boundary value of the first mapping data range, and the boundary value of the grayscale value range of each of the RGB channels; convert the first-corrected grayscale value of each of the RGB channels corresponding to the new parameter value into an HSI value by using the preset conversion rule; correct the HSI value by using the preset second correction rule, the boundary value of the second mapping data range, and the new accuracy value of the downhole measurement and control decoding data belonging to the same target as the new parameter value to obtain a corrected HSI value; convert the corrected HSI value into a grayscale value of the RGB channels as the calibration grayscale value.
[0196] Optionally, the second processing submodule 7220 is further configured to: calculate the primary correction grayscale value of each of the RGB three channels corresponding to the new parameter value using the following calculation formulas (5) to (7);
[0197]
[0198]
[0199]
[0200] Among them, R1 represents the gray value of the R channel once corrected; R max Indicates the upper limit of the grayscale value range of the R channel; R min Indicates the lower limit of the grayscale value range of the R channel; G1 indicates the grayscale value of the G channel once corrected; G max Indicates the upper limit of the grayscale value range of the G channel; G min Indicates the lower limit of the grayscale value range of the G channel; B1 indicates the grayscale value of the B channel once corrected; B max Indicates the upper limit of the grayscale value range of the B channel; B min represents the lower limit of the grayscale value range of the B channel; val represents the new parameter value within the first mapping data range; valMAX represents the upper limit of the first mapping data range; valMIN represents the lower limit of the first mapping data range.
[0201] Optionally, the second processing submodule 7220 is further configured to: convert the primary corrected grayscale values of the three RGB channels corresponding to the new parameter value into HSI values using the following calculation formulas (8) to (12);
[0202]
[0203]
[0204] S=0 (10)
[0205]
[0206]
[0207] Among them, when calculating S, when the value of I is 0, the calculation formula (10) is used; when the value of I is between 0 and 0.6, the calculation formula (11) is used; when the value of I is between 0.6 and 1, the calculation formula (12) is used;
[0208] H represents the hue value; I represents the brightness value; S represents the saturation value; x, n respectively represent one of the first-corrected grayscale values of the RGB three channels corresponding to the new parameter value, and the difference between the two is the largest; f represents the maximum difference between the first-corrected grayscale values of the RGB three channels corresponding to the new parameter value; f0 represents the minimum difference between the first-corrected grayscale values of the RGB three channels corresponding to the new parameter value; K represents a constant, and its value is 0, 2 or 4.
[0209] Optionally, the second processing submodule 7220 is further configured to: correct the HSI value using the following calculation formulas (13) to (16) to obtain a corrected HSI value;
[0210]
[0211] H1=H (14)
[0212] S1=S×rp (15)
[0213] I1=I×rp (16)
[0214] Among them, pre represents the new precision value of the same target downhole measurement and control decoding data as the new parameter value; rp represents the precision index; preMAX represents the upper limit of the second mapping data range; preMIN represents the lower limit of the second mapping data range; H represents the hue value; I represents the brightness value; S represents the saturation value; H1 represents the corrected hue value; I1 represents the corrected brightness value; S1 represents the corrected saturation value.
[0215] In summary, by using the apparatus for visually presenting the decoded data of measurement and control while drilling according to the above embodiment of the present disclosure, the calibrated grayscale value of each point in the curve can be determined, wherein the calibrated grayscale value of each point can be determined by using the parameter value and the precision value corresponding to the point, and then the curve can be recolored by using the calibrated grayscale value. The curve obtained in this way at least realizes the simultaneous display of the parameter value and the precision value in the decoded data of measurement and control while drilling, thereby providing a better visualization effect for the drilling and production site or subsequent research.
[0216] Exemplary Electronic Devices
[0217] In addition, an embodiment of the present disclosure further provides an electronic device, comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, the method for visually presenting downhole measurement and control decoding data described in any of the above embodiments of the present disclosure is implemented.
[0218] Fig. 9 Schematic diagram of the structure of an application embodiment of the electronic device disclosed in the present invention. Fig. 9 The electronic device according to the embodiment of the present disclosure is described. The electronic device may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them.
[0219] like Fig. 9As shown, the electronic device includes one or more processors and a memory. The processor may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. The memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may run the program instructions to implement the method for visually presenting the decoding data of the measurement and control while drilling of the various embodiments of the present disclosure described above and / or other desired functions.
[0220] In one example, the electronic device may further include: an input device and an output device, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). In addition, the input device may also include, for example, a keyboard, a mouse, etc. The output device may output various information to the outside, including determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.
[0221] Of course, to simplify, Fig. 9 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.
[0222] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the method for visually presenting while drilling measurement and control decoding data according to various embodiments of the present disclosure described in the above part of this specification.
[0223] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0224] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the processor executes the steps of the method for visually presenting downhole measurement and control decoding data according to various embodiments of the present disclosure described in the above part of this specification.
[0225] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0226] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.
[0227] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0228] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0229] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0230] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0231] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0232] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0233] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for visually presenting measurement and control while drilling decoded data, comprising: According to the classification results of the multiple target while drilling measurement and control decoded data obtained, an initial curve of each type of target while drilling measurement and control decoded data is drawn; wherein the target while drilling measurement and control decoded data is the while drilling measurement and control decoded data to be visualized; Based on a preset calibration rule, determine the calibration grayscale value of each point in the initial curve of each type of target measurement and control while drilling decoded data; wherein one of the points corresponds to one of the target measurement and control while drilling decoded data, and one of the points corresponds to one of the calibration grayscale values; Based on the correspondence between the points in the initial curve of the measurement and control while drilling decoded data of each type of target and the calibration grayscale value, the corresponding points are recolored using the calibration grayscale value to obtain a calibration curve; The calibration curve is pushed to the user terminal.
2. The method according to claim 1, wherein: Each target drilling measurement and control decoding data at least includes data acquisition time, parameter name, original parameter value and original accuracy value; The method of drawing an initial curve of each type of target while drilling measurement and control decoding data according to the classification results of the multiple target while drilling measurement and control decoding data obtained includes: The plurality of target while drilling measurement and control decoded data are classified by using the parameter name, and the data acquisition time, original parameter value and original precision value belonging to the same parameter name are classified into one category as a group of data to be processed; wherein the data acquisition time, original parameter value and original precision value belonging to the same target while drilling measurement and control decoded data are stored correspondingly; For each group of the data to be processed, the initial curve is drawn in a preset coordinate system with the original parameter value and the data acquisition time as coordinates; wherein the data acquisition time and the original parameter value belonging to the same target LWD decoding data form a point.
3. The method according to claim 2, wherein: The step of determining the calibration grayscale value of each point in the initial curve of the measurement and control while drilling decoded data of each type of target based on a preset calibration rule includes: Based on a preset data processing rule, determining a mapping data range of each group of the data to be processed and a grayscale value range matching the mapping data range; For each group of the data to be processed, using the boundary value of the mapping data range of the group of the data to be processed and the boundary value of the gray value range matching the mapping data range, determine the calibration gray value corresponding to each new parameter value of the group of the data to be processed within the mapping data range; For each new parameter value of the data to be processed within the mapped data range, determining the original parameter value corresponding to the new parameter value based on a mapping relationship between the original data range and the mapped data range; For each new parameter value of the data to be processed within the mapping data range, based on the point corresponding to the original parameter value corresponding to the new parameter value in the associated initial curve, the calibration grayscale value corresponding to the new parameter value is used as the calibration grayscale value of the point.
4. The method according to claim 3, wherein: The mapping data range of each group of the to-be-processed data includes a first mapping data range of the original parameter value and a second mapping data range of the original precision value; The grayscale value range includes the grayscale value ranges of the three RGB channels respectively.
5. The method according to claim 4, wherein: The determining, based on the preset data processing rule, a mapping data range of each group of the to-be-processed data and a grayscale value range matching the mapping data range comprises: Based on mathematical statistics, determining a first initial data range of original parameter values and a second initial data range of original precision values in each group of the data to be processed; Using a preset mapping rule, each original parameter value in each group of data to be processed is mapped from the first initial data range to the first mapped data range, and each original precision value in each group of data to be processed is mapped from the second initial data range to the second mapped data range; For each group of data to be processed, the grayscale value ranges of the three RGB channels are determined by using the first initial data range and the first mapped data range in the group of data to be processed.
6. The method according to claim 5, wherein: The determining, based on mathematical statistics, a first initial data range of original parameter values and a second initial data range of original precision values in each group of the data to be processed comprises: Based on sorting the original parameter values in each group of data to be processed according to numerical values, determining a first initial data range of the original parameter values, wherein the effective maximum value of the original parameter values is used as the upper limit of the first initial data range, and the effective minimum value of the original parameter values is used as the lower limit of the first initial data range; Based on sorting the original precision values in each group of data to be processed according to numerical size, a second initial data range of the original precision values is determined, wherein the effective maximum value of the original precision value is used as the upper limit of the second initial data range, and the effective minimum value of the original precision value is used as the lower limit of the second initial data range.
7. The method according to claim 5, wherein: The using a preset mapping rule to map each original parameter value in each group of data to be processed from the first initial data range to the first mapped data range, and mapping each original precision value in each group of data to be processed from the second initial data range to the second mapped data range, comprises: Based on the preset quantile rule, determine the first quantile value and the second quantile value of the original parameter value in each group of data to be processed, and determine the first quantile value and the second quantile value of the original precision value in each group of data to be processed; Replacing the upper limit of the first initial data range with the first quantile value of the original parameter value, and replacing the lower limit of the first initial data range with the second quantile value of the original parameter value, to obtain the first mapped data range; According to calculation formula (1), each original parameter value in each group of to-be-processed data except the upper limit and the lower limit of the first initial data range is mapped to the first mapped data range; Where i represents the serial number of the original parameter value in each group of data to be processed; μ i represents any original parameter value other than the upper limit and lower limit of the first initial data range in each group of data to be processed before mapping; val i represents any new parameter value other than the upper limit and lower limit of the first mapping data range in each group of data to be processed after mapping; valMAX represents the upper limit of the first mapping data range; valMIN represents the lower limit of the first mapping data range; as well as, Replacing the upper limit of the second initial data range with the first quantile value of the original precision value, and replacing the lower limit of the second initial data range with the second quantile value of the original precision value, to obtain the second mapped data range; According to calculation formula (2), each original precision value in each group of to-be-processed data except the upper limit and the lower limit of the second initial data range is mapped to the second mapped data range; Where j represents the serial number of the original precision value in each group of data to be processed; θ j represents any original precision value other than the upper limit and lower limit of the second initial data range in each group of data to be processed before mapping; j Represents any new precision value other than the upper limit and lower limit of the second mapping data range in each group of data to be processed after mapping; preMAX represents the upper limit of the second mapping data range; preMIN represents the lower limit of the second mapping data range.
8. The method according to claim 5, wherein: For each group of data to be processed, using the first initial data range and the first mapped data range in the group of data to be processed, determining the grayscale value range of each of the three RGB channels, including: Based on the first initial data range and the upper limit and the lower limit of the first mapped data range, using calculation formulas (3) to (4), determine a universal grayscale value range that matches the first mapped data range; Using a preset configuration rule and an upper limit of the general grayscale value range, determine the grayscale values of the RGB channels corresponding to the upper limit of the first mapping data range as the upper limits of the grayscale value ranges of the RGB channels; Using the preset configuration rule and the lower limit of the general grayscale value range, determine the grayscale values of the RGB channels corresponding to the lower limit of the first mapping data range as the lower limits of the grayscale value ranges of the RGB channels; Among them, G max represents the upper limit of the general gray value range; G min represents the lower limit of the general grayscale value range; valMAX represents the upper limit of the first mapping data range; valMIN represents the lower limit of the first mapping data range; μ max represents the upper limit of the first initial data range; μ min Indicates the lower limit of the first initial data range.
9. The method according to claim 4, wherein: For each group of the data to be processed, using the boundary value of the mapping data range of the group of the data to be processed and the boundary value of the grayscale value range matching the mapping data range, determining the calibration grayscale corresponding to each new parameter value of the group of the data to be processed within the mapping data range, including: For each new parameter value, the first correction gray value of each of the RGB channels corresponding to the new parameter value is determined by using the preset first correction rule, the boundary value of the first mapping data range, and the boundary value of the gray value range of each of the RGB channels; Using a preset conversion rule, convert the primary corrected grayscale values of the RGB three channels corresponding to the new parameter value into HSI values; The HSI value is corrected by using a preset second correction rule, a boundary value of the second mapping data range, and a new precision value of the measurement and control while drilling decoded data belonging to the same target as the new parameter value to obtain a corrected HSI value; The corrected HSI value is converted into RGB three-channel grayscale value as the calibration grayscale value.
10. The method according to claim 9, wherein: The method of determining, for each new parameter value, a first correction gray value of each of the three RGB channels corresponding to the new parameter value by using a preset first correction rule, a boundary value of the first mapping data range, and a boundary value of each gray value range of the three RGB channels, comprises: Using the following calculation formulas (5) to (7), calculate the primary correction grayscale value of each of the three RGB channels corresponding to the new parameter value; Among them, R1 represents the gray value of the R channel once corrected; R max Indicates the upper limit of the grayscale value range of the R channel; R min Indicates the lower limit of the grayscale value range of the R channel; G1 indicates the grayscale value of the G channel once corrected; G max Indicates the upper limit of the grayscale value range of the G channel; G min Indicates the lower limit of the grayscale value range of the G channel; B1 indicates the grayscale value of the B channel once corrected; B max Indicates the upper limit of the grayscale value range of the B channel; B min represents the lower limit of the grayscale value range of the B channel; val represents the new parameter value within the first mapping data range; valMAX represents the upper limit of the first mapping data range; valMIN represents the lower limit of the first mapping data range.
11. The method according to claim 9, wherein: The method of converting the primary corrected grayscale values of the three RGB channels corresponding to the new parameter values into HSI values by using a preset conversion rule includes: Using the following calculation formulas (8) to (12), the primary correction grayscale values of the three RGB channels corresponding to the new parameter values are converted into HSI values; S=0 (10) Among them, when calculating S, when the value of I is 0, the calculation formula (10) is used; when the value of I is between 0 and 0.6, the calculation formula (11) is used; when the value of I is between 0.6 and 1, the calculation formula (12) is used; H represents the hue value; I represents the brightness value; S represents the saturation value; x, n respectively represent one of the first-corrected grayscale values of the RGB three channels corresponding to the new parameter value, and the difference between the two is the largest; f represents the maximum difference between the first-corrected grayscale values of the RGB three channels corresponding to the new parameter value; f0 represents the minimum difference between the first-corrected grayscale values of the RGB three channels corresponding to the new parameter value; K represents a constant, and its value is 0, 2 or 4.
12. The method according to claim 9, wherein: The method of correcting the HSI value by using the preset second correction rule, the boundary value of the second mapping data range, and the new precision value of the measurement and control while drilling decoded data belonging to the same target as the new parameter value to obtain the corrected HSI value includes: The HSI value is corrected using the following calculation formulas (13) to (16) to obtain a corrected HSI value; H1=H (14) S1=S×rp (15) I1=I×rp (16) Among them, pre represents the new precision value of the same target downhole measurement and control decoding data as the new parameter value; rp represents the precision index; preMAX represents the upper limit of the second mapping data range; preMIN represents the lower limit of the second mapping data range; H represents the hue value; I represents the brightness value; S represents the saturation value; H1 represents the corrected hue value; I1 represents the corrected brightness value; S1 represents the corrected saturation value.
13. A device for visually presenting measurement and control while drilling decoded data, comprising: The preprocessing module is configured to: draw an initial curve of each type of target while drilling measurement and control decoded data according to the classification results of the multiple target while drilling measurement and control decoded data obtained; wherein the target while drilling measurement and control decoded data is the while drilling measurement and control decoded data to be visualized; The calibration module is configured to: determine the calibration grayscale value of each point in the initial curve of each type of target measurement and control while drilling decoded data based on a preset calibration rule; wherein one of the points corresponds to one of the target measurement and control while drilling decoded data, and one of the points corresponds to one of the calibration grayscale values; The recoloring execution module is configured to: based on the correspondence between the points in the initial curve of the measurement and control while drilling decoded data of each type of target and the calibration grayscale value, recolor the corresponding points using the calibration grayscale value to obtain a calibration curve; Push module: pushes the calibration curve to the user terminal.
14. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method for visually presenting the measurement and control while drilling decoded data described in any one of claims 1 to 12.
15. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method for visually presenting measurement and control while drilling decoded data according to any one of claims 1 to 12.
Citation Information
Patent Citations
Underwater oil drilling platform visualization method and system
CN115470440A
Image processor, image processing method, program, and recording medium
JP2010062920A
Augmenting user interface to convey a state of drilling operations
US20200125225A1
