Negative rainfall data correction method, device, equipment, medium and program product
By sorting grid points and correcting the principle of precipitation conservation of precipitation data sets in positive and reverse directions, the problem of low accuracy caused by negative values in the forecast precipitation data is solved, ensuring the accuracy of the overall forecast precipitation.
Patent Information
- Application Number
- CN202510573757.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, the processing of negative values in the forecast precipitation data leads to excessive overall precipitation data and low accuracy of precipitation data.
By obtaining the predicted precipitation data sets of multiple grid points, sorting them according to the latitude and longitude of grid points, and making forward and reverse corrections according to the principle of precipitation conservation, ensuring the conservation of the overall forecast precipitation and the overall actual precipitation, and using forward and reverse correction methods to improve accuracy.
The overall forecast precipitation is matched with the overall actual precipitation, and the accuracy of the forecast precipitation data is improved.
Smart Images

Figure CN120405802A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and in particular, to a method, device, equipment, medium, and program product for correcting negative precipitation data. Background Art
[0002] Precipitation data is an important type of data that can be applied in fields such as meteorology, hydrology, environment, and agriculture. In meteorology, meteorological stations and related departments pay more attention to forecast precipitation data, and based on the forecast precipitation data, the precipitation situation in the future can be predicted in advance. However, when predicting forecast precipitation data, there may be negative values.
[0003] In the actual application process, in the face of negative precipitation data, the negative precipitation data is usually directly set to zero to process the forecast precipitation data, and then the processed forecast precipitation data is forecasted. In the above process, the overall precipitation data will be too large, resulting in a lower accuracy of the forecast precipitation data. Summary of the Invention
[0004] This application provides a method, device, equipment, medium, and program product for correcting negative precipitation data, which is used to at least solve the technical problem of low accuracy of forecast precipitation data.
[0005] In a first aspect, this application provides a method for correcting negative precipitation data, including:
[0006] Obtain a forecast precipitation data set of multiple grid points within a period of time; the forecast precipitation data set includes at least one forecast precipitation data, and the forecast precipitation data is positive precipitation data or negative precipitation data;
[0007] Sort each of the forecast precipitation data according to the longitude and latitude of the grid points to obtain a sorted precipitation data set;
[0008] Correct the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a corrected precipitation data set; the corrected precipitation data set is positive precipitation data or the value zero; the correction includes forward correction and reverse correction.
[0009] In the embodiments of this application, the negative precipitation data in the sorted precipitation data set is corrected according to the principle of precipitation conservation, thereby obtaining corrected precipitation data. This solution supports the principle of precipitation conservation, ensuring the conservation of the overall forecast precipitation within a period of time, making the overall forecast precipitation closer to the overall actual precipitation, and thus improving the accuracy. In this application, the correction includes correction in the forward order (i.e., forward correction) and correction in the reverse direction (i.e., reverse correction), thereby achieving two-way integration during correction and improving the accuracy.
[0010] In a possible implementation manner, sorting the forecast precipitation data according to the longitude and latitude of the grid points to obtain a sorted precipitation data set includes:
[0011] Sorting each preset precipitation data according to the longitude and latitude of the grid points in the principle from east to west or from south to north to obtain a sorted precipitation data set.
[0012] In the embodiments of the present application, sorting according to the principle from east to west or from south to north based on the longitude and latitude of the grid points, so that the sorted precipitation data is continuous in space, and the spatial distance between two adjacent grid points is relatively close, which is convenient for data correction.
[0013] In a possible implementation manner, correcting the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a corrected precipitation data set includes:
[0014] Performing a first round of polling correction on the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a first-round polling precipitation data set corresponding to the first round of polling; the first-round polling precipitation data set includes polling precipitation data;
[0015] If there is any polling precipitation data in the current polling precipitation data set that is less than a preset negative value threshold, continue to perform polling correction on the basis of the current polling precipitation data set until each polling precipitation data in the polling precipitation data set of the last round of polling correction is greater than or equal to the preset negative value threshold, and end the polling correction; the current polling precipitation data set includes the first-round polling precipitation data set or the polling precipitation data set of other polling times;
[0016] In the polling precipitation data set of the last round of polling correction, zeroing the polling precipitation data that is greater than or equal to the preset negative value threshold and less than zero to obtain a corrected precipitation data set.
[0017] In the embodiments of the present application, multiple rounds of polling correction are performed until each polling precipitation data in the polling precipitation data set of the last round of polling correction is greater than or equal to the preset negative value threshold, so as to end the polling correction. If any polling precipitation data in the polling precipitation data set of a certain round of polling correction is less than the preset negative value threshold, polling correction needs to be continued, so that the accuracy of the final corrected precipitation data set is higher.
[0018] In a possible implementation manner, performing a first round of polling correction on the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a first-round polling precipitation data set corresponding to the first round of polling includes:
[0019] According to the principle of precipitation conservation, the negative precipitation data in the sorted precipitation data set is corrected positively to obtain the positively corrected precipitation data set corresponding to the first polling correction;
[0020] According to the principle of precipitation conservation, the negative precipitation data in the positively corrected precipitation data set is corrected negatively to obtain the first polling precipitation data set corresponding to the first polling correction.
[0021] In the embodiment of the present application, the negative correction is performed on the basis of the positive correction, so that the precipitation data is corrected step by step and layer by layer. When performing two-way correction, the continuity relationship between adjacent precipitation data is considered, which can improve the efficiency and accuracy at the same time.
[0022] In a possible implementation manner, the step of correcting the negative precipitation data in the sorted precipitation data set positively according to the principle of precipitation conservation to obtain the positively corrected precipitation data set corresponding to the first polling correction includes:
[0023] Determine whether the current sorted precipitation data is negative precipitation data from the positive sorting of the sorted precipitation data set; if the current sorted precipitation data is negative precipitation data, calculate the transferred precipitation value;
[0024] According to the principle of precipitation conservation, based on the transferred precipitation value, positively correct the current sorted precipitation data and the next sorted precipitation data to obtain the current positively corrected precipitation data and the next positively corrected precipitation data. Determine the next positively corrected precipitation data as the current sorted precipitation data, and continue to determine whether the current sorted precipitation data is negative precipitation data until the second-to-last sorted precipitation data in the positive sorting is positively corrected or determined to be positive precipitation data, so as to obtain the positively corrected precipitation data set corresponding to the first polling correction;
[0025] The method further includes:
[0026] If the current sorted precipitation data is positive precipitation data, determine the next sorted precipitation data as the current sorted precipitation data, and continue to determine whether the current sorted precipitation data is negative precipitation data.
[0027] In the embodiment of the present application, after determining that the current sorted precipitation data is negative precipitation data, calculate the transferred precipitation value, and according to the principle of precipitation conservation, positively correct the current sorted precipitation data and the next sorted precipitation data, so that the correction of two adjacent precipitation data in the positive sorting can be realized; in addition, positive correction is performed on the basis of the next positively corrected precipitation data, ensuring the accuracy; and it can realize the judgment of whether each precipitation data is negative precipitation data, reducing omissions.
[0028] In a possible implementation manner, positively correcting the current sorted precipitation data and the next sorted precipitation data based on the transferred precipitation value to obtain the current positively corrected precipitation data and the next positively corrected precipitation data includes:
[0029] Calculating a first difference between the current sorted precipitation data and the transferred precipitation value, and determining the first difference as the current positively corrected precipitation data;
[0030] Calculating a first sum value of the next sorted precipitation data adjacent to the current sorted precipitation data and the transferred precipitation value, and determining the first sum value as the next positively corrected precipitation data.
[0031] In the embodiments of the present application, calculating the current sorted precipitation data and the next sorted precipitation data based on the transferred precipitation value realizes the transfer of precipitation, ensures the principle of precipitation conservation, makes the overall predicted precipitation tend to be close to the overall actual precipitation, and thus improves the accuracy.
[0032] In a possible implementation manner, calculating the transferred precipitation value includes:
[0033] Obtaining a preset influence coefficient;
[0034] Calculating the product of the preset influence coefficient and the current sorted precipitation data, and determining the product as the transferred precipitation value.
[0035] In the embodiments of the present application, calculating the transferred precipitation value and using it as supplementary data to supplement in adjacent sorted precipitation data ensures the principle of precipitation conservation; and the transferred precipitation value is related to the current sorted precipitation data, and thus different transferred precipitation values can be calculated for different current sorted precipitation data, thereby reflecting the dynamic flexibility of the transferred precipitation value.
[0036] In a second aspect, the present application provides a negative precipitation data correction device, including:
[0037] An acquisition module, configured to acquire a predicted precipitation data set of multiple grid points within a period of time; at least one predicted precipitation data is included in the predicted precipitation data set, and the predicted precipitation data is positive precipitation data or negative precipitation data;
[0038] A sorting module, configured to sort each of the predicted precipitation data according to the longitude and latitude of the grid points to obtain a sorted precipitation data set;
[0039] A correction module, configured to correct the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a corrected precipitation data set; the corrected precipitation data set is positive precipitation data or a value of zero; the correction includes positive correction and negative correction.
[0040] In a possible implementation, the sorting module is specifically configured to:
[0041] Sort each preset precipitation data according to the longitude and latitude of the grid points in the principle from east to west or from south to north to obtain a sorted precipitation data set.
[0042] In a possible implementation, the correction module is specifically configured to:
[0043] Perform the first round of polling correction on the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain the first round of polling precipitation data set corresponding to the first round of polling; the first round of polling precipitation data set includes polling precipitation data;
[0044] If there is any polling precipitation data in the current polling precipitation data set that is less than the preset negative value threshold, continue to perform polling correction on the basis of the current polling precipitation data set until each polling precipitation data in the polling precipitation data set of the last round of polling correction is greater than or equal to the preset negative value threshold, and end the polling correction; the current polling precipitation data set includes the first round of polling precipitation data set or the polling precipitation data set of other polling times;
[0045] In the polling precipitation data set of the last round of polling correction, zero out the polling precipitation data that is greater than or equal to the preset negative value threshold and less than zero to obtain a corrected precipitation data set.
[0046] In a possible implementation, the correction module is specifically configured to:
[0047] Perform positive correction on the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain the positive correction precipitation data set corresponding to the first round of polling correction;
[0048] Perform reverse correction on the negative precipitation data in the positive correction precipitation data set according to the principle of precipitation conservation to obtain the first round of polling precipitation data set corresponding to the first round of polling correction.
[0049] In a possible implementation, the correction module is specifically configured to:
[0050] Determine whether the current sorted precipitation data is negative precipitation data from the positive sorting of the sorted precipitation data set; if the current sorted precipitation data is negative precipitation data, calculate the transferred precipitation value;
[0051] According to the principle of precipitation conservation, based on the transferred precipitation value, the current sorted precipitation data and the next sorted precipitation data are positively corrected to obtain the current positively corrected precipitation data and the next positively corrected precipitation data. The next positively corrected precipitation data is determined as the current sorted precipitation data, and it is continued to determine whether the current sorted precipitation data is negative precipitation data until the positive correction of the penultimate sorted precipitation data in the positive sorting is completed or it is determined as positive precipitation data, so as to obtain the positively corrected precipitation data set corresponding to the first round of polling correction;
[0052] The correction module is further configured to:
[0053] If the current sorted precipitation data is positive precipitation data, the next sorted precipitation data is determined as the current sorted precipitation data, and it is continued to determine whether the current sorted precipitation data is negative precipitation data.
[0054] In a possible implementation manner, the correction module is specifically configured to:
[0055] Calculate a first difference between the current sorted precipitation data and the transferred precipitation value, and determine the first difference as the current positively corrected precipitation data;
[0056] Calculate a first sum value of the adjacent next sorted precipitation data in the current sorted precipitation data and the transferred precipitation value, and determine the first sum value as the next positively corrected precipitation data.
[0057] In a possible implementation manner, the correction module is specifically configured to:
[0058] Obtain a preset influence coefficient;
[0059] Calculate the product of the preset influence coefficient and the current sorted precipitation data, and determine the product as the transferred precipitation value.
[0060] In a third aspect, an embodiment of the present application provides a negative precipitation data correction device, including: at least one processor; and
[0061] A memory communicatively connected to the at least one processor; wherein,
[0062] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of the first aspect.
[0063] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of the first aspect.
[0064] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program which, when executed by a processor, implements the method described in any one of the first aspect.
[0065] For the negative precipitation data correction method, device, equipment, medium and program product provided by the embodiments of the present application, first, a forecast precipitation data set for a period of time is obtained. The forecast precipitation data set includes at least one forecast precipitation data. Further, sorting is performed according to the longitude and latitude of the grid points, so that a sorted precipitation data set can be obtained. The forecast precipitation data in the sorted precipitation data set is spatially continuous and ordered. Then, the negative precipitation data in the sorted precipitation data set is corrected to obtain a corrected precipitation data set. In the present application, the correction includes forward-order correction (i.e., forward correction) and reverse-direction correction (i.e., reverse correction), so as to achieve two-way integration during correction and improve the accuracy. In the present application, the correction is performed according to the principle of precipitation conservation, so that the total forecast precipitation reflected in the corrected precipitation data set is guaranteed to be conserved, ensuring that the total forecast precipitation is more consistent with the total actual precipitation. Therefore, it is ensured that the total forecast precipitation is physically more reasonable within a period of time and the accuracy is improved. Description of the Drawings
[0066] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present application and used together with the description to explain the principles of the present application.
[0067] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0068] Figure 2 It is a schematic flowchart of a negative precipitation data correction method provided by an embodiment of the present application;
[0069] Figure 3 It is a schematic flowchart of a polling correction process provided by an embodiment of the present application;
[0070] Figure 4 It is a schematic diagram of forward correction in the current polling correction provided by an embodiment of the present application;
[0071] Figure 5 It is a comparison diagram of effects provided by an embodiment of the present application;
[0072] Figure 6 It is a schematic structural diagram of a negative precipitation data correction device provided by an embodiment of the present application;
[0073] Figure 7 It is a schematic structural diagram of a negative precipitation data correction device provided by an embodiment of the present application.
[0074] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and written descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed Embodiments
[0075] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0076] It should be noted that in this document, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the presence of another identical element in the process, method, article or device including the element.
[0077] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards, and corresponding operation entrances are provided for users to choose to authorize or refuse. For the convenience of understanding, hereinafter, in combination with Figure 1 , the application scenarios applicable to the embodiments of the present application will be described.
[0078] Figure 1 is a schematic diagram of an application scenario provided for an embodiment of the present application. Please refer to Figure 1 , which includes a processing device 101 and a forecasting system 102. The processing device 101 can be a computer, a server or other computing and processing devices, and the forecasting system 102 can be a computer, a server, a mobile phone or other devices for forecasting. Among them, the processing device 101 is communicatively connected to the forecasting system 102, and the connection method can be wired connection and wireless connection. Specifically, the forecasting system 102 sends forecast precipitation data of multiple grid points, and the processing device 101 sorts the forecast precipitation data according to the longitude and latitude of the grid points to obtain sorted precipitation data.
[0079] Further, the processing device 101 corrects the negative precipitation data in the sorted precipitation data according to the principle of precipitation conservation to obtain a corrected precipitation data set.
[0080] In the actual application process, in the face of negative precipitation data, the negative precipitation data is usually directly set to zero to process the predicted precipitation data, and then the processed predicted precipitation data is predicted. In the above process, the overall precipitation data will be too large, and as a result, the accuracy of the predicted precipitation data is relatively low.
[0081] In the embodiments of the present application, in order to solve the problem that the overall precipitation data is too large due to the above defects, resulting in relatively low accuracy of the predicted precipitation data, the present solution corrects the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation, thereby obtaining corrected precipitation data. It can be seen that the present solution supports the principle of precipitation conservation, ensures the conservation of the overall predicted precipitation within a period of time, makes the overall predicted precipitation closer to the overall actual precipitation, and thus improves the accuracy. The correction in the present application includes correction in the forward order (i.e., forward correction) and correction in the reverse direction (i.e., reverse correction), so as to achieve two-way integration during correction and improve the accuracy.
[0082] Next, the method shown in the present application will be described through specific embodiments. It should be noted that the following several embodiments can exist independently or be combined with each other. For the same or similar content, it will not be repeated in different embodiments. Figure 2 It is a schematic flowchart of a method for correcting negative precipitation data provided by an embodiment of the present application.
[0083] As Figure 2 shown, it includes:
[0084] S201. Obtain a predicted precipitation data set of multiple grid points within a period of time.
[0085] Among them, the predicted precipitation data set includes at least one predicted precipitation data.
[0086] The execution subject of the embodiments of the present application can be a correction device, or a negative precipitation data correction device (hereinafter referred to as the correction device) provided in the correction device. The correction device can be implemented by software or by a combination of software and hardware. The correction device can be a processing device, a computer, a server, etc.
[0087] Among them, the grid point has corresponding longitude and latitude, which represents the position on the earth.
[0088] Among them, the predicted precipitation data set can be the predicted precipitation data for a period of time sent by at least one prediction system. Exemplarily, assume that within a period of time, the predicted precipitation data corresponding to the 1st - 5th grid points is sent by prediction system 1, and at the same time, the predicted precipitation data corresponding to the 6th - 10th grid points is sent by prediction system 2. Then, the correction device can obtain the predicted data set corresponding to 10 grid points within the same period of time to form a predicted data set.
[0089] Among them, the period of time can be in minutes, or in hours or days, and there is no limitation here.
[0090] In a possible implementation manner, the predicted precipitation data set of multiple grid points within a period of time obtained in the embodiments of the present application can be the predicted precipitation data set under a specific partition. If the correction device is equipped with a global system, then the predicted precipitation data sets corresponding to each partition under the global mode can be obtained, and then the predicted precipitation data of each partition under the global mode is corrected to achieve correction under the global mode and global control.
[0091] Among them, the predicted precipitation data can be positive precipitation data or negative precipitation data. It can be understood that for precipitation data, normally it can only be greater than or equal to zero and will not be less than zero, so negative precipitation data is an abnormal data.
[0092] S202. Sort each predicted precipitation data according to the longitude and latitude of the grid points to obtain a sorted precipitation data set.
[0093] Among them, the predicted precipitation data included in the sorted precipitation data set is sorted according to a certain geographical location. After sorting, each predicted precipitation data shows spatial continuity. Therefore, two adjacent predicted precipitation data are closer in space, which is convenient for accurate correction.
[0094] The sorted precipitation data set can be obtained in the following way: Sort each preset precipitation data according to the longitude and latitude of the grid points in the principle from east to west or from south to north to obtain a sorted precipitation data set.
[0095] Exemplarily, assume there are three grid points in total (located in the same hemisphere), corresponding to different longitudes and latitudes respectively. They can be sorted based on the longitudes of the three grid points according to the principle from east to west. If all three grid points are in the eastern hemisphere, the longitudes are represented by east longitudes and sorted according to the principle of from large to small east longitudes (i.e., from east to west), thus obtaining a sorted precipitation dataset; or, if all three grid points are in the western hemisphere, the longitudes are represented by west longitudes and sorted according to the principle of from small to large west longitudes (i.e., from east to west); or, if all three grid points are in the northern hemisphere, they are sorted according to the principle of from south to north, specifically, sorted according to the principle of from small to large north latitudes (i.e., from south to north); or, if all three grid points are in the southern hemisphere, they are sorted according to the principle of from large to small south latitudes (i.e., from south to north), and there is no restriction here. It should be noted that for the grid points in the partitions in this application, if they are not in the same hemisphere, the above method can still be used to sort according to the east-west or north-south relative positions of each grid point, and there is no restriction here.
[0096] In the embodiments of this application, the grid points are sorted according to the principle from east to west or from south to north based on their longitudes and latitudes, so that the sorted precipitation data is continuous in space, and the spatial distance between two adjacent grid points is relatively close, which is convenient for data correction.
[0097] S203. Correct the negative precipitation data in the sorted precipitation dataset according to the principle of precipitation conservation to obtain a corrected precipitation dataset.
[0098] Among them, the corrected precipitation dataset is positive precipitation data or the value zero; the correction includes forward correction and reverse correction.
[0099] Among them, forward correction refers to the correction in the forward direction.
[0100] Among them, reverse correction refers to the correction in the reverse direction.
[0101] Among them, the corrected precipitation dataset includes corrected precipitation data, uncorrected precipitation data, and the value zero. The above corrected precipitation data and uncorrected precipitation data are positive precipitation data. Among them, the corrected precipitation data may be positive precipitation data initially. In order to correct the adjacent negative precipitation data, its own precipitation is transferred to the adjacent negative precipitation data, so that it is also corrected, so it is corrected precipitation data.
[0102] It should be noted that in this application, due to the existence of forward correction and reverse correction, for a certain forecast precipitation data, during forward correction, it may be forward corrected to obtain forward-corrected precipitation data, and during reverse correction, it may also be reverse corrected on this basis. Therefore, reverse correction is continued on the basis of the forward-corrected precipitation data, realizing two corrections.
[0103] In the embodiments of the present application, the negative precipitation data in the sorted precipitation dataset is corrected according to the precipitation conservation principle to obtain the corrected precipitation data. This solution supports the precipitation conservation principle, ensures the conservation of the overall predicted precipitation over a period of time, makes the overall predicted precipitation closer to the overall actual precipitation, and thus improves the accuracy. The correction in the present application includes correction in the forward order (i.e., forward correction) and correction in the reverse direction (i.e., reverse correction), thereby achieving two-way integration during correction and improving the accuracy.
[0104] The negative precipitation data in the sorted precipitation dataset can be corrected according to the precipitation conservation principle in the following manner to obtain the corrected precipitation dataset:
[0105] Perform the first round of polling correction on the negative precipitation data in the sorted precipitation dataset according to the precipitation conservation principle to obtain the first round of polling precipitation dataset corresponding to the first round of polling correction; the first round of polling precipitation dataset includes the polling precipitation data.
[0106] It should be noted that, taking a partition as an example to illustrate the precipitation conservation principle, assume that the actual precipitation of the partition within a certain period of time is 500 mm. However, when making a forecast, the precipitation included in the forecast precipitation dataset is 600 mm (i.e., the overall predicted precipitation of the partition), and it includes negative precipitation data. In some implementations, generally, the negative precipitation data is directly set to zero. As a result, the overall predicted precipitation in the forecast precipitation dataset for the partition remains 600 mm. However, this 600 mm actually has a large gap from the overall actual precipitation of the partition, which is 500 mm. Therefore, the precipitation is not conserved, violating the normal or natural situation, and making the predicted precipitation data corresponding to some grid points physically too large (even exaggerated), with a large gap from the actual precipitation of the grid point itself. So, the accuracy is reduced, and the precipitation conservation is not ensured.
[0107] It should be noted that, taking the global model as an example to illustrate the precipitation conservation principle, assume that there are three partitions in total under the global model, and the actual precipitation of each partition within a certain period of time is 1000 mm, 800 mm, and 600 mm respectively. However, when making a forecast for each partition, the precipitation included in the forecast precipitation dataset corresponding to each partition is 1100 mm, 1000 mm, and 700 mm respectively. In general implementations, the negative precipitation data in the forecast precipitation dataset for each partition is directly set to zero. Therefore, the global overall predicted precipitation remains unchanged, which is 2800 mm. However, the global overall actual precipitation is 2400 mm. It can be seen that there will be a large gap between the global overall actual precipitation and the global overall predicted precipitation, so the two cannot reach conservation, and thus accurate forecasting cannot be achieved. Moreover, under the global model, the overall predicted precipitation corresponding to a certain partition is too large, violating the normal or natural situation, and the precipitation conservation is not ensured.
[0108] If any polling precipitation data in the current polling precipitation dataset is less than the preset negative threshold value, continue polling and correcting based on the current polling precipitation dataset until the polling precipitation data in the polling precipitation dataset of the last polling correction is greater than or equal to the preset negative threshold value, and then end the polling correction; the current polling precipitation dataset includes the first polling precipitation dataset or the polling precipitation datasets of other polling times.
[0109] It should be noted that one polling correction includes one forward correction and one reverse correction. After one polling correction, the precipitation data changes. When the correction task starts, the first polling correction is performed first to obtain the first polling precipitation dataset.
[0110] Among them, the first polling precipitation dataset refers to the precipitation dataset after the first polling correction, which includes the corresponding polling precipitation data (i.e., the first polling precipitation data), which includes positive precipitation data that has not been corrected and corrected precipitation data (i.e., corrected precipitation data).
[0111] Furthermore, if the polling precipitation data included in the first polling precipitation dataset is still less than the preset negative threshold value (assumed to be -0.1 mm), continue polling and correcting based on the first polling precipitation dataset to ensure that the polling data in the polling precipitation dataset of the last polling correction is greater than or equal to the preset negative threshold value (assumed to be -0.1 mm), and then end the polling correction.
[0112] In the polling precipitation dataset of the last polling correction, the polling precipitation data that is greater than or equal to the preset negative threshold value and less than zero is set to zero to obtain the corrected precipitation dataset.
[0113] Exemplarily, assume that the polling precipitation dataset of the last polling correction includes 4 polling precipitation data, which are 100 mm, -0.05 mm, 200 mm, and 300 mm respectively. Among them, the second polling precipitation data (-0.05 mm) is greater than the preset negative threshold value (assumed to be -0.1 mm) and less than zero. Then, the second polling precipitation data is set to zero, resulting in 100 mm, 0 mm, 200 mm, and 300 mm, which is the corrected precipitation dataset.
[0114] In the embodiments of the present application, multiple polling corrections are performed until the polling precipitation data in the polling precipitation dataset of the last polling correction are all greater than or equal to the preset negative threshold value, thereby ending the polling correction. If any polling precipitation data in the polling precipitation dataset of a certain polling correction is less than the preset negative threshold value, polling correction needs to be continued to make the accuracy of the final corrected precipitation dataset higher.
[0115] The negative precipitation data in the sorted precipitation dataset can be corrected for the first round of polling according to the principle of precipitation conservation in the following way to obtain the first-round polling precipitation dataset corresponding to the first-round polling correction:
[0116] The negative precipitation data in the sorted precipitation dataset are corrected positively according to the principle of precipitation conservation to obtain the positively corrected precipitation dataset corresponding to the first-round polling correction.
[0117] It can be understood that in one round of polling correction, after the positive correction is completed, the positively corrected precipitation dataset is obtained, and on this basis, the negative correction is carried out to obtain the first-round polling precipitation dataset.
[0118] The negative precipitation data in the positively corrected precipitation dataset are corrected negatively according to the principle of precipitation conservation to obtain the first-round polling precipitation dataset corresponding to the first-round polling correction.
[0119] In the embodiments of the present application, the negative correction is carried out on the basis of the positive correction, so the precipitation data are corrected step by step and layer by layer. When performing two-way correction, the continuity relationship between adjacent precipitation data is considered, which can improve the efficiency and accuracy at the same time.
[0120] The negative precipitation data in the sorted precipitation dataset can be corrected positively according to the principle of precipitation conservation in the following way to obtain the positively corrected precipitation dataset corresponding to the first-round polling correction:
[0121] Step 1: Determine whether the current sorted precipitation data is negative precipitation data from the positive sorting of the sorted precipitation dataset; if the current sorted precipitation data is negative precipitation data, calculate the transferred precipitation value. If the current sorted precipitation data is positive precipitation data, determine the next sorted precipitation data as the current sorted precipitation data, and continue to determine whether the current sorted precipitation data is negative precipitation data.
[0122] The transferred precipitation value can be calculated in the following way:
[0123] Obtain the preset influence coefficient; calculate the product of the preset influence coefficient and the current sorted precipitation data, and determine the product as the transferred precipitation value.
[0124] Among them, the preset influence coefficient can be set manually by experience and is represented by α. The specific algorithm is as shown in (1): (1) ΔP = αP i
[0125] Among them, P i refers to the current sorted precipitation data that is negative precipitation data. ΔP refers to the transferred precipitation value. Among them, 0 < α < 1.
[0126] In the embodiments of the present application, the transferred precipitation value is calculated and used as supplementary data to supplement adjacent sorted precipitation data, ensuring the principle of precipitation conservation; and the transferred precipitation value is related to the current sorted precipitation data, so different current sorted precipitation data can calculate different transferred precipitation values, thus reflecting the dynamic flexibility of the transferred precipitation value.
[0127] Step 2: According to the principle of precipitation conservation, based on the transferred precipitation value, the current sorted precipitation data and the next sorted precipitation data are positively corrected to obtain the current positively corrected precipitation data and the next positively corrected precipitation data. The next positively corrected precipitation data is determined as the current sorted precipitation data, and it is continued to determine whether the current sorted precipitation data is negative precipitation data until the second-to-last sorted precipitation data in the positive sorting is positively corrected or determined as positive precipitation data, so as to obtain the positively corrected precipitation data set corresponding to the first round of polling correction.
[0128] It should be noted that in the positive sorting, if it is determined that the current sorted precipitation data is negative precipitation data, then both the current sorted precipitation data and the next sorted precipitation data need to be positively corrected.
[0129] Exemplarily, it is assumed that the sorted precipitation data set includes four sorted precipitation data, which are the first precipitation data A, the second precipitation data A, the third precipitation data A, and the fourth precipitation data A in the positive sorting. According to the order in the sorted precipitation data set, it is successively determined whether each sorted precipitation data is negative precipitation data. Among them, the sorted precipitation data is from the sorted precipitation data set. Among them, the first precipitation data A is sorted in the first position in the positive direction, and the rest will not be elaborated.
[0130] First, it is determined whether the first precipitation data A is negative precipitation data. If so, the transferred precipitation value is calculated based on the first precipitation data A, and the first precipitation data A and the second precipitation data A are positively corrected, where the first precipitation data A is the current sorted precipitation data and the second precipitation data A is the next sorted precipitation data.
[0131] Furthermore, after the positive correction of the above two precipitation data is completed, the current positively corrected precipitation data and the next positively corrected precipitation data are respectively obtained. It should be noted that in the embodiments of the present application, the positions of each precipitation data remain unchanged during the correction process, that is, the next positively corrected precipitation data is still sorted in the second position in the positive direction.
[0132] Further, determine the next positive-corrected precipitation data as the current sorted precipitation data, and continue to execute the above steps. Determine whether the current sorted precipitation data is negative precipitation data. If so, continue to perform positive correction on the current sorted precipitation data and its next sorted precipitation data. Repeat this cycle until the second-to-last sorted precipitation data in the positive sorting is positively corrected, or it is determined to be positive precipitation data. Then, the positive correction in the first-round query correction is completed, and a positively corrected precipitation data set is obtained. If not, determine the next sorted precipitation data as the current sorted precipitation data, and continue to determine whether it is negative precipitation data.
[0133] Among them, the positive precipitation data in "until the second-to-last sorted precipitation data in the positive sorting is positively corrected or determined to be positive precipitation data" is to determine that the second-to-last sorted precipitation data is positive precipitation data.
[0134] In the embodiment of the present application, after determining that the current sorted precipitation data is negative precipitation data, the transferred precipitation value is calculated, and based on the principle of precipitation conservation, the current sorted precipitation data and the next sorted precipitation data are positively corrected. Therefore, the correction of two adjacent precipitation data in the positive sorting can be realized; in addition, positive correction is also performed on the basis of the next positively corrected precipitation data, ensuring accuracy; and it can also realize the judgment of whether each precipitation data is negative precipitation data, reducing omissions.
[0135] The negative precipitation data in the positively corrected precipitation data set can be reversely corrected in the following way to obtain the first-round query precipitation data set corresponding to the first-round query correction:
[0136] Step 3: Determine whether the current sorted precipitation data is negative precipitation data from the reverse sorting of the positively corrected precipitation data set; if the current sorted precipitation data is negative precipitation data, calculate the transferred precipitation value; if the current sorted precipitation data is positive precipitation data, determine the next sorted precipitation data as the current sorted precipitation data, and continue to determine whether the current sorted precipitation data is negative precipitation data.
[0137] Step 4: According to the principle of precipitation conservation, based on the transferred precipitation value, reversely correct the current sorted precipitation data and the next sorted precipitation data to obtain the current reversely corrected precipitation data and the next reversely corrected precipitation data. Determine the next reversely corrected precipitation data as the current sorted precipitation data, and continue to determine whether the current sorted precipitation data is negative precipitation data until the second-to-last sorted precipitation data in the reverse sorting is reversely corrected or determined to be positive precipitation data, so as to obtain the first-round query precipitation data set corresponding to the first-round query correction.
[0138] It should be noted that in reverse sorting, if the currently sorted precipitation data is determined to be negative precipitation data, both the currently sorted precipitation data and the next sorted precipitation data need to be corrected forward.
[0139] Exemplarily, the forward-corrected precipitation data set includes the sorted precipitation data (this sorted precipitation data can be the one that has been corrected forward before, or it can be the positive precipitation data that has not been corrected forward). In reverse sorting, they are the fourth precipitation data B, the third precipitation data B, the second precipitation data B, and the first precipitation data B respectively. According to the order in the forward-corrected precipitation data set, it is determined whether each precipitation data is negative precipitation data in turn. Among them, the precipitation data is from the forward-corrected precipitation data set. Among them, the fourth precipitation data B is sorted in the first position in reverse, and the rest will not be elaborated. It should be noted that according to the above example, among them, the second precipitation data B is the corrected precipitation data after the second precipitation data A is corrected forward.
[0140] First, it is determined whether the fourth precipitation data B is negative precipitation data. If so, the transfer precipitation value is calculated based on the above fourth precipitation data B, and the fourth precipitation data B and the third precipitation data B are corrected forward. Among them, the fourth precipitation data B is the currently sorted precipitation data, and the third precipitation data B is the next sorted precipitation data.
[0141] Furthermore, after the forward correction of the above two sorted precipitation data is completed, the currently reverse-corrected precipitation data and the next reverse-corrected precipitation data are obtained respectively. It should be noted that in the embodiments of the present application, the positions of each sorted precipitation data remain unchanged during the correction process, that is, the next reverse-corrected precipitation data is still sorted in the second position in reverse.
[0142] Furthermore, the next reverse-corrected precipitation data is determined as the currently sorted precipitation data, and the above steps are continued to determine whether the currently sorted precipitation data is negative precipitation data. If so, the currently sorted precipitation data and its next sorted precipitation data are continuously corrected in reverse. In this way, the loop continues until the second-to-last sorted precipitation data is corrected in reverse in reverse sorting, or it is determined that it is positive precipitation data, then the reverse correction in the first-round query correction is completed, and the first-round query precipitation data set is obtained. If not, the next sorted precipitation data is determined as the currently sorted precipitation data, and it is continued to determine whether it is negative precipitation data.
[0143] It should be noted that in forward correction, the next sorted precipitation data refers to the next precipitation data in the forward direction, but in reverse correction, the next sorted precipitation data refers to the next precipitation data in the reverse direction.
[0144] The current sorted precipitation data and the next sorted precipitation data can be positively corrected based on the transferred precipitation value in the following manner to obtain the current positively corrected precipitation data and the next positively corrected precipitation data: Calculate the first difference between the current sorted precipitation data and the transferred precipitation value, and determine the first difference as the current positively corrected precipitation data; Calculate the first sum value of the adjacent next sorted precipitation data in the current sorted precipitation data and the transferred precipitation value, and determine the first sum value as the next positively corrected precipitation data.
[0145] Specifically, the current sorted precipitation data is corrected as follows in (2):
[0146] (2)
[0147] Among them, refers to the current corrected precipitation data after correcting the i-th sorted precipitation data in the corresponding sorting. Among them, the current corrected precipitation data includes the current positively corrected precipitation data or the current negatively corrected precipitation data. Among them, the correction includes positive correction and negative correction. Among them, P i refers to the i-th sorted precipitation data of the negative precipitation data, that is, the current sorted precipitation data at this time.
[0148] Specifically, the current sorted precipitation data is corrected as follows in (3):
[0149] (3)
[0150] Among them, refers to the next corrected precipitation data after correcting the (i + 1)-th sorted precipitation data in the corresponding sorting. Among them, the next corrected precipitation data includes the next positively corrected precipitation data or the next negatively corrected precipitation data. Among them, P i+1 refers to the next sorted precipitation data of the i-th sorted precipitation data of the negative precipitation data.
[0151] In positive correction, by way of example, assume that in the positive sorting, they are the first precipitation data A, the second precipitation data A, the third precipitation data A, and the fourth precipitation data A respectively. Assume that the first precipitation data A is negative precipitation data, and the transferred precipitation value ΔP is calculated based on the first precipitation data A.
[0152] Furthermore, calculate the first difference between the first precipitation data A and the transferred precipitation value ΔP to obtain which is the current positively corrected precipitation data. This current positively corrected precipitation data is the sorted precipitation data at the first position in the positive sorting.
[0153] Further, in the forward sorting, determine the next sorted precipitation data adjacent to the first precipitation data A, that is, the second precipitation data A, and then calculate the first sum value of the second precipitation data A and the transfer precipitation value ΔP to obtain the That is the next forward-corrected precipitation data.
[0154] The current sorted precipitation data and the next sorted precipitation data can be reversely corrected based on the transfer precipitation value in the following way to obtain the current reversely corrected precipitation data and the next reversely corrected precipitation data: calculate the second difference between the current sorted precipitation data and the transfer precipitation value, and determine the second difference as the current reversely corrected precipitation data; calculate the second sum value of the next sorted precipitation data adjacent to the current sorted precipitation data and the transfer precipitation value, and determine the second sum value as the next reversely corrected precipitation data.
[0155] During reverse correction, for example, assume that in the reverse sorting, they are the fourth precipitation data B, the third precipitation data B, the second precipitation data B, and the first precipitation data B respectively. Assume that the fourth precipitation data B is negative precipitation data, and calculate the transfer precipitation value ΔP based on the fourth precipitation data B.
[0156] Further, calculate the second difference between the fourth precipitation data B and the transfer precipitation value ΔP to obtain the That is the current reversely corrected precipitation data, and this current reversely corrected precipitation data is the sorted precipitation data in the first position in the reverse sorting.
[0157] Further, in the forward sorting, determine the next sorted precipitation data adjacent to the fourth precipitation data B, that is, the third precipitation data B, and then calculate the second sum value of the third precipitation data B and the transfer precipitation value ΔP to obtain the That is the next reversely corrected precipitation data.
[0158] In the embodiments of the present application, by calculating the current sorted precipitation data and the next sorted precipitation data based on the transfer precipitation value, the transfer of precipitation is realized, the principle of precipitation conservation is ensured, and the overall predicted precipitation tends to be close to the overall actual precipitation, thereby improving the accuracy.
[0159] To further illustrate the above solution, the following takes an example to illustrate, as shown in Table 1:
[0160] Table 1: Data table of the first round of polling correction for the sorted precipitation data set.
[0161]
[0162] In Table 1, Data 1 - 4 are the data representing in sequence in the forward sorting. The preset negative value threshold is 0.1 and the preset influence coefficient is 0.5. Specifically, the following operations are performed for the forward correction:
[0163] First, determine that Data 1 is the current sorted precipitation data and determine whether it is negative precipitation data.
[0164] Furthermore, it is determined that Data 1 is not negative precipitation data. Then, continue to determine the next sorted precipitation data as the current sorted precipitation data, that is, determine Data 2 as the current sorted precipitation data. At this time, Data 2 is -20 mm. Further, it is determined that Data 2 (the current sorted precipitation data) is negative precipitation data, and calculate the transferred precipitation value, which is -20 * 0.5 = -10 mm. Further, calculate the first difference between Data 2 and the transferred precipitation value, and the first difference is -10 mm. Then, calculate the current forward corrected precipitation data. Further, calculate the first sum value of the next sorted precipitation data and the transferred precipitation value, and the first sum value is 190 mm, that is, obtain the next forward corrected precipitation data. Further, determine the next forward corrected precipitation data as the current sorted precipitation data, and determine that the current sorted precipitation data (at this time 190 mm) is not negative precipitation data. Continue to determine the next sorted precipitation data as the current sorted precipitation data, that is, Data 3 (200 mm), and determine that it is not negative precipitation data, thus completing the forward correction.
[0165] The following specifically describes the specific operations of the reverse correction:
[0166] First, determine Data 4 as the current sorted precipitation data. Then, determine that the current sorted precipitation data (at this time 50 mm) is not negative precipitation data. Then, determine the next sorted precipitation data as the current sorted precipitation data (that is, one of the corrected precipitation data during the forward correction), and determine that the current sorted precipitation data (at this time 190 mm) is not negative precipitation data. Continue to determine the next sorted precipitation data as the current sorted precipitation data (that is, another corrected precipitation data during the forward correction), and determine that the current sorted precipitation data (at this time -10 mm) is negative precipitation data. Then, calculate the transferred precipitation value at this time, which is -10 * 0.5 = 0.5 mm. Then, calculate the second difference between the current sorted precipitation data and the above transferred precipitation value, and get -5 mm, which is the current reverse corrected precipitation data (as shown in Table 1). Then, perform reverse correction on the next sorted precipitation data (that is, 100 mm). Specifically, calculate the second sum value of the next sorted precipitation data and the transferred precipitation value, and get 95 mm, which is the next reverse corrected precipitation data.
[0167] Through the above corrections, the data in Table 1 can be obtained.
[0168] It should be noted that according to the above solution, it can be known that: taking a partition as an example, the actual precipitation in the partition is 500 mm within a certain period of time. However, when making a forecast, the precipitation included in the forecast precipitation dataset is 600 mm, that is, the total forecast precipitation in the partition (600 mm). In any round of polling correction in this solution, when it is determined that the currently sorted precipitation data is negative precipitation data, and then the currently sorted precipitation data is corrected. When correcting, the transferred precipitation value is calculated. The transferred precipitation value refers to transferring or supplementing the precipitation in the next sorted precipitation data to the currently sorted precipitation data to achieve the correction of the currently sorted precipitation data, and at the same time, the correction of the next sorted precipitation data is also achieved. Thus, it can be seen that in the entire correction stage, the negative precipitation data is corrected in a supplementary form (specifically: supplementing the precipitation of the transferred precipitation value in the next sorted precipitation data to the currently sorted precipitation data). In this way, through such polling, the total forecast precipitation in the partition will decrease (eventually, the total forecast precipitation in the partition that was originally 600 mm may decrease to about 500 mm), becoming closer to the total actual precipitation in the partition. Therefore, the accuracy can be improved, and the conservation of precipitation in the partition is achieved. Taking the global model as an example, corrections are made for all partitions under the global model, making each partition tend to be close to the total actual precipitation in the partition. Then, the total global forecast precipitation (that is, the sum of the total forecast precipitations of all partitions) tends to be close to the total global partition actual precipitation (that is, the sum of the total actual precipitations of all partitions), achieving the conservation of global precipitation.
[0169] Figure 3 It is a schematic diagram of a polling correction process provided by an embodiment of the present application. As Figure 3 shown, the correction device executes the following steps:
[0170] S301, the correction device obtains a forecast precipitation dataset of multiple grid points within a certain period of time.
[0171] S302, the correction device sorts each forecast precipitation data according to the longitude and latitude of the grid points to obtain a sorted precipitation dataset.
[0172] S303, the correction device executes the current polling correction to obtain a polling precipitation dataset corresponding to the current polling correction.
[0173] S304, the correction device determines that there is any polling precipitation data in the current polling precipitation dataset that is less than a preset negative threshold value; if so, execute S305; if not, execute S306;
[0174] S305, the correction device executes the next polling correction, determines the next polling correction as the current polling correction, and executes S303.
[0175] S306. The correction device zeros out the polled precipitation data that is greater than or equal to the preset negative threshold value and less than zero to obtain a corrected precipitation data set, and ends the polling correction task.
[0176] Figure 4 This is a schematic diagram of positive correction in the current polling correction provided by an embodiment of the present application. As Figure 4 shown, the correction device is a further refinement of the positive correction in the above S303, and executes the following steps:
[0177] S401. The correction device determines whether the currently sorted precipitation data is negative precipitation data; if so, it executes S402, and if not, it executes S406.
[0178] S402. The correction device calculates the transferred precipitation value.
[0179] S403. The correction device calculates the first difference between the currently sorted precipitation data and the transferred precipitation value, and determines the first difference as the currently positively corrected precipitation data.
[0180] S404. The correction device calculates the first sum value of the next sorted precipitation data adjacent to the currently sorted precipitation data and the transferred precipitation value, and determines the first sum value as the next positively corrected precipitation data.
[0181] S405. The correction device determines the next positively corrected precipitation data as the currently sorted precipitation data, and executes S401.
[0182] S406. The correction device then determines the next sorted precipitation data as the currently sorted precipitation data, and executes S401. S407. The correction device continues until the second-to-last sorted precipitation data in the positive sorting is positively corrected or determined to be positive precipitation data to obtain the positively corrected precipitation data set corresponding to the first polling correction.
[0183] Figure 5 This is a comparison chart of effects provided by an embodiment of the present application. Please refer to Figure 5 , which shows the effect comparison of a certain comparison area within each forecast day. Among them, the black curve represents the actual observed precipitation data corresponding to each forecast day (PPC is 1), the green curve represents the uncorrected forecast precipitation data corresponding to each forecast day (PPC is 0.403), and the red curve represents the corrected precipitation data corresponding to each forecast day after using the negative precipitation data correction method of this solution (PPC is 0.459). Among them, the Pearson correlation coefficient (PPC for short) can be used to characterize the accuracy. Figure 5Among them, the abscissa is the forecast days, with the unit of day; the ordinate is the precipitation, with the unit of mm / h. The corrected precipitation data is the precipitation data in the corrected precipitation data set after the final polling correction.
[0184] Please refer to Figure 5 Among them, the forecast days refer to the time for forecasting future time. Figure 5 Among them, the forecast days are 10 - 16 days in the future.
[0185] It can be seen that there is no negative precipitation data in the red curve, while there is negative precipitation data in the green curve, which does not conform to the actual situation. As Figure 5 shown, after correction using this solution, the accuracy is improved.
[0186] Figure 6 is the structural schematic diagram of the negative precipitation data correction device provided by the embodiment of the present application. Please refer to Figure 6 , the negative precipitation data correction device 10 may include:
[0187] An acquisition module 11, configured to acquire a forecast precipitation data set of multiple grid points within a period of time; the forecast precipitation data set includes at least one forecast precipitation data, and the forecast precipitation data is positive precipitation data or negative precipitation data;
[0188] A sorting module 12, configured to sort each forecast precipitation data according to the longitude and latitude of the grid points to obtain a sorted precipitation data set;
[0189] A correction module 13, configured to correct the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a corrected precipitation data set; the corrected precipitation data set is positive precipitation data or a value of zero; the correction includes forward correction and reverse correction.
[0190] In a possible implementation manner, the sorting module 12 is specifically configured to:
[0191] Sort each preset precipitation data according to the longitude and latitude of the grid points in the principle of from east to west or from south to north to obtain a sorted precipitation data set.
[0192] In a possible implementation manner, the correction module 13 is specifically configured to:
[0193] Perform the first polling correction on the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a first polling precipitation data set corresponding to the first polling correction; the first polling precipitation data set includes polling precipitation data;
[0194] If any polling precipitation data in the current polling precipitation dataset is less than the preset negative value threshold, continue polling and correcting based on the current polling precipitation dataset until the polling precipitation data in the polling precipitation dataset of the last polling correction is greater than or equal to the preset negative value threshold, and end the polling correction; the current polling precipitation dataset includes the first polling precipitation dataset or the polling precipitation datasets of other polling times;
[0195] In the polling precipitation dataset of the last polling correction, zeroize the polling precipitation data that is greater than or equal to the preset negative value threshold and less than zero to obtain the corrected precipitation dataset.
[0196] In a possible implementation manner, the correction module 13 is specifically configured to:
[0197] Perform positive correction on the negative precipitation data in the sorted precipitation dataset according to the precipitation conservation principle to obtain the positive corrected precipitation dataset corresponding to the first polling correction;
[0198] Perform reverse correction on the negative precipitation data in the positive corrected precipitation dataset according to the precipitation conservation principle to obtain the first polling precipitation dataset corresponding to the first polling correction.
[0199] In a possible implementation manner, the correction module 13 is specifically configured to:
[0200] Determine whether the current sorted precipitation data is negative precipitation data from the positive sorting of the sorted precipitation dataset; if the current sorted precipitation data is negative precipitation data, calculate the transferred precipitation value;
[0201] According to the precipitation conservation principle, perform positive correction on the current sorted precipitation data and the next sorted precipitation data based on the transferred precipitation value to obtain the current positively corrected precipitation data and the next positively corrected precipitation data, determine the next positively corrected precipitation data as the current sorted precipitation data, and continue to determine whether the current sorted precipitation data is negative precipitation data until the positive correction of the penultimate sorted precipitation data in the positive sorting is completed or it is determined to be positive precipitation data, so as to obtain the positive corrected precipitation dataset corresponding to the first polling correction;
[0202] The correction module 13 is further configured to:
[0203] If the current sorted precipitation data is positive precipitation data, determine the next sorted precipitation data as the current sorted precipitation data, and continue to determine whether the current sorted precipitation data is negative precipitation data.
[0204] In a possible implementation manner, the correction module 13 is specifically configured to:
[0205] Calculate the first difference between the currently sorted precipitation data and the transferred precipitation value, and determine the first difference as the currently positively corrected precipitation data;
[0206] Calculate the first sum value of the next sorted precipitation data adjacent to the currently sorted precipitation data and the transferred precipitation value, and determine the first sum value as the next positively corrected precipitation data.
[0207] In a possible implementation manner, the correction module 13 is specifically configured to:
[0208] Obtain a preset influence coefficient;
[0209] Calculate the product of the preset influence coefficient and the currently sorted precipitation data, and determine the product as the transferred precipitation value.
[0210] Figure 7 It is a schematic structural diagram of the negative precipitation data correction device provided by the embodiment of the present application. Please refer to Figure 7 ., the negative precipitation data correction device 20 may include: a memory 21 and a processor 22. Exemplarily, the memory 21 and the processor 22 are interconnected with each other through a bus 23.
[0211] The memory 21 is used to store program instructions;
[0212] The processor 22 is used to execute the program instructions stored in the memory, so as to enable the negative precipitation data correction device 20 to execute the method shown in the above method embodiment.
[0213] The negative precipitation data correction device provided by the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, and will not be elaborated here.
[0214] The embodiment of the present application provides a computer-readable storage medium, and a computer execution instruction is stored in the computer-readable storage medium, and is used to implement the above method when the computer execution instruction is executed by a processor.
[0215] The embodiment of the present application may further provide a computer program product, including a computer program, and when the computer program is executed by a processor, the above method can be implemented.
[0216] All or part of the steps of the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a readable memory. When the program is executed, it performs the steps including the above method embodiments; and the foregoing memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.
[0217] Embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.
[0218] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.
[0219] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are performed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.
[0220] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these changes and modifications.
[0221] In this application, the term "including" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". In this application, terms such as "first", "second", etc. are used to distinguish similar objects and do not necessarily have to describe a specific order or sequence. In this application, "a plurality of" means two or more. "And / or" describes the relationship between related objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the related objects before and after are in an "or" relationship.
Claims
1. A method for correcting negative precipitation data, characterized in that, Including: Obtaining a forecast precipitation data set of multiple grid points within a period of time; At least one forecast precipitation data is included in the forecast precipitation data set, and the forecast precipitation data is positive precipitation data or negative precipitation data; Sorting each of the forecast precipitation data according to the longitude and latitude of the grid points to obtain a sorted precipitation data set; Correcting the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a corrected precipitation data set; The corrected precipitation data set is positive precipitation data or the value zero; The correction includes forward correction and reverse correction.
2. The method according to claim 1, wherein The sorting each of the forecast precipitation data according to the longitude and latitude of the grid points to obtain a sorted precipitation data set includes: Sorting each preset precipitation data according to the longitude and latitude of the grid points in the principle from east to west or from south to north to obtain a sorted precipitation data set.
3. The method according to claim 1, characterized in that, The correcting the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a corrected precipitation data set includes: Performing a first round of polling correction on the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a first-round polling precipitation data set corresponding to the first round of polling correction; the first-round polling precipitation data set includes polling precipitation data; If there is any polling precipitation data in the current polling precipitation data set that is less than a preset negative threshold value, continue to perform polling correction on the basis of the current polling precipitation data set until each polling precipitation data in the polling precipitation data set of the last round of polling correction is greater than or equal to the preset negative threshold value, and end the polling correction; the current polling precipitation data set includes the first-round polling precipitation data set or the polling precipitation data set of other polling times; In the polling precipitation data set of the last round of polling correction, zeroing the polling precipitation data that is greater than or equal to the preset negative threshold value and less than the value zero to obtain a corrected precipitation data set.
4. The method according to claim 3, wherein The performing a first round of polling correction on the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a first-round polling precipitation data set corresponding to the first round of polling correction includes: Performing forward correction on the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a forward correction precipitation data set corresponding to the first round of polling correction; Performing reverse correction on the negative precipitation data in the forward correction precipitation data set according to the principle of precipitation conservation to obtain a first-round polling precipitation data set corresponding to the first round of polling correction.
5. The method according to claim 4, wherein The performing forward correction on the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a forward correction precipitation data set corresponding to the first round of polling correction includes: Determining whether the current sorted precipitation data is negative precipitation data from the forward sorting of the sorted precipitation data set; if the current sorted precipitation data is negative precipitation data, calculating the transferred precipitation value; According to the principle of precipitation conservation, based on the transferred precipitation value, the current sorted precipitation data and the next sorted precipitation data are positively corrected to obtain the current positively corrected precipitation data and the next positively corrected precipitation data. The next positively corrected precipitation data is determined as the current sorted precipitation data, and it continues to be determined whether the current sorted precipitation data is negative precipitation data until the positive correction of the penultimate sorted precipitation data in the positive sorting is completed or it is determined as positive precipitation data, so as to obtain the positively corrected precipitation data set corresponding to the first round of polling correction; The method further includes: If the current sorted precipitation data is positive precipitation data, the next sorted precipitation data is determined as the current sorted precipitation data, and it continues to be determined whether the current sorted precipitation data is negative precipitation data.
6. The method according to claim 5, wherein The positively correcting the current sorted precipitation data and the next sorted precipitation data based on the transferred precipitation value to obtain the current positively corrected precipitation data and the next positively corrected precipitation data includes: Calculating a first difference between the current sorted precipitation data and the transferred precipitation value, and determining the first difference as the current positively corrected precipitation data; Calculating a first sum value of the adjacent next sorted precipitation data in the current sorted precipitation data and the transferred precipitation value, and determining the first sum value as the next positively corrected precipitation data.
7. The method according to claim 5, wherein The calculating the transferred precipitation value includes: Obtaining a preset influence coefficient; Calculating the product of the preset influence coefficient and the current sorted precipitation data, and determining the product as the transferred precipitation value.
8. A negative precipitation data correction device, characterized in that, including: An acquisition module, configured to acquire a forecast precipitation data set of multiple grid points within a period of time; The forecast precipitation data set includes at least one forecast precipitation data, and the forecast precipitation data is positive precipitation data or negative precipitation data; A sorting module, configured to sort each of the forecast precipitation data according to the longitude and latitude of the grid points to obtain a sorted precipitation data set; A correction module, configured to correct the negative precipitation data in the sorted precipitation data set according to the principle of precipitation conservation to obtain a corrected precipitation data set; The corrected precipitation data set is positive precipitation data or a value of zero; The correction includes positive correction and negative correction.
9. A negative precipitation data correction device, characterized in that, including: At least one processor; and A memory communicatively connected to the at least one processor; wherein, [[ID= 10. A computer-readable storage medium, characterized in that, 11. A computer program product, characterized in that,