Power data processing method, device, equipment and storage medium

By acquiring and analyzing the curve data of the power failure recording curve, and automatically detecting and storing the turning sampling time and data, the problem of low power data analysis in the prior art is solved, and more efficient data analysis is achieved.

CN113761737BActive Publication Date: 2025-03-04ANNING BUREAU OF ULTRA HIGH VOLTAGE TRANSMISSION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111027085.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-02
Publication Date
2025-03-04
Estimated Expiration
2041-09-02

AI Technical Summary

Technical Problem

The existing power data processing methods cannot effectively reflect the displacement data in the power fault recording curve, resulting in inefficient data analysis.

Method used

By obtaining the curve data of the target power failure recording curve, the change in the power data value at the sampling time is detected based on the target detection strategy, the transition sampling time and its corresponding power data value are determined, and these key data are stored for easy analysis.

Benefits of technology

It realizes automatic detection and storage of turning data in the power failure recording curve, improves the efficiency of power data analysis, and reduces the need to manually find turning data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113761737B_ABST
    Figure CN113761737B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, equipment and storage medium for processing electric power data, and belongs to the field of application test technology. The method for processing electric power data includes: obtaining curve data corresponding to a target electric power fault recording curve; for each sampling moment in the curve data, detecting the change of the electric power data value corresponding to the sampling moment compared with the electric power data value corresponding to the target sampling moment; according to the change of the electric power data value corresponding to each sampling moment, determining the turning sampling moment and the electric power data value corresponding to the turning sampling moment from the curve data; storing the starting sampling moment, turning sampling moment, end sampling moment, and the electric power data values ​​corresponding to the starting sampling moment, turning sampling moment and end sampling moment in the curve data, for analysis of the target electric power fault recording curve. The method for processing electric power data provided in the present application can improve the analysis efficiency of electric power data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and storage medium for processing power data. Background Art

[0002] Power fault recording is a waveform record that records the changes of multiple variables in the transient process of the power system over time. The recording file of power fault recording is an important data for research and analysis of power grid characteristics.

[0003] The traditional method of processing power data is to generate a recording file based on the collected power data information. The recording file specifies the name, sampling rate, number of points, and data information of each recording curve set. However, some important information that is beneficial to recording analysis, such as the displacement data in the curve, is a problem that users are very concerned about. However, the existing recording files do not reflect this information, and the recording analysis software needs to be manually calculated by the user after reading the recording file.

[0004] Therefore, the existing power data processing methods will affect the efficiency of data analysis. Summary of the invention

[0005] Based on this, it is necessary to provide a method, device, equipment and storage medium for processing power data to improve the analysis efficiency of power data in response to the above technical problems.

[0006] In a first aspect of an embodiment of the present application, a method for processing power data is provided, the method comprising:

[0007] Acquire curve data corresponding to a target power fault recording curve, the curve data including power data values ​​measured at a plurality of sampling moments, and the curve data is used to fit the target power fault recording curve;

[0008] For each sampling moment in the curve data, based on the target detection strategy, the change of the power data value corresponding to the sampling moment compared with the power data value corresponding to the target sampling moment is detected, and the target sampling moment is the sampling moment before the sampling moment or the sampling moment after the sampling moment;

[0009] According to the change of the power data value corresponding to each sampling time, the turning sampling time and the power data value corresponding to the turning sampling time are determined from the curve data;

[0010] The starting sampling time, turning sampling time, ending sampling time, and the power data values ​​corresponding to the starting sampling time, turning sampling time, and ending sampling time in the curve data are stored for analysis of the target power fault recording curve.

[0011] In one of the embodiments, based on the target detection strategy, before detecting the change of the power data value corresponding to the sampling moment compared to the power data value corresponding to the target sampling moment, the method also includes: obtaining the curve type of the target power fault recording curve, the curve type including a switch type, a broken line type and a third type other than the switch type and the broken line type; determining the target detection strategy according to the curve type.

[0012] In one embodiment, based on the target detection strategy, detecting the change of the power data value corresponding to the sampling time compared with the power data value corresponding to the target sampling time includes:

[0013] When the curve type is a switch type, the power data value at the sampling moment is compared with the power data value at the previous sampling moment;

[0014] According to the change of the power data value corresponding to each sampling time, the turning sampling time and the power data value corresponding to the turning sampling time are determined from the curve data, including:

[0015] If the power data value at the sampling moment is different from the power data value at the previous sampling moment, the sampling moment is determined as the transition sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the transition sampling moment.

[0016] In one embodiment, based on the target detection strategy, detecting the change of the power data value corresponding to the sampling time compared with the power data value corresponding to the target sampling time includes:

[0017] When the curve type is a broken line type or the third type, the power data value at the sampling moment is compared with the power data value at the previous sampling moment and the power data value at the next sampling moment;

[0018] According to the change of the power data value corresponding to each sampling time, the turning sampling time and the power data value corresponding to the turning sampling time are determined from the curve data, including:

[0019] If the power data value at the previous sampling moment and the power data value at the next sampling moment are both greater than or less than the power data value at the sampling moment, the sampling moment is determined as the turning sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the turning sampling moment.

