A method for calculating watershed drainage curve based on improved rolling ball method
By improving the rolling ball method and the least squares method to translate and filter the dewatering curve data points in the coordinate system, combined with computer programming technology, the problems of low efficiency and poor accuracy of the traditional method are solved, and efficient and accurate analysis of the watershed dewatering curve is achieved. .
Patent Information
- Application Number
- CN202410991447.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-23
AI Technical Summary
The traditional method of drawing watershed retreat curves is inefficient and subject to human subjective influence. It cannot be applied to the analysis of large-scale, multi-regional and massive data, resulting in poor accuracy of data results.
The improved rolling ball method is used to translate and filter the dehydration curve data points in the coordinate system. The rolling ball radius discrimination coefficient and the least squares method are used to fit the lower envelope. Computer programming technology is combined to realize automatic analysis.
It significantly improves the analysis efficiency and accuracy, can process multiple watershed parameters in batches, reduces human errors, and is suitable for large-scale, multi-regional, and massive data analysis.
Smart Images

Figure CN118520199B
Abstract
Description
Technical Field
[0001] The invention relates to the field of water conservancy, and in particular to a method for calculating a watershed retreat curve based on an improved rolling ball method. Background Art
[0002] In water conservancy project construction, basin drainage curve is a common method for dividing secondary flood runoff.
[0003] The secondary flood runoff is defined as the total amount of flood after deducting the part of water that has not been drained away from the previous flood and the base flow from the flow process of a flood, including the surface runoff, surface soil flow and shallow underground runoff generated by this rainstorm. Surface runoff and surface soil flow are collectively called direct runoff. The secondary flood runoff divided by the corresponding basin area is the runoff depth, and its value is equal to the flow produced by this rainstorm minus the basin loss. The basin retreat curve is often used to divide the secondary flood runoff, and the oblique line division method or curve division method can be used to divide the direct runoff and shallow underground runoff.
[0004] When drawing the drainage curve of the basin, draw the drainage curves of each rainless period on the same graph, referring to Figure 1 As shown, move each water withdrawal section horizontally so that their tails overlap. Figure 2 As shown, and make a lower envelope, such as Figure 2 Curve ⑤ in the figure is the standard basin drainage curve.
[0005] The traditional analysis method is mainly through manual drawing. First, the receding flow process lines of each flood are drawn on graph paper with the same scale; then any receding flow process line is depicted on a piece of transparent paper; then this curve is moved to the receding section of another flood, and the transparent paper is moved left and right while keeping the time coordinates coincident, so that the receding flow process line on the graph paper coincides with the receding flow process line on the transparent paper at the back, and the second curve is depicted on the transparent paper; in this way, the receding flow process lines of each flood are depicted one by one to obtain a cluster of receding flow curves; finally, a smooth lower envelope is drawn to obtain the receding flow curve.
[0006] This method is inefficient, is greatly affected by human subjectivity, and has poor data accuracy. It is not suitable for the analysis of large-scale, multi-regional, and massive data. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a method for calculating a watershed recession curve based on an improved rolling ball method, which adopts the improved rolling ball method to calculate the watershed recession curve and combines it with computer programming technology to achieve the purpose of improving the analysis efficiency and the accuracy of the results.
[0008] In order to solve the above technical problems, the present invention provides a method for calculating the drainage curve of a watershed based on the improved rolling ball method. The drainage curves of each rainless period are drawn in a coordinate system, and a plurality of drainage curves are overlapped together by using a coordinate translation algorithm. The rolling ball radius discrimination coefficient is then used to determine the rolling ball radius, and the rolling ball method is used to screen out the data points involved in drawing the lower envelope. Finally, the least squares method is used to determine the lower envelope as the drainage curve of the watershed. The specific steps are as follows:
[0009] Step 1) Curve translation: translate each water retreat curve, so that the lowest point of the last data point of each water retreat curve is located at the same point, to the translation curve;
[0010] Step 2) Screening possible data points: According to the horizontal coordinate value, find the vertical coordinate value corresponding to each translation curve and the horizontal coordinate value in turn, and use the coordinate point corresponding to the minimum value in the vertical coordinate value as the possible data point for analyzing the lower envelope;
[0011] Step 3) Calculate the rolling ball radius: Calculate the current radius corresponding to each three adjacent possible data points in turn r value, and find all current radii r The maximum value among the values r Max and the maximum value r Max Corresponding s , with the maximum value r Max add s As the rolling ball radius R;
[0012] Among the three adjacent possible data points, the line connecting the first possible data point and the third possible data point on both sides is line segment AB and the distance is l , the vertical distance from the second possible data point to line segment AB is s , the distance from the first possible data point to the center of the rolling ball and the distance from the third possible data point to the center of the rolling ball are both the current radius r Value, the vertical distance from the center of the rolling ball to the line segment AB is h , use the formula to calculate the current radius r Value, the formula is as follows: Current radius r Value = ,in l and s Calculated from the coordinates of the first possible data point, the second possible data point and the third possible data point;
[0013] Step 4) Screening the calculation points of the lower envelope: Based on the rolling ball radius R, the rolling ball method is used to screen out the data points to be fitted for analyzing the lower envelope;
[0014] The rolling ball method only works on possible data points at the lower edge and does not perform surrounding screening;
[0015] Step 5) Curve fitting to obtain the lower envelope: Based on the data points to be fitted, power function, exponential function, and polynomial function curves are selected as the basic model of the lower envelope, and the lower envelope is fitted using the least squares method.
[0016] Furthermore, in step 1), a point P is specified in the coordinate system, the last data point of each retreat curve is translated to the specified point P, the translation parameters of each retreat curve are obtained, and then the points on each retreat curve are translated according to the translation parameters, and finally the translation curve is obtained;
[0017] Further, point P is any specified point in the coordinate system or the lowest point among the last data points of multiple recession curves.
[0018] Furthermore, in a single dewatering curve, the abscissa value of point P is subtracted from the abscissa value of the last data point of the dewatering curve, and the ordinate value of point P is subtracted from the ordinate value of the last data point of the dewatering curve to obtain Δt and Δq , Δ t and Δq is the translation parameter of the current receding water curve.
[0019] Furthermore, in step 2), starting from the smallest value of the horizontal coordinate among all the translation curves to the largest value of the horizontal coordinate, the vertical coordinate values corresponding to the horizontal coordinate values of each translation curve are found in turn.
[0020] Furthermore, in step 3), when the second possible data point is below line segment AB, the current radius r Value and s All are counted as 0.
[0021] Furthermore, in step 4), if the data points do not fall within the rolling sphere surface of the rolling sphere method, they are eliminated, and if the data points fall within the rolling sphere surface of the rolling sphere method, they are retained.
[0022] Beneficial effects of the present invention:
[0023] The present invention makes full use of the batch and efficient characteristics of numerical calculation and computer programming, and overcomes the shortcomings of the original graphic method, which is low in efficiency and cannot be used for large-scale analysis. Compared with the traditional graphic method, it can realize automatic analysis of precipitation accumulation curves, calculate and analyze the production and confluence time, and can batch analyze the parameters of multiple basins, which can significantly improve the efficiency of analysis work, eliminate human subjective errors, and improve the accuracy of analysis results. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a schematic diagram of the flood curve;
[0025] Figure 2 This is a schematic diagram of the water withdrawal curve obtained by the lower envelope method;
[0026] Figure 3 It is a curve translation schematic diagram of the present invention;
[0027] Figure 4 It is a schematic diagram of the possible data point calculation process of the present invention;
[0028] Figure 5 It is a schematic diagram of possible data point results of the present invention;
[0029] Figure 6 It is a schematic diagram of solving the current rolling ball radius of the present invention;
[0030] Figure 7 It is a schematic diagram of the data points to be fitted after eliminating the interference points of the present invention;
[0031] Figure 8 It is a schematic diagram of solving the lower envelope of the present invention. DETAILED DESCRIPTION
[0032] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0033] An embodiment of the method for calculating a watershed recession curve based on an improved rolling ball method of the present invention is, specifically, drawing the recession curves of each rainless period in a coordinate system, using a coordinate translation algorithm to overlap multiple recession curves, then using a rolling ball radius discrimination coefficient to determine the rolling ball radius, and using the rolling ball method to screen out data points involved in drawing the lower envelope, and finally using the least squares method to determine the lower envelope as the watershed recession curve.
[0034] The detailed steps are as follows:
[0035] First, perform curve translation: The purpose of curve translation is to make the tail sections of the water-recession curves ① to ⑤ overlap. You can specify a point P in the coordinate system, translate the last data point of each water-recession curve to the specified point P, and obtain the translation parameters of each water-recession curve based on the data point translation. Shift the points on the water-recession curve according to the translation parameters, and finally obtain the translated curve. Point P can be any specified point, or the lowest point among the end points of each water-recession curve can be used as point P. Figure 3 As shown, it is assumed here that point P is the end point P3 of the water-recession curve ③, point P3 is the lowest point, and taking the moving water-recession curve ① as an example, to move point P1 to point P3, the horizontal coordinate of point P1 is t P1 minus Δt Move back to t P3, the ordinate of point P1 q P1 Need to subtract Δq Move back to q P3 , Δt and Δq This is the translation parameter of the water-recession curve ①. Subtract the horizontal and vertical coordinates of the remaining points of the water-recession curve ① from Δt and Δq , even if the tail segments of the retreat curve ① and the retreat curve ③ coincide. This translation operation is applied to other curves, even if the tail segments of all retreat curves coincide with each other, refer to Figure 4 shown.
[0036] Then, possible data points are screened: starting from the smallest value of the horizontal coordinate in all the water-reduction curves to the largest value of the horizontal coordinate, the vertical coordinate values corresponding to the horizontal coordinate value of each water-reduction curve are found in turn, and the minimum value is used as the possible data point for analyzing the lower envelope. For example, when the horizontal coordinate is t, the vertical coordinates corresponding to curves ① to ④ are q1 to q4 , find its minimum value Min( q1 , q2 , q3 , q4 )= q4 , refer to Figure 4 At this time, the horizontal axis is t and the vertical axis is q4 The points are used as possible data points for analyzing the lower envelope. After analyzing all the horizontal and vertical coordinate values, all possible data points that can be used to analyze the lower envelope are obtained. Figure 5 shown.
[0037] Since there are certain errors in the measured flood data, the water retreat curve formed by analyzing the possible data points of the lower envelope is not necessarily convex, and there may be points that are convex or have a large slope change, which is not conducive to using the curve fitting method to find the lower envelope. Therefore, the present invention uses an improved rolling ball method to eliminate unfavorable possible data points. The existing rolling ball method is a method for finding the outer envelope of scattered data points. Its main idea is to assume that a rolling ball rolls along the data points in a fixed direction for one circle. The closed path formed after the rolling ball surface intersects with the data points is the outer envelope of the scattered data points. Different rolling ball radii will form different outer envelope shapes, and the rolling ball radius often uses empirical values. The improvement of the rolling ball method provided by the present application mainly includes: 1. The rolling ball method used in the present invention only acts on the possible data points at the lower edge, does not surround all data points, and does not form a closure; 2. The rolling ball method used in the present invention does not use empirical methods to judge the rolling ball diameter, but calculates the rolling ball radius according to the coordinate values of the data points to eliminate possible convex data points to ensure the convex trend of the data points.
[0038] Therefore, we need to calculate the rolling ball radius: This mainly involves calculating the current radius corresponding to each of the three adjacent possible data points in turn. r Value, that is, for a series of possible data points , first calculate P 1 , P 2 , P 3 Corresponding current radius r 1 Values and corresponding s 1 Value, then calculate P 2 , P 3 , P 4 Corresponding current radius r 2 Values and corresponding s 2 The values are calculated in sequence until the P n-2 , P n-1 , P n Corresponding current radius r n-2 Values and corresponding s n-2 value, and then find all current radii r The maximum value among the values r Max and the maximum value r Max Corresponding s , with the maximum value r Max add s As the rolling ball radius R;
[0039] The current radius is calculated based on three adjacent possible data points. r For example, refer to Figure 6 As shown, during the calculation process, the first possible data point and the third possible data point on both sides are point A and point B, respectively, the second possible data point in the middle is point D, and the straight line connecting point A and point B is line segment AB and the distance is l , the vertical distance from the second possible data point to line segment AB is s , when the edge of the ball is tangent to points A and B, the distance from the center C of the ball to the perpendicular line of line segment AB is h , Figure 6For a relatively special scenario, the point of the perpendicular line from the center of circle C to line segment AB is exactly the middle point E of line segment AB, so it is perpendicular line CE, and point D is on the extension line of perpendicular line CE, that is s is the distance from point D to point E; when using the rolling ball method for screening, if point D does not fall within the rolling ball surface, point D is eliminated; if point D falls within the rolling ball surface, point D is retained, that is, the current radius r Value ≤ h + s When point D is removed, the current radius r Value> h + s When , point D is retained. Based on this, in order to eliminate possible convex data points, it is necessary to ensure that the current radius r Value ≤ h + s , when the current radius r Value ≤ h + s ,have r-s ≤ h ,have ,Right now r 2 -2rs+s 2 ≤ h 2 ;
[0040] See Figure 6 There are ,Right now , and substitute into the above formula, we get
[0041]
[0042]
[0043]
[0044] Therefore, the current radius r The value is selected as , plus the corresponding s After the value is adjusted, the convex points can be filtered out.
[0045] The above l It can be directly calculated from the coordinates of point A and point B, that is,
[0046]
[0047] in T A 、T B 、Q A 、Q Bare the horizontal and vertical coordinate values of point A and point B respectively.
[0048] s can be calculated using the point-to-line distance formula in the coordinate system. Assume that the line connecting point A and point B is aT+ bQ+c= 0, the horizontal and vertical coordinate values of D are T D 、Q D , the distance s from D to this line is
[0049] , this method is the existing calculation method.
[0050] Calculate the current radius corresponding to three adjacent possible data points r When the value is , there is a second possible data point that is a concave point, then the second possible data point must meet the requirements, so the current radius can be calculated again r Before calculating the value, first determine the position of the second possible data point. When the second possible data point is below line segment AB, the current radius r Value and s All are counted as 0.
[0051] Then, the calculation points of the lower envelope can be screened: based on the rolling ball radius R, the rolling ball method is used to screen out the data points to be fitted for analyzing the lower envelope, and a new data point series is obtained;
[0052] After one screening, there may still be data points that are inconsistent with the convex trend. Therefore, the rolling ball radius can be calculated again for the new data point series, and then the lower envelope calculation points can be screened again until all data points that may cause the curve to convex are eliminated, and suitable data points to be fitted are obtained. Figure 7 As shown;
[0053] Finally, curve fitting is performed to find the lower envelope: refer to Figure 8 As shown, based on the applicable data points to be fitted, power function, exponential function and polynomial function curves are selected as the basic models of the lower envelope, and the lower envelope is fitted using the least squares method.
[0054] This method is highly efficient, not affected by human subjectivity, has high accuracy in data results, and is suitable for large-scale, multi-regional, and massive data analysis. The use of numerical methods to analyze and calculate related parameters is convenient for combining computer programming technology and realizing batch automatic data analysis, which can greatly save the time of data analysis and is also conducive to improving the accuracy of data analysis.
[0055] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.
Claims
1. A method for calculating a watershed dewatering curve based on an improved rolling ball method, characterized in that: Draw the drainage curves of each rainless period in the coordinate system, use the coordinate translation algorithm to overlap multiple drainage curves, then use the rolling ball radius discrimination coefficient to determine the rolling ball radius, and use the rolling ball method to select the data points involved in drawing the lower envelope. Finally, use the least squares method to determine the lower envelope as the basin drainage curve. The specific steps are as follows: Step 1) Curve translation: translate each water retreat curve, so that the lowest point of the last data points of each water retreat curve is located at the same point after translation, and the translation curve is obtained; Step 2) Screening possible data points: According to the horizontal coordinate value, find the vertical coordinate value corresponding to each translation curve and the horizontal coordinate value in turn, and use the coordinate point corresponding to the minimum value in the vertical coordinate value as the possible data point for analyzing the lower envelope; Step 3) Calculate the rolling ball radius: Calculate the current radius corresponding to each three adjacent possible data points in turn r value, and find all current radii r The maximum value among the values r Max and the maximum value r Max Corresponding s , with the maximum value r Max add s As the rolling ball radius R; Among the three adjacent possible data points, the line connecting the first possible data point and the third possible data point on both sides is line segment AB and the distance is l , the vertical distance from the second possible data point to line segment AB is s , the distance from the first possible data point to the center of the rolling ball and the distance from the third possible data point to the center of the rolling ball are both the current radius r Value, the vertical distance from the center of the rolling ball to line segment AB is h , use the formula to calculate the current radius r Value, the formula is as follows: Current radius r Value = ,in l and s Calculated from the coordinates of the first possible data point, the second possible data point and the third possible data point; in, l Directly calculated from the coordinates of the first possible data point and the third possible data point: , where TA, TB, QA, and QB are the horizontal and vertical coordinate values of the first and third possible data points respectively; s is calculated using the point-to-line distance formula in the coordinate system. The straight line between the first possible data point and the third possible data point is aT+bQ+c=0. The horizontal and vertical coordinate values of the second possible data point are TD and QD. The distance from the second possible data point to this straight line is s for: ; When the second possible data point is below line segment AB, the current radius r Value and s All are counted as 0; Step 4) Screening the calculation points of the lower envelope: Based on the rolling ball radius R, the rolling ball method is used to screen out the data points to be fitted for analyzing the lower envelope; The rolling ball method only works on possible data points at the lower edge and does not perform surrounding screening; Step 5) Curve fitting to obtain the lower envelope: Based on the data points to be fitted, power function, exponential function, and polynomial function curves are selected as the basic model of the lower envelope, and the lower envelope is fitted using the least squares method.
2. The method for calculating a watershed dewatering curve based on the improved rolling ball method according to claim 1, characterized in that: In step 1), a point P is specified in the coordinate system, and the last data point of each retreat curve is translated to the specified point P to obtain the translation parameters of each retreat curve. Then, the points on each retreat curve are translated according to the translation parameters to obtain the translation curve.
3. The method for calculating a watershed dewatering curve based on the improved rolling ball method according to claim 2, characterized in that: Point P is any specified point in the coordinate system or the lowest point among the last data points of multiple recession curves.
4. The method for calculating a watershed dewatering curve based on the improved rolling ball method according to claim 2, characterized in that: In a single dewatering curve, the abscissa value of point P is subtracted from the abscissa value of the last data point of the dewatering curve, and the ordinate value of point P is subtracted from the ordinate value of the last data point of the dewatering curve to obtain Δt and Δq , Δt and Δq is the translation parameter of the current receding water curve.
5. The method for calculating a watershed retreat curve based on the improved rolling ball method according to claim 1, characterized in that: In step 2), starting from the smallest value of the horizontal coordinate among all the translation curves to the largest value of the horizontal coordinate, the vertical coordinate value corresponding to the horizontal coordinate value of each translation curve is found in turn.
6. The method for calculating a watershed dewatering curve based on the improved rolling ball method according to claim 1, characterized in that: In step 4), if the data points do not fall within the rolling sphere surface of the rolling sphere method, they are eliminated; if the data points fall within the rolling sphere surface of the rolling sphere method, they are retained.
