Power outage meter construction method, device and equipment and storage medium
By screening and counting the power outage data of the power grid system and building a power outage meter, the problems of low efficiency and low accuracy of power outage data in the existing technology are solved, and a rapid and accurate analysis of power outages in the power grid system is achieved.
Patent Information
- Application Number
- CN202411261504.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, the statistical analysis of power outage data of power grid systems is low efficiency and low accuracy, and requires a lot of manpower to manually handle it, which makes it difficult to quickly and accurately determine the power outage of power grid systems.
By screening and counting the power outage data of the power grid system based on preset screening conditions, a power outage meter, including power outage meter and power transmission meter, is constructed, to realize automated data display of power outages and power transmission meter in the power grid system.
It improves the efficiency and accuracy of statistical analysis of power outage data, reduces manual operations, and achieves rapid and accurate determination of power outages in power grid systems.
Smart Images

Figure CN119202010A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of power electronics technology, and in particular to a method, device, equipment and storage medium for constructing a power outage meter. Background Art
[0002] The normal operation of the power grid system requires timely statistical analysis of the power grid data of the power grid system to determine the power outage situation of the power grid system. The huge scale of the distribution network and the frequent maintenance needs make it an urgent problem to quickly and accurately determine the power outage situation of the power grid system.
[0003] In the prior art, power outage conditions of the power grid system are usually determined by workers manually processing power grid data of the power grid system.
[0004] The existing technology requires a lot of manpower, resulting in low efficiency and low accuracy in statistical analysis of power grid data. Summary of the invention
[0005] The present invention provides a method, device, equipment and storage medium for constructing a power outage meter, and realizes the construction of a power outage meter by screening and statistically analyzing power outage data of a power grid system.
[0006] In a first aspect, an embodiment of the present invention provides a method, apparatus, device and storage medium for constructing a power outage meter, including:
[0007] Filter the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data;
[0008] A power outage table is constructed by performing data screening and data statistics on the target power outage data, wherein the power outage table includes a power outage situation table and a power supply situation table, the power outage situation table includes planned power outage situations, the planned power outage situation includes the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area, and the power supply situation table includes daily power supply situations, monthly power supply situations and annual power supply situations.
[0009] The technical solution of the embodiment of the present invention provides a method for constructing a power outage table, including: filtering the power outage data of the power grid system based on preset screening conditions to obtain target power outage data; constructing a power outage table by filtering and counting the target power outage data, wherein the power outage table includes a power outage situation table and a power supply situation table, the power outage situation table includes a planned power outage situation, the planned power outage situation includes the planned power outage times, the executed power outage times and the unexecuted power outage times of each area, and the power supply situation table includes daily power supply situations, monthly power supply situations and annual power supply situations. The above technical solution can firstly filter the power outage data of the power grid system based on the preset screening conditions to obtain the target power outage data that can be used to construct the power outage table, and realize the preliminary screening of the power outage data. Secondly, the target power outage data can be filtered and counted to determine the power outage and power supply situations of each area required for constructing the power outage situation table and the power supply situation table, so as to construct the power outage situation table and the power supply situation table, and then realize the construction of the power outage table, and realize the data display of the power outage and power supply situations of each area within the preset area range within the preset time period.
[0010] Furthermore, before filtering the power outage data of the power grid system based on the preset filtering conditions, it also includes:
[0011] The power outage data of the power grid system is acquired based on a management system.
[0012] Furthermore, the preset screening condition is a preset time period.
[0013] Furthermore, the power outage status table also includes unplanned power outage status, and the unplanned power outage status includes the total number of unplanned power outages in each area and the number of power outages for each unplanned power outage reason corresponding to each area.
[0014] Furthermore, the daily power supply situation, the monthly power supply situation and the annual power supply situation all include the number of delayed power supply times and the number of untimely power outages.
[0015] Furthermore, by performing data screening and data statistics on the target power outage data, a power outage table is constructed, including:
[0016] The power outage situation data in the target power outage data is screened and counted according to the area identification to determine the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area, and the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area are filled into an initial power outage table to obtain the power outage situation table.
[0017] Furthermore, by performing data screening and data statistics on the target power outage data, a power outage table is constructed, including:
[0018] The power supply situation data in the target power outage data is screened and counted according to the area identifier and time identifier to determine the daily power supply situation, monthly power supply situation and annual power supply situation of each area, and the daily power supply situation, monthly power supply situation and annual power supply situation of each area are filled into the initial power outage table to obtain the power supply situation table.
[0019] In a second aspect, an embodiment of the present invention further provides a power outage meter construction device, comprising:
[0020] A screening module, used to screen the power outage data of the power grid system based on preset screening conditions to obtain target power outage data;
[0021] A construction module is used to construct a power outage table by performing data screening and data statistics on the target power outage data, wherein the power outage table includes a power outage situation table and a power supply situation table, the power outage situation table includes planned power outage situations, the planned power outage situation includes the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area, and the power supply situation table includes daily power supply situations, monthly power supply situations and annual power supply situations.
[0022] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0023] at least one processor; and a memory communicatively coupled to the at least one processor;
[0024] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the power outage meter construction method as described in any one of the first aspects.
[0025] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute a power outage meter construction method as described in any one of the first aspects.
[0026] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the power outage table construction method provided in the first aspect.
[0027] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer-readable storage medium may be packaged together with the processor of the power outage meter construction device, or may be packaged separately from the processor of the power outage meter construction device, which is not limited in this application.
[0028] The description of the second, third, fourth and fifth aspects in this application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third, fourth and fifth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0029] In this application, the name of the above-mentioned power outage meter construction device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they belong to the scope of the claims of this application and their equivalent technologies.
[0030] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 A flowchart of a method for constructing a power outage meter provided by an embodiment of the present invention;
[0033] Figure 2 A flowchart of another method for constructing a power outage meter provided by an embodiment of the present invention;
[0034] Figure 3 A flowchart of step 230 in another method for constructing a power outage meter provided in an embodiment of the present invention;
[0035] Figure 4 A schematic diagram of the structure of a power outage meter construction device provided by an embodiment of the present invention;
[0036] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0038] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0039] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0040] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0041] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.
[0042] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0043] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0044] Figure 1 A flowchart of a method for constructing a power outage meter provided in an embodiment of the present invention. This embodiment is applicable to situations where a power outage meter needs to be constructed. The method can be executed by a power outage meter construction device, such as Figure 1 As shown, the specific steps include:
[0045] Step 110: Filter the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data.
[0046] Power outage data includes the number of planned power outages, planned power outage time, power outage duration, power outage scope, power supply time, etc.
[0047] The power outage meter constructed in the present application needs to reflect the power outage and power supply conditions in a preset area within a preset time period. Therefore, the target power outage data used to construct the power outage meter may include power outage data in a preset area within a preset time period.
[0048] Specifically, the power outage data of the power grid system can be understood as the power outage data of the power consumption area corresponding to the power grid system. The preset area range is less than or equal to the power consumption area corresponding to the power grid system. If the preset area range is less than the power consumption area corresponding to the power grid system, after the power outage data of the power grid system is obtained, the power outage data of the power grid system is filtered based on preset filtering conditions. The preset filtering conditions here may include a preset time period and a preset area range. Therefore, the power outage data of the power grid system whose location information belongs to the preset area range and whose power outage time is within the preset time period can be determined as the target power outage data. If the preset area range is equal to the power consumption area corresponding to the power grid system, after the power outage data of the power grid system is obtained, the power outage data of the power grid system is filtered based on the preset filtering conditions. The preset filtering conditions here may include a preset time period. Therefore, the power outage data of the power grid system whose power outage time is within the preset time period can be determined as the target power outage data.
[0049] In the embodiment of the present invention, the power outage data of the power grid system is screened, the target power outage data that can be used to construct the power outage table is obtained, and the preliminary screening of the power outage data is achieved.
[0050] Step 120: Construct a power outage table by screening and counting the target power outage data.
[0051] Among them, the power outage table includes a power outage situation table and a power supply situation table. The power outage situation table includes planned power outages, which include the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area. The power supply situation table includes daily power supply conditions, monthly power supply conditions and annual power supply conditions.
[0052] Specifically, first, the regional power outage data of each area within the preset area can be determined by screening the target power outage data. Secondly, the regional power outage data of each area can be statistically analyzed to determine the planned power outage times of each area, the number of executed power outages and the number of non-executed power outages of each area, and the power supply situation table of each area including daily power supply conditions, monthly power supply conditions and annual power supply conditions. Then, a power outage situation table can be constructed according to the planned power outage times, the number of executed power outages and the number of non-executed power outages of each area, and a power supply situation table can be constructed according to the daily power supply conditions, monthly power supply conditions and annual power supply conditions of each area, and the power outage situation table and the power supply situation table can be determined as the power outage table.
[0053] In an embodiment of the present invention, by performing data screening and data statistics on the target power outage data, the power outage conditions and power supply conditions of each area required for constructing a power outage situation table and a power supply situation table are determined, so as to construct a power outage situation table and a power supply situation table, thereby realizing the construction of a power outage table.
[0054] The method for constructing a power outage table provided by an embodiment of the present invention includes: filtering the power outage data of the power grid system based on preset screening conditions to obtain target power outage data; constructing a power outage table by filtering and counting the target power outage data, wherein the power outage table includes a power outage table and a power supply table, the power outage table includes a planned power outage situation, the planned power outage situation includes the planned power outage times, the executed power outage times and the unexecuted power outage times of each area, and the power supply table includes daily power supply situations, monthly power supply situations and annual power supply situations. The above technical scheme can firstly filter the power outage data of the power grid system based on the preset screening conditions to obtain the target power outage data that can be used to construct the power outage table, and realize the preliminary screening of the power outage data; secondly, the target power outage data can be filtered and counted to determine the power outage and power supply situations of each area required for constructing the power outage table and the power supply table, so as to construct the power outage table and the power supply table, and then realize the construction of the power outage table, and realize the data display of the power outage and power supply situations of each area within the preset area range within the preset time period.
[0055] Figure 2 This is a flow chart of another method for constructing a power outage meter provided in an embodiment of the present invention. This embodiment is specific based on the above embodiment. Figure 2 As shown, in this embodiment, the method may further include:
[0056] Step 210: Acquire the power outage data of the power grid system based on the management system.
[0057] Among them, the management system can be understood as the management system of the power grid system, which includes the power grid system and the upstream and downstream systems of the power grid system. The power grid system includes the regional power grid system of each area included in the power consumption area corresponding to the power grid system. The regional power grid system can be understood as the power grid system of each area included in the power consumption area.
[0058] The management system may pre-configure a URL for power outage data of the power grid system.
[0059] Specifically, an HTTP request may be sent to the management system to obtain the HTML content of the URL, and the power outage data of the power grid system may be obtained by parsing the HTML content.
[0060] Specifically, you can use the requestsget() method in Python's HTTP library to send an HTTP request to the management system to obtain the HTML content of the URL. You can use the BeautifulSoupt() method or the lxmlt() method in the HTML parsing library to parse the obtained HTML content.
[0061] In the embodiment of the present invention, the acquisition of power outage data of the power grid system is achieved based on the management system of the power grid system.
[0062] Step 220: Filter the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data.
[0063] Wherein, the preset screening condition is a preset time period.
[0064] Specifically, the acquired power outage data of the power grid system may be screened based on a preset time period, and the power outage data of the power grid system within the preset time period may be determined as the target power outage data.
[0065] Specifically, first, the functions provided by the pandas library imported into Python (e.g., read_csv(), read_excel(), read_sql()) can be used to load the power outage data of the power grid system from CSV files, Excel files, SQL databases, etc. Secondly, various processing can be performed on the power outage data of the power grid system, such as selecting specific columns, filtering data, processing missing values, adding new columns, and further filtering the power outage data that meets the preset filtering conditions.
[0066] In the embodiment of the present invention, the power outage data of the power grid system is screened, the target power outage data that can be used to construct the power outage table is obtained, and the preliminary screening of the power grid data is achieved.
[0067] Step 230: Construct a power outage table by performing data screening and data statistics on the target power outage data.
[0068] The power outage table includes a power outage table and a power supply table. The power outage table includes planned power outages, which include the number of planned power outages, executed power outages, and unexecuted power outages in each area. The power supply table includes daily power supply, monthly power supply, and annual power supply. The power outage table also includes unplanned power outages, which include the total number of unplanned power outages in each area and the number of power outages for each unplanned power outage reason in each area. The daily power supply, monthly power supply, and annual power supply all include the number of delayed power supply and the number of untimely power outages.
[0069] Specifically, first, a basic data table corresponding to the target power outage data can be created based on the pd.DataFrame(data) function in Python. In practical applications, cell information in the basic data table corresponding to the target power outage data can be obtained based on the cell_value=sheet.cell(row=1,column=1).value method in Python.
[0070] Based on print(df.dtypes), df.describe(), describe(), and groupby() in Python, the target power outage data is statistically analyzed. Among them, print(df.dtypes) and df.describe() are used to filter and count the data, describe() can be used to perform basic statistical descriptions of the data, such as count, mean, standard deviation, minimum, quartile, etc. The groupby() function can be used to group according to one or more columns, and then perform specific statistics on each group. Specific statistics can be based on the power consumption area, and the statistical items may include: the number of planned power outages, the number of executed power outages, the number of unexecuted power outages, the number of delayed power supply, and the number of untimely power outages.
[0071] Specifically, by cleaning the current power outage table, an initial power outage table can be obtained, and then the statistical analysis results of the target power outage data can be filled into the initial power outage table to build a power outage table based on the statistical analysis results of the target power outage data. In practical applications, the statistical analysis results of the power outage data can be exported based on to_excel() in Python to obtain a power outage table in Excel format.
[0072] Figure 3 A flowchart of step 230 in another method for constructing a power outage meter provided in an embodiment of the present invention is shown in FIG. Figure 3 As shown, in one implementation, step 230 may specifically include:
[0073] Step 2310: Screen and count the power outage data in the target power outage data according to the area identifier to determine the number of planned power outages, the number of executed power outages, and the number of unexecuted power outages in each area.
[0074] Specifically, each area included in the user area corresponding to the power grid system has a unique area identifier, and the power outage data also includes the area identifier of the power outage area. Therefore, the target power outage data can be screened according to the area identifier of the power outage area included in each target power outage data and the area identifier of each area included in the user area corresponding to the power grid system to determine the power outage data of each area, and then the power outage data of each area can be statistically analyzed separately to determine the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area.
[0075] Step 2320: Fill the planned power outage times, the executed power outage times and the unexecuted power outage times of each area into the initial power outage table to obtain the power outage status table.
[0076] Specifically, after clearing the original content of the power outage situation table, the planned power outage times, executed power outage times, and unexecuted power outage times of each area are filled into the initial power outage situation table, and the power outage situation table can be obtained.
[0077] In addition, the execution rate of each area can be determined based on the number of planned power outages and the number of executed power outages in each area.
[0078] Of course, it is also possible to determine the total number of unplanned power outages in each region and the proportion of the total number of unplanned power outages in each region in the number of executed power outages in each region, the number of power outages for each unplanned power outage reason corresponding to each region and the proportion of the number of power outages for each unplanned power outage reason corresponding to each region in the number of executed power outages in each region. The causes of unplanned power outages may include temporary power outages, line defect processing, and tripping repairs. Therefore, it is possible to determine the number of power outages for temporary power outages corresponding to each region and the proportion of the number of power outages for temporary power outages corresponding to each region in the number of executed power outages in each region, the number of power outages for line defect processing corresponding to each region and the proportion of the number of power outages for line defect processing corresponding to each region in the number of executed power outages in each region, the number of power outages for tripping repairs corresponding to each region and the proportion of the number of power outages for tripping repairs corresponding to each region in the number of executed power outages in each region, and add the above data to the power outage situation table to achieve the construction of the power outage situation table shown in Table 1.
[0079] Table 1
[0080]
[0081]
[0082] As shown in Table 1, the power outage status table may also include the startup status of new equipment in each area and the distribution network risk status in each area.
[0083] Step 2330: Screen and count the power supply data in the target power outage data according to the area identifier and time identifier to determine the daily, monthly and annual power supply conditions of each area.
[0084] Specifically, the target power outage data can be screened according to the regional identifiers and time identifiers of the power outage areas contained in each target power outage data and the regional identifiers of each area contained in the user area corresponding to the power grid system, so as to determine the power outage data of each area within a preset time period, and then the power outage data of each area can be statistically analyzed to determine the daily power supply situation, monthly power supply situation and annual power supply situation of each area. Specifically, the daily number of delayed power supply and the daily number of untimely power outages in each area, the monthly number of delayed power supply and the monthly number of untimely power outages in each area, and the annual number of delayed power supply and the annual number of untimely power outages in each area can be determined.
[0085] Step 2340: Fill the daily power supply situation, the monthly power supply situation and the annual power supply situation of each area into the initial power outage table to obtain the power supply situation table.
[0086] Specifically, after clearing the original content of the power transmission status table, the daily power transmission status, monthly power transmission status and annual power transmission status of each area are filled into the initial power transmission status table to obtain the power transmission status table, thereby constructing the power transmission status table shown in Table 2.
[0087] Table 2
[0088]
[0089] As shown in Table 2, the power transmission status table may also include the monthly and annual on-time operation rates for each region.
[0090] In an embodiment of the present invention, the power outage status table and power supply status table constructed above can be determined as a power outage table, so that the power outage table can be constructed according to the statistical analysis results of the target power outage data, and the power outage data of the power grid system that meets the preset screening conditions can be displayed based on the power outage table.
[0091] In practical applications, a delayed power supply list as shown in Table 3 can be constructed based on the delayed power supply data in the target power outage data, and an untimely power outage list as shown in Table 4 can be constructed based on the untimely power outage data in the target power outage data.
[0092] Table 3
[0093]
[0094] Table 4
[0095]
[0096]
[0097] The method for constructing a power outage table provided in an embodiment of the present invention includes: obtaining the power outage data of the power grid system based on a management system; filtering the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data; and constructing a power outage table by filtering and counting the target power outage data. The above technical scheme can firstly filter the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data that can be used to construct a power outage table, thereby realizing preliminary screening of the power outage data; secondly, it can filter and count the target power outage data to determine the power outage and power supply conditions of each area required for constructing a power outage table and a power supply table, so as to construct a power outage table and a power supply table, thereby realizing the construction of a power outage table, and realizing the data display of the power outage and power supply conditions of each area within a preset area range within a preset time period. Compared with the manual statistical analysis of data in the prior art, the present application can avoid manual operation, realize automatic statistical analysis of power outage data, and further improve the efficiency and accuracy of statistical analysis of power outage data.
[0098] Figure 4 The present invention provides a schematic diagram of a power outage meter construction device, which can be applied to situations where a power outage meter needs to be constructed. The device can be implemented by software and / or hardware and is generally integrated in an electronic device, such as a computer device.
[0099] like Figure 4 As shown, the device comprises:
[0100] A screening module 410 is used to screen the power outage data of the power grid system based on preset screening conditions to obtain target power outage data;
[0101] Construction module 420 is used to construct a power outage table by performing data screening and data statistics on the target power outage data, wherein the power outage table includes a power outage situation table and a power supply situation table, the power outage situation table includes planned power outage situations, the planned power outage situation includes the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area, and the power supply situation table includes daily power supply situations, monthly power supply situations and annual power supply situations.
[0102] The power outage table construction device provided in this embodiment filters the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data; and constructs the power outage table by filtering and counting the target power outage data, wherein the power outage table includes a power outage situation table and a power supply situation table, the power outage situation table includes a planned power outage situation, the planned power outage situation includes the planned power outage times, the executed power outage times and the unexecuted power outage times of each area, and the power supply situation table includes daily power supply situations, monthly power supply situations and annual power supply situations. The above technical scheme can firstly filter the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data that can be used to construct the power outage table, and realize the preliminary screening of the power outage data; secondly, it can filter and count the target power outage data to determine the power outage and power supply situations of each area required for constructing the power outage situation table and the power supply situation table, so as to construct the power outage situation table and the power supply situation table, and then realize the construction of the power outage table, and realize the data display of the power outage and power supply situations of each area within the preset area range within the preset time period.
[0103] Based on the above embodiment, the device further includes:
[0104] The acquisition module is used to acquire the power outage data of the power grid system based on the management system before filtering the power outage data of the power grid system based on preset filtering conditions.
[0105] In one implementation, the preset screening condition is a preset time period.
[0106] Furthermore, the power outage status table also includes unplanned power outage status, and the unplanned power outage status includes the total number of unplanned power outages in each area and the number of power outages for each unplanned power outage reason corresponding to each area.
[0107] Furthermore, the daily power supply situation, the monthly power supply situation and the annual power supply situation all include the number of delayed power supply times and the number of untimely power outages.
[0108] Based on the above embodiment, a module 420 is constructed, which is specifically used for:
[0109] The power outage situation data in the target power outage data are screened and counted according to the area identifier, and the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area are determined, and the planned power outages, the number of executed power outages and the number of unexecuted power outages in each area are filled into an initial power outage table to obtain the power outage table; the power supply situation data in the target power outage data are screened and counted according to the area identifier and time identifier, and the daily power supply situation, the monthly power supply situation and the annual power supply situation in each area are determined, and the daily power supply situation, the monthly power supply situation and the annual power supply situation in each area are filled into the initial power outage table to obtain the power outage table.
[0110] The power outage meter construction device provided in the embodiment of the present invention can execute the power outage meter construction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0111] It is worth noting that in the embodiment of the above-mentioned power outage meter construction device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0112] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 5 A block diagram of an exemplary electronic device 5 suitable for implementing embodiments of the present invention is shown. Figure 5 The electronic device 5 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0113] like Figure 5 As shown, the electronic device 5 is in the form of a general purpose computing electronic device. The components of the electronic device 5 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0114] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0115] The electronic device 5 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 5, including volatile and non-volatile media, removable and non-removable media.
[0116] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 5 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0117] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0118] The electronic device 5 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the electronic device 5, and / or any device that enables the electronic device 5 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 5 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. Figure 5 As shown, the network adapter 20 communicates with other modules of the electronic device 5 via the bus 18. It should be understood that although Figure 5Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 5, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0119] The processing unit 16 executes various functional applications and page displays by running the program stored in the system memory 28, for example, implementing the power outage meter construction method provided in the embodiment of the present invention, the method comprising:
[0120] Filter the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data;
[0121] A power outage table is constructed by performing data screening and data statistics on the target power outage data, wherein the power outage table includes a power outage situation table and a power supply situation table, the power outage situation table includes planned power outage situations, the planned power outage situation includes the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area, and the power supply situation table includes daily power supply situations, monthly power supply situations and annual power supply situations.
[0122] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the power outage meter construction method provided by any embodiment of the present invention.
[0123] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a method for constructing a power outage meter provided in an embodiment of the present invention is implemented. The method includes:
[0124] Filter the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data;
[0125] A power outage table is constructed by performing data screening and data statistics on the target power outage data, wherein the power outage table includes a power outage situation table and a power supply situation table, the power outage situation table includes planned power outage situations, the planned power outage situation includes the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area, and the power supply situation table includes daily power supply situations, monthly power supply situations and annual power supply situations.
[0126] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), 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. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0127] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0128] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0129] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0130] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0131] In addition, the acquisition, storage, use, and processing of data in the technical solution of the present invention are in compliance with the relevant provisions of national laws and regulations.
[0132] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for constructing a power outage meter, characterized in that: include: Filter the power outage data of the power grid system based on preset filtering conditions to obtain target power outage data; A power outage table is constructed by performing data screening and data statistics on the target power outage data, wherein the power outage table includes a power outage situation table and a power supply situation table, the power outage situation table includes planned power outage situations, the planned power outage situation includes the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area, and the power supply situation table includes daily power supply situations, monthly power supply situations and annual power supply situations.
2. The method for constructing a power outage meter according to claim 1, characterized in that: Before filtering the power outage data of the power grid system based on the preset filtering conditions, it also includes: The power outage data of the power grid system is acquired based on a management system.
3. The method for constructing a power outage meter according to claim 1, characterized in that: The preset screening condition is a preset time period.
4. The method for constructing a power outage meter according to claim 1, characterized in that: The power outage status table also includes unplanned power outage status, and the unplanned power outage status includes the total number of unplanned power outages in each area and the number of power outages for each unplanned power outage reason corresponding to each area.
5. The method for constructing a power outage meter according to claim 1, characterized in that: The daily power supply situation, the monthly power supply situation and the annual power supply situation all include the number of delayed power supply and the number of untimely power outages.
6. The method for constructing a power outage meter according to claim 1, characterized in that: By performing data screening and data statistics on the target power outage data, a power outage table is constructed, including: The power outage situation data in the target power outage data is screened and counted according to the area identification to determine the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area, and the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area are filled into an initial power outage table to obtain the power outage situation table.
7. The method for constructing a power outage meter according to claim 1, characterized in that: By performing data screening and data statistics on the target power outage data, a power outage table is constructed, including: The power supply situation data in the target power outage data is screened and counted according to the area identifier and time identifier to determine the daily power supply situation, monthly power supply situation and annual power supply situation of each area, and the daily power supply situation, monthly power supply situation and annual power supply situation of each area are filled into the initial power outage table to obtain the power supply situation table.
8. A power outage meter construction device, characterized in that: include: A screening module, used to screen the power outage data of the power grid system based on preset screening conditions to obtain target power outage data; A construction module is used to construct a power outage table by performing data screening and data statistics on the target power outage data, wherein the power outage table includes a power outage situation table and a power supply situation table, the power outage situation table includes planned power outage situations, the planned power outage situation includes the number of planned power outages, the number of executed power outages and the number of unexecuted power outages in each area, and the power supply situation table includes daily power supply situations, monthly power supply situations and annual power supply situations.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the power outage meter construction method as described in any one of claims 1-7.
10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the power outage meter construction method as described in any one of claims 1-7 when executed by a computer processor.