[0020] In one embodiment, the target power fault recording curve includes simulation information and curve data, the simulation information is stored in a first file, the curve data is stored in a second file, and the starting sampling time, the turning sampling time, the ending sampling time in the curve data, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time are stored, including:

[0021] When the curve type is a switch type or a broken line type, create a target file, store the start sampling time, the turning sampling time, the end sampling time, and the power data values ​​corresponding to the start sampling time, the turning sampling time and the end sampling time in the target file, and delete the second file.

[0022] In one embodiment, the target power fault recording curve includes simulation information and curve data, the simulation information is stored in a first file, the curve data is stored in a second file, and the starting sampling time, the turning sampling time, the ending sampling time in the curve data, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time are stored, including:

[0023] When the curve type is the third type, a target file is created, and the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time, and the ending sampling time are stored in the target file, and the target file is stored in the first file.

[0024] In one embodiment, after storing the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time, and the ending sampling time in the curve data, the method further includes:

[0025] When the curve type is a switch type or a broken line type, in a preset coordinate system, the power data value at the starting sampling time, the power data value at the turning sampling time, and the power data value at the ending sampling time are generated, and according to the changes in the power data values ​​corresponding to each sampling time, the target power fault recording curve is generated.

[0026] According to a second aspect of an embodiment of the present application, a device for processing power data is provided, the device comprising:

[0027] An acquisition module, used to acquire curve data corresponding to a target power fault recording curve, the curve data including power data values ​​measured at a plurality of sampling moments, and the curve data is used to fit the target power fault recording curve;

[0028] A detection module, for detecting, for each sampling moment in the curve data, based on a target detection strategy, a power data value corresponding to a target sampling moment adjacent in time to the sampling moment and a change in the power data value;

[0029] A determination module, used to determine the turning sampling moment and the power data value corresponding to the turning sampling moment from the curve data according to the change of the power data value corresponding to each sampling moment;

[0030] The storage module is used to store the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time in the curve data, so as to analyze the target power fault recording curve.

[0031] According to a third aspect of an embodiment of the present application, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. The computer program is executed by the processor to implement the method for processing power data according to the first aspect of the embodiment of the present application.

[0032] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. The computer program is executed by a processor to implement the method for processing power data according to the first aspect of the embodiments of the present application.

[0033] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0034] The power data processing method provided in the embodiment of the present application obtains curve data corresponding to the target power fault recording curve, and the curve data includes power data values ​​measured at multiple sampling moments, which are used to fit the target power fault recording curve. Then, for each sampling moment in the curve data, based on the target detection strategy, the change of the power data value corresponding to the sampling moment compared with the power data value corresponding to the target sampling moment is detected. The target sampling moment is the sampling moment before the sampling moment or the sampling moment after the sampling moment. According to the change of the power data value corresponding to each sampling moment, the turning sampling moment and the power data value corresponding to the turning sampling moment are determined from the curve data, and the starting sampling moment, the turning sampling moment, the ending sampling moment, and the power data values ​​corresponding to the starting sampling moment, the turning sampling moment and the ending sampling moment in the curve data are stored for analysis of the target power fault recording curve. The power data processing method provided in the embodiment of the present application can automatically detect the change in the power data value corresponding to the sampling moment compared with the power data value at the sampling moment adjacent to the sampling moment, and can automatically determine the turning sampling moment and the power data value corresponding to the turning sampling moment, and store the determined turning data. When it is necessary to analyze a certain power fault recording curve, there is no need to manually search for these turning data, thereby improving the analysis efficiency of the power data. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flowchart of a method for processing power data provided in an embodiment of the present application;

[0036] Figure 2A flowchart of a technical process for detecting a change in a power data value corresponding to a sampling time compared to a power data value corresponding to a target sampling time based on an exemplary target detection strategy;

[0037] Figure 3 A flowchart of another method for processing power data provided in an embodiment of the present application;

[0038] Figure 4 A structural block diagram of a power data processing device provided in an embodiment of the present application;

[0039] Figure 5 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0041] Power fault recording is a waveform record that records the changes of multiple variables in the transient process of the power system over time. The recording file of power fault recording is an important data for research and analysis of power grid characteristics.

[0042] The traditional method of processing power data is to generate a recording file based on the collected power data information. The recording file specifies the name, sampling rate, number of points, and data information of each recording curve set. However, some important information that is beneficial to recording analysis, such as the displacement data in the curve, is a problem that users are very concerned about. However, the existing recording files do not reflect this information, and the recording analysis software needs to be manually calculated by the user after reading the recording file. Therefore, the existing power data processing method will affect the efficiency of data analysis.

[0043] Based on this, it is necessary to provide a power data processing method, device, equipment and storage medium for the above-mentioned technical problems. In the power data processing method, by obtaining curve data corresponding to the target power fault recording curve, the curve data includes power data values ​​measured at multiple sampling times, which are used to fit the target power fault recording curve. Then, for each sampling time in the curve data, based on the target detection strategy, the change of the power data value corresponding to the sampling time compared with the power data value corresponding to the target sampling time is detected. The target sampling time is the sampling time before the sampling time or the sampling time after the sampling time. According to the change of the power data value corresponding to each sampling time, the turning sampling time and the power data value corresponding to the turning sampling time are determined from the curve data, and the starting sampling time, turning sampling time, ending sampling time, and the power data values ​​corresponding to the starting sampling time, turning sampling time and ending sampling time in the curve data are stored for analysis of the target power fault recording curve. The power data processing method provided in the embodiment of the present application can automatically detect the change in the power data value corresponding to the sampling moment compared with the power data value at the previous sampling moment or the sampling moment after the sampling moment, and can automatically determine the turning sampling moment and the power data value corresponding to the turning sampling moment, and store the determined turning data. When it is necessary to analyze a certain power fault recording curve, there is no need to manually search for these turning data, thereby improving the analysis efficiency of the power data.

[0044] It should be noted that the application test method provided in the embodiment of the present application can be executed by a power data processing device, which can be implemented as part or all of a computer device through software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is a server as an example for explanation.

[0045] Optionally, the computer device may be, but is not limited to, various personal computers, laptop computers, and tablet computers, or the computer device may be a server, which may be implemented as an independent server or a server cluster consisting of multiple servers.

[0046] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0047] Please refer to Figure 1 , which shows a flow chart of a method for processing power data provided by an embodiment of the present application, and the method for processing power data can be applied to the computer device mentioned above. Figure 1 As shown, the method for processing power data may include the following steps:

[0048] Step 101: Obtain curve data corresponding to a target power fault recording curve.

[0049] The curve data includes power data values ​​measured at multiple sampling moments, and the curve data is used to fit the target power fault recording curve.

[0050] Among them, the power fault recording records the waveform records formed by the changes of multiple variables in the transient process of the power system over time, and requires a common format for the transient data exchange of the power system to be stored. In this storage format, a set of files can store multiple recording curves, and the file consists of a cfg file and a dat file with the same main file name, among which the cfg file is used to describe the basic information such as the recording curve name, switch quantity / analog quantity, unit, etc., and the dat file is used to store curve data, among which the curve data includes the actual sampling points of the recording and the power data values ​​corresponding to the sampling points.

[0051] Step 102: for each sampling moment in the curve data, based on the target detection strategy, detect the change of the power data value corresponding to the sampling moment compared with the power data value corresponding to the target sampling moment.

[0052] Among them, the target sampling moment is the adjacent sampling moment of the sampling moment, that is, for each sampling moment in the curve data, based on the target detection strategy, the change of the power data value corresponding to the sampling moment compared with the previous sampling moment and / or the next sampling moment is detected.

[0053] Step 103: According to the change of the power data value corresponding to each sampling time, determine the turning sampling time and the power data value corresponding to the turning sampling time from the curve data.

[0054] Among them, the turning sampling moment and the power data value corresponding to the turning sampling moment are key data for analyzing the power fault recording curve.

[0055] By comparing the detected power data value corresponding to the sampling moment with the power data value corresponding to the target sampling moment, the turning sampling moment in the curve data and the power data value corresponding to the turning sampling moment can be determined from the curve data.

[0056] Step 104: Store the starting sampling time, the turning sampling time, the ending sampling time in the curve data, and the power data values ​​corresponding to the starting sampling time, the turning sampling time, and the ending sampling time.

[0057] The starting sampling time, turning sampling time, ending sampling time, and the power data values ​​corresponding to the starting sampling time, turning sampling time, and ending sampling time in the curve data are stored to facilitate the analysis of the target power fault recording curve based on these stored turning data next time.

[0058] The power data processing method provided in the embodiment of the present application obtains curve data corresponding to the target power fault recording curve, and the curve data includes power data values ​​measured at multiple sampling moments, which are used to fit the target power fault recording curve. Then, for each sampling moment in the curve data, based on the target detection strategy, the change of the power data value corresponding to the sampling moment compared with the power data value corresponding to the target sampling moment is detected. The target sampling moment is the sampling moment before the sampling moment or the sampling moment after the sampling moment. According to the change of the power data value corresponding to each sampling moment, the turning sampling moment and the power data value corresponding to the turning sampling moment are determined from the curve data, and the starting sampling moment, the turning sampling moment, the ending sampling moment, and the power data values ​​corresponding to the starting sampling moment, the turning sampling moment and the ending sampling moment in the curve data are stored for analysis of the target power fault recording curve. The power data processing method provided in the embodiment of the present application can automatically detect the change in the power data value corresponding to the sampling moment compared with the power data value at the previous sampling moment or the sampling moment after the sampling moment, and can automatically determine the turning sampling moment and the power data value corresponding to the turning sampling moment, and store the determined turning data. When it is necessary to analyze a certain power fault recording curve, there is no need to manually search for these turning data, thereby improving the analysis efficiency of the power data.

[0059] In one embodiment, if Figure 2 As shown, the technical process of detecting the change of the power data value corresponding to the sampling time compared with the power data value corresponding to the target sampling time based on the target detection strategy, the process includes the following steps:

[0060] Step 201: Obtain the curve type of the target power fault recording curve.

[0061] The curve types include a switch value type, a broken line type, and a third type other than the switch value type and the broken line type.

[0062] Among them, the switch quantity type is the switch quantity curve in the power fault recording curve, and the power data value of each sampling moment of the switch quantity curve is 0 or 1. The broken line type means that the power fault recording curve is a broken line graph. The third type refers to other curves in the power fault recording curve except the switch quantity type and the broken line type.

[0063] Step 202: Determine the target detection strategy according to the curve type.

[0064] When detecting the change in the power data value corresponding to the sampling moment compared to the power data value corresponding to the target sampling moment, the specific detection strategy is different depending on the curve type. The specific detection strategies for different types are described in detail in the following embodiments.

[0065] This embodiment sets a specific detection strategy according to the curve type when detecting the change of the power data value corresponding to the sampling time compared with the power data value corresponding to the target sampling time, which can improve the detection accuracy and detection efficiency.

[0066] In one embodiment, based on the target detection strategy, detecting the change of the power data value corresponding to the sampling time compared with the power data value corresponding to the target sampling time includes:

[0067] When the curve type is a switch value type, the power data value at the sampling time is compared with the power data value at the previous sampling time.

[0068] According to the changes in the power data values ​​corresponding to each sampling moment, the turning sampling moment and the power data value corresponding to the turning sampling moment are determined from the curve data, including: if the power data value at the sampling moment is different from the power data value at the previous sampling moment, the sampling moment is determined as the turning sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the turning sampling moment.

[0069] Optionally, by comparing the power data value at the sampling moment with the power data value at the previous sampling moment, it is also possible to determine whether the transition sampling moment is shifted upward or downward, that is, from 0 to 1 or from 1 to 0.

[0070] In the actual detection process, when the curve type is a switching quantity type, since the power data value at each sampling moment in the switching quantity curve only includes 0 and 1, it is only necessary to compare whether the power data value at the sampling moment is the same as the power data value at the previous sampling moment. If different, the sampling moment is determined as the turning sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the turning sampling moment.

[0071] In one of the embodiments, based on the target detection strategy, the change of the power data value corresponding to the sampling moment compared with the power data value corresponding to the target sampling moment is detected, including: when the curve type is a broken line type or a third type, the power data value at the sampling moment is compared with the power data value at the previous sampling moment and the power data value at the next sampling moment.

[0072] According to the change of the power data value corresponding to each sampling moment, the turning sampling moment and the power data value corresponding to the turning sampling moment are determined from the curve data, including: if the power data value at the previous sampling moment and the power data value at the next sampling moment are both greater than or less than the power data value at the sampling moment, then the sampling moment is determined as the turning sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the turning sampling moment.

[0073] In the actual detection process, except for other power fault recording curves of switch type, the change of the power data value corresponding to the detection sampling moment compared with the power data value corresponding to the target sampling moment is to compare the power data value at the sampling moment with the power data value at the previous sampling moment and the power data value at the next sampling moment. If the power data value at the previous sampling moment and the power data value at the next sampling moment are both greater than or less than the power data value at the sampling moment, the sampling moment is determined as the turning sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the turning sampling moment.

[0074] In one embodiment, the target power fault recording curve includes simulation information and curve data, the simulation information is stored in a first file, and the curve data is stored in a second file, and the starting sampling time, turning sampling time, ending sampling time, and the power data values ​​corresponding to the starting sampling time, turning sampling time, and ending sampling time in the curve data are stored, including: when the curve type is a switch type or a broken line type, creating a target file, storing the starting sampling time, turning sampling time, ending sampling time, and the power data values ​​corresponding to the starting sampling time, turning sampling time, and ending sampling time in the target file, and deleting the second file.

[0075] Among them, the first file is the cfg file mentioned above, and the simulation information includes: basic information such as the name of the recording curve, switch quantity / analog quantity, unit, etc. The second file is the dat file mentioned above, which is used to store curve data, including the sampling time and the power data value corresponding to the sampling time.

[0076] In the case where the curve type is a switch type or a broken line type, by creating a target file, the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time, and the ending sampling time are stored in the target file, and the second file is deleted. Since the target fault recording curve can be generated by storing the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time, and the ending sampling time in the case where the curve type is a switch type or a broken line type, the original curve data can be deleted. In this way, the original thousands or even hundreds of thousands of original data points of each recording curve are simplified to several to hundreds of key point information, which significantly reduces memory usage.

[0077] In one embodiment, the target power fault recording curve includes simulation information and curve data, the simulation information is stored in a first file, the curve data is stored in a second file, and the starting sampling time, turning sampling time, ending sampling time, and the power data values ​​corresponding to the starting sampling time, turning sampling time, and ending sampling time in the curve data are stored, including: when the curve type is the third type, creating a target file, storing the starting sampling time, turning sampling time, ending sampling time, and the power data values ​​corresponding to the starting sampling time, turning sampling time, and ending sampling time in the target file, and storing the target file in the first file.

[0078] In practice, for types other than switch type and turning type, the starting sampling time, turning sampling time, ending sampling time, and the power data values ​​corresponding to the starting sampling time, turning sampling time and ending sampling time in the curve data can be stored in the first file, so as to analyze the target power fault recording curve according to the stored turning sampling time and the power data values ​​corresponding to the turning sampling time.

[0079] In one of the embodiments, after storing the starting sampling moment, turning sampling moment, ending sampling moment, and the power data values ​​corresponding to the starting sampling moment, turning sampling moment, and ending sampling moment in the curve data, the method further includes: when the curve type is a switch type or a broken line type, in a preset coordinate system, generating the power data value at the starting sampling moment, the power data value at the turning sampling moment, and the power data value at the ending sampling moment, and generating a target power fault recording curve based on the changes in the power data values ​​corresponding to each sampling moment.

[0080] When the curve type is a switch type, generating a target fault recording curve according to the power data value at the start sampling time, the power data value at the turning sampling time, and the power data value at the end sampling time includes:

[0081] In a preset coordinate system, the starting data point, turning data point and ending data point are generated according to the starting sampling time and the power data value at the starting sampling time, the turning sampling time and the power data value at the turning sampling time, and the ending sampling time and the power data value at the ending sampling time, respectively. And according to whether the turning data point is shifted upward or downward, the starting data point, each turning data point and the ending data point are connected to generate the target fault recording curve. Since thousands or even hundreds of thousands of original data points of each fault recording curve are simplified to several to hundreds of key point information, the target fault recording curve can be generated according to the simplified hundreds of key point information to improve the generation efficiency of the target fault recording curve.

[0082] In one embodiment, a method for processing power data is also provided. Figure 3 As shown, the processing method includes the following steps:

[0083] Step 301: Obtain the curve type of the target power fault recording curve.

[0084] Step 302: Determine the target detection strategy according to the curve type.

[0085] Step 303: Obtain curve data corresponding to the target power fault recording curve.

[0086] Step 304: for each sampling moment in the curve data, when the curve type is a switch value type, compare the power data value at the sampling moment with the power data value at the previous sampling moment.

[0087] Step 305: If the power data value at the sampling moment is different from the power data value at the previous sampling moment, the sampling moment is determined as the turning sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the turning sampling moment.

[0088] Step 306: for each sampling moment in the curve data, when the curve type is a broken line type or the third type, respectively compare the power data value at the sampling moment with the power data value at the previous sampling moment and with the power data value at the next sampling moment.

[0089] Step 307: If the power data value at the previous sampling moment and the power data value at the next sampling moment are both greater than or less than the power data value at the sampling moment, the sampling moment is determined as the turning sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the turning sampling moment.

[0090] Step 308: When the curve type is a switch type or a broken line type, create a target file, store the start sampling time, the turning sampling time, the end sampling time, and the power data values ​​corresponding to the start sampling time, the turning sampling time and the end sampling time in the target file, and delete the second file.

[0091] Step 309: When the curve type is the third type, create a target file, store the start sampling time, the turning sampling time, the end sampling time, and the power data values ​​corresponding to the start sampling time, the turning sampling time and the end sampling time in the target file, and store the target file in the first file.

[0092] Step 310: When the curve type is a switch type or a broken line type, in a preset coordinate system, generate the power data value at the start sampling time, the power data value at the turning sampling time, and the power data value at the end sampling time, and generate the target power fault recording curve according to the change of the power data value corresponding to each sampling time.

[0093] The embodiments of the present application provide a power data processing method, apparatus, equipment and storage medium. In the power data processing method, curve data corresponding to a target power fault recording curve is obtained, and the curve data includes power data values ​​measured at multiple sampling moments, which are used to fit the target power fault recording curve. Then, for each sampling moment in the curve data, based on a target detection strategy, a change in the power data value corresponding to the sampling moment compared with the power data value corresponding to the target sampling moment is detected. The target sampling moment is a sampling moment before the sampling moment or a sampling moment after the sampling moment. According to the change in the power data values ​​corresponding to each sampling moment, a turning sampling moment and a power data value corresponding to the turning sampling moment are determined from the curve data, and the starting sampling moment, the turning sampling moment, the ending sampling moment, and the power data values ​​corresponding to the starting sampling moment, the turning sampling moment and the ending sampling moment in the curve data are stored for analysis of the target power fault recording curve. The power data processing method provided in the embodiment of the present application can automatically detect the change in the power data value corresponding to the sampling moment compared with the power data value at the previous sampling moment or the sampling moment after the sampling moment, and can automatically determine the turning sampling moment and the power data value corresponding to the turning sampling moment, and store the determined turning data. When it is necessary to analyze a certain power fault recording curve, there is no need to manually search for these turning data, thereby improving the analysis efficiency of the power data.

[0094] Please refer to Figure 4, which shows a structural block diagram of a power data processing device provided in an embodiment of the present application, the power data processing device can be configured in the above-mentioned computer device, such as Figure 4 As shown, the power data processing device includes: an acquisition module 401 , a detection module 402 , a determination module 403 , and a storage module 404 .

[0095] The acquisition module 401 is used to acquire curve data corresponding to the target power fault recording curve, the curve data includes power data values ​​measured at multiple sampling moments, and the curve data is used to fit the target power fault recording curve;

[0096] A detection module 402 is used to detect, for each sampling moment in the curve data, based on a target detection strategy, a power data value corresponding to a target sampling moment that is temporally adjacent to the sampling moment and a change in the power data value;

[0097] A determination module 403 is used to determine the turning sampling time and the power data value corresponding to the turning sampling time from the curve data according to the change of the power data value corresponding to each sampling time;

[0098] The storage module 404 is used to store the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time in the curve data, so as to analyze the target power fault recording curve.

[0099] In one embodiment, the acquisition module 401 is also used to: obtain the curve type of the target power fault recording curve, the curve type includes a switch quantity type, a broken line type and a third type other than the switch quantity type and the broken line type; the determination module 403 is also used to determine the target detection strategy according to the curve type.

[0100] In one embodiment, the detection module 402 is specifically used to compare the power data value at the sampling moment with the power data value at the previous sampling moment when the curve type is a switch type. The determination module 403 is specifically used to determine the sampling moment as the turning sampling moment if the power data value at the sampling moment is different from the power data value at the previous sampling moment, and determine the power data value corresponding to the sampling moment as the power data value corresponding to the turning sampling moment.

[0101] In one embodiment, the detection module 402 is specifically used to, when the curve type is a broken line type or the third type, respectively compare the power data value at the sampling moment with the power data value at the previous sampling moment and the power data value at the next sampling moment. The determination module 403 is specifically used to determine the sampling moment as the turning sampling moment if the power data value at the previous sampling moment and the power data value at the next sampling moment are both greater than or less than the power data value at the sampling moment, and determine the power data value corresponding to the sampling moment as the power data value corresponding to the turning sampling moment.

[0102] In one embodiment, the target power fault recording curve includes simulation information and curve data, the simulation information is stored in a first file, and the curve data is stored in a second file. The storage module 404 is specifically used for:

[0103] When the curve type is a switch type or a broken line type, create a target file, store the start sampling time, the turning sampling time, the end sampling time, and the power data values ​​corresponding to the start sampling time, the turning sampling time and the end sampling time in the target file, and delete the second file.

[0104] In one embodiment, the target power fault recording curve includes simulation information and curve data, the simulation information is stored in a first file, and the curve data is stored in a second file. The storage module 404 is specifically used for:

[0105] When the curve type is the third type, a target file is created, and the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time, and the ending sampling time are stored in the target file, and the target file is stored in the first file.

[0106] In one embodiment, the device also includes: a generating module 405, which is used to generate the power data value at the starting sampling time, the power data value at the turning sampling time, and the power data value at the ending sampling time in a preset coordinate system when the curve type is a switch quantity type or a broken line type, and generate a target power fault recording curve according to the change of the power data value corresponding to each sampling time.

[0107] The power data processing device provided in the embodiment of the present application can implement the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0108] For the specific definition of the power data processing device, please refer to the definition of the power data processing method above, which will not be repeated here. Each module in the above-mentioned power data processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor of the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the computer device can call and execute the operations corresponding to the above modules.

[0109] Figure 5 The internal structure diagram of a computer device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the computer device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire terminal. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement an application testing method provided in each of the above embodiments. The internal memory provides a cache operating environment for the operating system and computer program in the non-volatile storage medium.

[0110] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0111] In one embodiment of the present application, a computer device is provided, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0112] Obtain curve data corresponding to a target power fault recording curve, the curve data including power data values ​​measured at a plurality of sampling moments, the curve data being used to fit a target power fault recording curve; for each sampling moment in the curve data, based on a target detection strategy, detect changes in the power data value corresponding to the sampling moment compared to the power data value corresponding to the target sampling moment, the target sampling moment being a sampling moment before the sampling moment or a sampling moment after the sampling moment; determine a turning sampling moment and a power data value corresponding to the turning sampling moment from the curve data according to changes in the power data values ​​corresponding to each sampling moment; store the starting sampling moment, the turning sampling moment, the ending sampling moment, and the power data values ​​corresponding to the starting sampling moment, the turning sampling moment, and the ending sampling moment in the curve data, for analysis of the target power fault recording curve.

[0113] In one embodiment, the processor implements the following steps when executing a computer program: obtaining a curve type of a target power fault recording curve, the curve types including a switch quantity type, a broken line type, and a third type other than the switch quantity type and the broken line type; determining a target detection strategy according to the curve type.

[0114] In one embodiment, the processor implements the following steps when executing a computer program: when the curve type is a switch quantity type, compare the power data value at the sampling moment with the power data value at the previous sampling moment; if the power data value at the sampling moment is different from the power data value at the previous sampling moment, determine the sampling moment as the turning sampling moment, and determine the power data value corresponding to the sampling moment as the power data value corresponding to the turning sampling moment.

[0115] In one embodiment, the processor implements the following steps when executing a computer program: when the curve type is a broken line type or a third type, compare the power data value at the sampling moment with the power data value at the previous sampling moment and the power data value at the next sampling moment respectively; determine the turning sampling moment and the power data value corresponding to the turning sampling moment from the curve data according to the change of the power data value corresponding to each sampling moment, including: if the power data value at the previous sampling moment and the power data value at the next sampling moment are both greater than or less than the power data value at the sampling moment, determine the sampling moment as the turning sampling moment, and determine the power data value corresponding to the sampling moment as the power data value corresponding to the turning sampling moment.

[0116] In one embodiment, the target power fault recording curve includes simulation information and curve data, the simulation information is stored in a first file, and the curve data is stored in a second file. When the processor executes the computer program, the following steps are implemented: when the curve type is a switch type or a broken line type, a target file is created, and the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time are stored in the target file, and the second file is deleted.

[0117] In one embodiment, the processor implements the following steps when executing a computer program: when the curve type is the third type, a target file is created, the start sampling time, the turning sampling time, the end sampling time, and the power data values ​​corresponding to the start sampling time, the turning sampling time and the end sampling time are stored in the target file, and the target file is stored in the first file.

[0118] In one embodiment, the processor implements the following steps when executing a computer program: when the curve type is a switch type or a broken line type, in a preset coordinate system, generates the power data value at the starting sampling time, the power data value at the turning sampling time, and the power data value at the ending sampling time, and generates a target power fault recording curve based on the changes in the power data values ​​corresponding to each sampling time.

[0119] The implementation principle and technical effects of the computer device provided in this embodiment are similar to those of the above method embodiments, and will not be repeated here.

[0120] In one embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0121] Obtain curve data corresponding to a target power fault recording curve, the curve data including power data values ​​measured at a plurality of sampling moments, the curve data being used to fit a target power fault recording curve; for each sampling moment in the curve data, based on a target detection strategy, detect changes in the power data value corresponding to the sampling moment compared to the power data value corresponding to the target sampling moment, the target sampling moment being a sampling moment before the sampling moment or a sampling moment after the sampling moment; determine a turning sampling moment and a power data value corresponding to the turning sampling moment from the curve data according to changes in the power data values ​​corresponding to each sampling moment; store the starting sampling moment, the turning sampling moment, the ending sampling moment, and the power data values ​​corresponding to the starting sampling moment, the turning sampling moment, and the ending sampling moment in the curve data, for analysis of the target power fault recording curve.

[0122] In one embodiment, the processor implements the following steps when executing a computer program: obtaining a curve type of a target power fault recording curve, the curve types including a switch quantity type, a broken line type, and a third type other than the switch quantity type and the broken line type; determining a target detection strategy according to the curve type.

[0123] In one embodiment, the processor implements the following steps when executing a computer program: when the curve type is a switch quantity type, compare the power data value at the sampling moment with the power data value at the previous sampling moment; if the power data value at the sampling moment is different from the power data value at the previous sampling moment, determine the sampling moment as the turning sampling moment, and determine the power data value corresponding to the sampling moment as the power data value corresponding to the turning sampling moment.

[0124] In one embodiment, the processor implements the following steps when executing a computer program: when the curve type is a broken line type or a third type, compare the power data value at the sampling moment with the power data value at the previous sampling moment and the power data value at the next sampling moment respectively; determine the turning sampling moment and the power data value corresponding to the turning sampling moment from the curve data according to the change of the power data value corresponding to each sampling moment, including: if the power data value at the previous sampling moment and the power data value at the next sampling moment are both greater than or less than the power data value at the sampling moment, determine the sampling moment as the turning sampling moment, and determine the power data value corresponding to the sampling moment as the power data value corresponding to the turning sampling moment.

[0125] In one embodiment, the target power fault recording curve includes simulation information and curve data, the simulation information is stored in a first file, and the curve data is stored in a second file. When the processor executes the computer program, the following steps are implemented: when the curve type is a switch type or a broken line type, a target file is created, and the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time are stored in the target file, and the second file is deleted.

[0126] In one embodiment, the processor implements the following steps when executing a computer program: when the curve type is the third type, a target file is created, the start sampling time, the turning sampling time, the end sampling time, and the power data values ​​corresponding to the start sampling time, the turning sampling time and the end sampling time are stored in the target file, and the target file is stored in the first file.

[0127] In one embodiment, the processor implements the following steps when executing a computer program: when the curve type is a switch type or a broken line type, in a preset coordinate system, generates the power data value at the starting sampling time, the power data value at the turning sampling time, and the power data value at the ending sampling time, and generates a target power fault recording curve based on the changes in the power data values ​​corresponding to each sampling time.

[0128] The computer-readable storage medium provided in this embodiment has similar implementation principles and technical effects to those of the above method embodiments, and will not be described in detail here.

[0129] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in M ​​forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SyMchliMk) DRAM (SLDRAM), memory bus (RaMbus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0130] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0131] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for processing power data, characterized in that: The method comprises: Acquire curve data corresponding to a target power fault recording curve, wherein the curve data includes power data values ​​measured at a plurality of sampling moments, and the curve data is used to fit the target power fault recording curve; For each sampling moment in the curve data, based on a target detection strategy, detecting a change in a power data value corresponding to the sampling moment compared to a power data value corresponding to a target sampling moment, wherein the target sampling moment is a sampling moment adjacent to the sampling moment; According to the change of the power data value corresponding to each sampling moment, determining the turning sampling moment and the power data value corresponding to the turning sampling moment from the curve data; The starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time, and the ending sampling time in the curve data are stored for analysis of the target power fault recording curve; Before detecting the change of the power data value corresponding to the sampling time compared with the power data value corresponding to the target sampling time based on the target detection strategy, the method further includes: Acquire a curve type of the target power fault recording curve, where the curve type includes a switch value type, a broken line type, and a third type other than the switch value type and the broken line type; The target detection strategy is determined according to the curve type.

2. The method according to claim 1, characterized in that The target detection strategy based on detecting the change of the power data value corresponding to the sampling time compared with the power data value corresponding to the target sampling time includes: In the case where the curve type is the switch value type, comparing the power data value at the sampling moment with the power data value at the previous sampling moment; The determining, from the curve data according to the change of the power data value corresponding to each sampling moment, the turning sampling moment and the power data value corresponding to the turning sampling moment comprises: If the power data value at the sampling moment is different from the power data value at the previous sampling moment, the sampling moment is determined as the transition sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the transition sampling moment.

3. The method according to claim 1, characterized in that The target detection strategy based on detecting the change of the power data value corresponding to the sampling time compared with the power data value corresponding to the target sampling time includes: When the curve type is the broken line type or the third type, respectively comparing the power data value at the sampling moment with the power data value at the previous sampling moment and with the power data value at the next sampling moment; The determining, from the curve data according to the change of the power data value corresponding to each sampling moment, the turning sampling moment and the power data value corresponding to the turning sampling moment comprises: If the power data value at the previous sampling moment and the power data value at the next sampling moment are both greater than or less than the power data value at the sampling moment, the sampling moment is determined as the transition sampling moment, and the power data value corresponding to the sampling moment is determined as the power data value corresponding to the transition sampling moment.

4. The method according to claim 1, characterized in that The target power fault recording curve includes simulation information and the curve data, the simulation information is stored in a first file, the curve data is stored in a second file, and the starting sampling time, the turning sampling time, the ending sampling time in the curve data, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time are stored, including: When the curve type is the switch quantity type or the broken line type, a target file is created, the start sampling time, the turning sampling time, the end sampling time, and the power data values ​​corresponding to the start sampling time, the turning sampling time and the end sampling time are stored in the target file, and the second file is deleted.

5. The method according to claim 1, characterized in that: The target power fault recording curve includes simulation information and the curve data, the simulation information is stored in a first file, the curve data is stored in a second file, and the starting sampling time, the turning sampling time, the ending sampling time in the curve data, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time are stored, including: When the curve type is the third type, a target file is created, and the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time are stored in the target file, and the target file is stored in the first file.

6. The method according to claim 1, characterized in that After storing the starting sampling time, the turning sampling time, the ending sampling time, and the power data values ​​corresponding to the starting sampling time, the turning sampling time, and the ending sampling time in the curve data, the method further includes: When the curve type is a switch type or a broken line type, in a preset coordinate system, the power data value at the starting sampling time, the power data value at the turning sampling time, and the power data value at the ending sampling time are generated, and according to the changes in the power data values ​​corresponding to each of the sampling times, a target power fault recording curve is generated.

7. A power data processing device, characterized in that: The device comprises: An acquisition module, used to acquire curve data corresponding to a target power fault recording curve, wherein the curve data includes power data values ​​measured at a plurality of sampling moments, and the curve data is used to fit the target power fault recording curve; A detection module, configured to detect, for each sampling moment in the curve data, based on a target detection strategy, a change in a power data value corresponding to the sampling moment compared to a power data value corresponding to a target sampling moment, wherein the target sampling moment is a sampling moment adjacent to the sampling moment; A determination module, configured to determine a turning sampling moment and a power data value corresponding to the turning sampling moment from the curve data according to a change in the power data value corresponding to each sampling moment; A storage module, used for storing the starting sampling time, the turning sampling time, the ending sampling time in the curve data, and the power data values ​​corresponding to the starting sampling time, the turning sampling time and the ending sampling time, so as to analyze the target power fault recording curve; The acquisition module is further used to acquire a curve type of the target power fault recording curve, where the curve type includes a switch value type, a broken line type, and a third type other than the switch value type and the broken line type; The determination module is further used to determine the target detection strategy according to the curve type.

8. The device according to claim 7, characterized in that The detection module is specifically configured to compare the power data value at the sampling moment with the power data value at the previous sampling moment when the curve type is the switch value type; The determination module is specifically used to determine the sampling moment as the transition sampling moment if the power data value at the sampling moment is different from the power data value at the previous sampling moment, and determine the power data value corresponding to the sampling moment as the power data value corresponding to the transition sampling moment.

9. A computer device, characterized in that: It comprises a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the method for processing power data as claimed in any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method for processing power data as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Starting method and system for direct current transmission line traveling wave fault distance measuring device

    CN108344924A