Rainfall interpolation algorithm based on effective angle of adjacent station to interpolation point
By using the Thiessen polygon area and inverse distance square combined weight method in rainfall interpolation, the accuracy and efficiency problems of traditional methods in complex terrain and non-uniform data processing are solved, and higher rainfall interpolation accuracy and continuity are achieved.
Patent Information
- Application Number
- CN202410639311.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-06
AI Technical Summary
Traditional rainfall interpolation methods have problems of insufficient accuracy and low computational efficiency when processing complex terrain and non-uniform spatial data, and are prone to local mutations and fracture zones, affecting the continuity and smoothness of the results.
The rainfall interpolation algorithm is based on the effective angle of the adjacent station to the interpolation point. By calculating the adjacent rainfall stations of the minimum Thiessen polygon of the point to be interpolated, and interpolating based on the combined weight method of the Thiessen polygon area and the inverse distance square, it improves the efficiency of the interpolation. Accuracy and reliability of rainfall interpolation.
This algorithm can more accurately reflect the actual rainfall distribution, avoid the deviation in the single weight method, improve the continuity and smoothness of the interpolation results, and is suitable for application scenarios such as weather forecasting and disaster warning.
Smart Images

Figure CN118604918A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of hydrological rainfall interpolation calculation, and more specifically relates to a rainfall interpolation algorithm based on the effective angles of interpolation points formed by neighboring stations. Background Art
[0002] In modern meteorological data processing and climatological research, rainfall interpolation is a very important task. Due to the large distance between observation stations, it is often necessary to use interpolation algorithms to estimate rainfall data at missing or unobserved stations. Traditional spatial interpolation methods mainly include Kriging interpolation, inverse distance weighted interpolation, and nearest neighbor interpolation.
[0003] In fields such as meteorology and environmental science, spatial interpolation is a commonly used data analysis method. However, in practical applications, conventional interpolation methods often have limitations. For example, the inverse distance weighting method (IDW) tends to favor nearby points, which sometimes causes distant information to be ignored. Although the Kriging and Splines methods can consider all data points globally, they have high computational complexity and are not suitable for big data processing. Especially when processing massive amounts of meteorological data, the accuracy and computational efficiency of the interpolation effect must be considered.
[0004] At the same time, rainfall at different locations is affected by multiple factors such as topography and wind direction. Traditional weighted interpolation methods based on distance or area often ignore these influencing factors, which will cause the interpolation results to deviate from the actual situation. In view of this limitation, how to effectively collect, process and utilize relevant influencing factors to improve the accuracy of rainfall interpolation is a current research problem.
[0005] In addition, traditional single-weight interpolation methods (such as area weight or distance weight) are prone to local mutations and fault zones in the interpolation results, affecting the continuity and smoothness of the interpolation results. This is particularly prominent in some application scenarios that require strong continuity or good smoothness (such as weather forecasting, disaster warning, etc.). Summary of the invention
[0006] The present invention proposes a novel rainfall interpolation algorithm based on the effective angles of neighboring stations to the interpolation point. By calculating the neighboring rainfall stations of the minimum Thiessen polygon of the interpolation point, and then interpolating according to the combined weight method of the Thiessen polygon area and the inverse distance square, the shortcomings of the traditional interpolation method when facing complex terrain and uneven distribution of spatial data are compensated, and the accuracy and reliability of the prediction are improved.
[0007] In order to achieve the above object, the present invention is implemented by adopting the following technical scheme: the rainfall interpolation algorithm comprises:
[0008] Data collection, including the points to be interpolated, rain gauges and rainfall at the rain gauges;
[0009] The rainfall interpolation calculation adopts the rainfall interpolation algorithm based on the effective angle between the neighboring stations and the interpolation point;
[0010] Data output includes the neighboring rain gauges and weights of the interpolation point and the rainfall in the period of the interpolation point.
[0011] In one embodiment, the data collection includes:
[0012] 1) Dataset of rainfall points to be interpolated: number, geodetic coordinates;
[0013] 2) Rainfall station dataset: number, geodetic coordinates;
[0014] 3) Period rainfall data set: rainfall station number, monitoring time, and monitored rainfall.
[0015] In one embodiment, the rainfall interpolation calculation includes:
[0016] (1) Construct Thiessen polygons for all rainfall stations and interpolation points, and record the point pairs corresponding to each edge of the Thiessen polygon;
[0017] (2) Confirm that the point pair containing the interpolation point is the smallest Thiessen polygon of the interpolation point and the related rainfall station;
[0018] (3) Connect the interpolation points and the relevant rainfall stations to obtain the distance; connect the interpolation points and the vertices of the minimum Thiessen polygon to obtain the area of the triangle corresponding to each edge;
[0019] (4) The combined weight is obtained by dividing the area by the inverse distance square, and the interpolation point rainfall is calculated; this is named the Thiessen polygon area and inverse distance square combined weight method VIDW.
[0020] In one embodiment, the data output includes:
[0021] 1) Neighboring rainfall stations and weights of the interpolation point: the number of the interpolation point, the number of the neighboring rainfall station n, and the weight;
[0022] 2) Rainfall during the period of the point to be interpolated: number of the point to be interpolated, monitoring time, and rainfall after interpolation.
[0023] In one solution, the Thiessen polygon area and inverse distance square combined weighting method VIDW is specifically as follows:
[0024] 1) Place the point in the spatial distribution of rainfall stations to construct Thiessen polygons;
[0025] 2) Analyze the Thiessen polygon where the point is located. The analysis process is as follows:
[0026] Subdivide Thiessen polygons into triangles and calculate the area A of each trianglei ;
[0027] Connect the point to the rain gauge station and calculate the distance d from the point to the surrounding rain gauge stations i ;
[0028] The Thiessen polygon area and inverse distance square combined weighting method VIDW is used, that is, the area of the triangle formed by the lines connecting each edge and the interpolation point is divided by the square of the distance as the weight of each neighboring rain gauge:
[0029]
[0030] Where: i is the rainfall station; d i is the distance between point pair (i, interpolation point); A i is the area of the triangle formed by the i-th edge of the Thiessen polygon and the interpolation point corresponding to the point pair (i, interpolation point); p i is the rainfall at rain gauge station i; P is the interpolated rainfall at the interpolation point.
[0031] Beneficial effects of the present invention:
[0032] Improved accuracy: The present invention adopts a rainfall interpolation algorithm based on the effective angle between the neighboring stations and the interpolation point, taking into account the geographical location and distance relationship between the observation point and the point to be interpolated, and can more accurately reflect the distribution of actual rainfall through the weighted interpolation method of minimum Thiessen polygons and inverse distance square.
[0033] This algorithm solves:
[0034] 1) Only the Thiessen polygon area weighting method is used. As a result, the weights of the farther and larger objects are too large, which deviates from common sense.
[0035] 2) Only the inverse distance square weighting method is used. The closer the result is, the more the measurement error is exaggerated.
[0036] 3) Whether it is the Thiessen polygon area method or the inverse distance square weighted method, the contour lines after multi-point interpolation have local mutation fault zones. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a flow chart of the method of the present invention;
[0038] Figure 2 Calculate rainfall graph for existing Thiessen polygon method;
[0039] Figure 3 A diagram of a Thiessen polygon area and inverse distance square combined weighting method (VIDW) method of the present invention;
[0040] Figure 4 A map of neighboring rainfall stations in which all vertices of the minimum Thiessen polygon of the present invention are interpolation points;
[0041] Figure 5 The present invention subdivides Thiessen polygons and calculates the area A of each triangle i picture;
[0042] Figure 6 The present invention connects this point to the rain gauge station and calculates the distance d from this point to the surrounding rain gauge stations. i picture;
[0043] Figure 7 This is the Thiessen polygon calculation graph of the third embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to facilitate understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Typical embodiments of the present invention are provided in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described in the present invention. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0045] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0046] Embodiment 1
[0047] like Figure 1 As shown, the rainfall interpolation algorithm includes:
[0048] S1. Data collection, including the interpolation point, rain gauge station and rainfall in the period of the rain gauge station;
[0049] Includes the interpolation point, rain gauge station and rainfall in the period of the rain gauge station, including:
[0050] 1) Dataset of rainfall points to be interpolated: number, geodetic coordinates (x, y);
[0051] 2) Rainfall station data set: number, geodetic coordinates (x, y);
[0052] 3) Period rainfall data set: rainfall station number, monitoring time, and monitored rainfall.
[0053] S2, rainfall interpolation calculation, using the rainfall interpolation algorithm based on the effective angle of the neighboring stations to the interpolation point;
[0054] like Figure 2 As shown, the existing Thiessen polygon method rainfall calculation method is as follows:
[0055] Spatial distribution of rainfall stations → Thiessen polygons,
[0056] There is a rain gauge station in each polygon, and the rainfall at each rain gauge station in the polygon represents the rainfall in the polygon.
[0057] The average rainfall in the basin is calculated by weighting the area of each polygon, that is:
[0058]
[0059] Where: A i is the area of the ith polygon km 2 ; A is the basin area km 2 .
[0060] In the Thiessen polygon method, the rainfall calculation at a certain point is to query the Thiessen polygon where it is located and obtain the rainfall at the corresponding rain gauge station.
[0061] Rainfall calculation_distance square inverse weight method
[0062] The rainfall at a certain point is weighted by the inverse of the square of the distance from each rain gauge station to the point. The weight coefficient of each station is multiplied by the rainfall at each station during the same period, and the sum is taken. Therefore, the closer the distance from the rain gauge station to the grid point, the greater its weight. If the distance is d, then its weight is W = 1 / d 2 The calculation method of grid point precipitation P is:
[0063]
[0064] like Figure 3 As shown, the Thiessen polygon area and inverse distance square combined weighting method (VIDW) of the present application solution is as follows:
[0065] What is to be calculated is the amount of rainfall at a certain point;
[0066] like Figure 4 As shown, S201, taking the interpolation point as the center, find the minimum Thiessen polygon for all rainfall stations, and take all vertices of the minimum Thiessen polygon as the neighboring rainfall stations of the interpolation point.
[0067] S202, using the Thiessen polygon area and inverse distance square combined weighting method VIDW, that is, the area of the triangle formed by the line connecting each edge and the interpolation point divided by the square of the distance as the weight of each neighboring rainfall station.
[0068] S2021. Subdivide Thiessen polygons into triangles and calculate the area A of each triangle i ,like Figure 5 shown.
[0069] S2022. Connect the point to the rain gauge station and calculate the distance d from the point to the surrounding rain gauge stations. i ;like Figure 6 shown.
[0070] S2023. Use the Thiessen polygon area and inverse distance square weighting method (VIDW), that is, the area of the triangle formed by the line connecting each edge and the interpolation point divided by the square of the distance as the weight of each neighboring rainfall station:
[0071]
[0072] Where: i is the rainfall station; d i is the distance between point pairs (i, interpolation points); A i is the area of the triangle formed by the i-th edge of the Thiessen polygon and the interpolation point corresponding to the point pair (i, interpolation point); p i is the rainfall at rain gauge station i; P is the interpolated rainfall at the interpolation point.
[0073] Can be simplified to:
[0074]
[0075] because
[0076]
[0077]
[0078] Therefore, the significance of this weighting method is that the effective angle between the neighboring rainfall stations and the interpolation point is:
[0079]
[0080] Where: A is the area; d is the distance; b is the side length; h is the vertical distance from the interpolation point to the corresponding side; p i is the rainfall in the period of the ith adjacent rain gauge station; p x is the rainfall in the period of time at the point to be interpolated.
[0081] S3. Data output, including the neighboring rainfall stations and weights of the point to be interpolated and the rainfall in the period of the point to be interpolated.
[0082] Includes the neighboring rainfall stations and weights of the point to be interpolated and the rainfall of the time period of the point to be interpolated, including:
[0083] 1) Neighboring rainfall stations and weights of the interpolation point: number of the interpolation point, neighboring rainfall station n (number, weight);
[0084] 2) Rainfall during the period of the point to be interpolated: number of the point to be interpolated, monitoring time, and rainfall after interpolation.
[0085] Embodiment 2:
[0086] Based on the first embodiment, a rainfall interpolation system based on the effective angles of the interpolation points formed by the neighboring stations is constructed. The system is applicable to the method described. The rainfall interpolation system includes:
[0087] Data reading module, used to read interpolation points, rain gauges and rainfall in each period of the rain gauge;
[0088] A data output module is used to output the neighboring rainfall stations and weights of the interpolation point and the rainfall of the interpolation point in the period;
[0089] The rainfall interpolation calculation module performs rainfall interpolation calculations on neighboring stations.
[0090] Embodiment three:
[0091] First, the following data needs to be collected:
[0092] The point dataset to be interpolated, for example:
[0093] Point 1 (number: ST1, geodetic coordinates: (100.1, 20.2))
[0094] Point 2 (number: ST2, geodetic coordinates: (101.2, 21.5))
[0095] Rain gauge datasets, such as:
[0096] Station 1 (number: RA1, geodetic coordinates: (100.5, 20.8))
[0097] Station 2 (number: RA2, geodetic coordinates: (101.8, 21.9))
[0098] Period rainfall datasets, for example:
[0099] Station 1 (No.: RA1, monitoring time: 2024-04-15 11:30:00, monitoring rainfall: 30 mm)
[0100] Station 2 (No.: RA2, monitoring time: 2024-04-15 11:30:00, monitoring rainfall: 45mm)
[0101] Then, the above algorithm is used to perform rainfall interpolation calculation, and the minimum Thiessen polygon is calculated for all rainfall stations with the interpolation point as the center, and the weight is calculated. Taking interpolation point 1 as an example, it is assumed that the vertices of its minimum Thiessen polygon are station 1 and station 2, and the weights are 0.6 and 0.4 respectively.
[0102] Finally, the calculation results are output, including the number of the interpolation point, the number and weight of the rain gauge station near the interpolation point, and the interpolated rainfall. For example:
[0103] Interpolation point 1 (number: ST1, adjacent rainfall station: RA1, weight: 0.6, interpolated rainfall: 38 mm)
[0104] Interpolation point 1 (number: ST1, adjacent rainfall station: RA2, weight: 0.4, interpolated rainfall: 45 mm)
[0105] like Figure 7 As shown in the figure, the Thiessen polygon area and inverse distance square combined weighting method VIDW is used, that is, the area of the triangle formed by the line connecting each edge and the interpolation point is divided by the square of the distance as the weight of each neighboring rain gauge. The calculation process is as follows:
[0106]
[0107] Calculate the Thiessen polygons for all rain gauges with the centroid of each hydrological response unit as the center. Assume that all vertices of the Thiessen polygon are the neighboring rain gauges of the hydrological response unit. The area of the triangle formed by the lines connecting the edges of the Thiessen polygon and the centroid divided by the square of the distance is the weight of each neighboring rain gauge.
[0108] This algorithm solves:
[0109] 1) Only the Thiessen polygon area weighting method is used. As a result, the weights of the farther and larger objects are too large, which deviates from common sense.
[0110] 2) Only the inverse distance square weighting method is used. The closer the result is, the more the measurement error is amplified.
[0111] 3) Whether it is the Thiessen polygon area method or the inverse distance square weighted method, the contour lines after multi-point interpolation have local mutation fault zones.
[0112] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0113] It should be understood that the detailed description of the technical solutions of the present invention with the help of the preferred embodiments is illustrative rather than restrictive. A person skilled in the art may modify the technical solutions described in the embodiments, or replace some of the technical features therein by equivalents, based on reading the specification of the present invention; and these modifications or replacements do not make the essence of the technical solutions of the corresponding specifications deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A rainfall interpolation algorithm based on the effective angles of the neighboring stations to the interpolation points, characterized by: The rainfall interpolation algorithm includes: Data collection, including the points to be interpolated, rain gauges and rainfall at the rain gauges; The rainfall interpolation calculation adopts the rainfall interpolation algorithm based on the effective angle between the neighboring stations and the interpolation point; Data output includes the neighboring rain gauges and weights of the interpolation point and the rainfall in the period of the interpolation point.
2. The rainfall interpolation algorithm based on the effective angles of the interpolation points formed by the neighboring stations according to claim 1, characterized in that: The data collection includes: 1) Dataset of rainfall points to be interpolated: number, geodetic coordinates; 2) Rainfall station dataset: number, geodetic coordinates; 3) Period rainfall data set: rainfall station number, monitoring time, and monitored rainfall.
3. The rainfall interpolation algorithm based on the effective angles of the interpolation points formed by the neighboring stations according to claim 1, characterized in that: The rainfall interpolation calculation includes: (1) Construct Thiessen polygons for all rainfall stations and interpolation points, and record the point pairs corresponding to each edge of the Thiessen polygon; (2) Confirm that the point pair containing the interpolation point is the smallest Thiessen polygon of the interpolation point and the related rainfall station; (3) Connect the interpolation points and the relevant rainfall stations to obtain the distance; connect the interpolation points and the vertices of the minimum Thiessen polygon to obtain the area of the triangle corresponding to each edge; (4) The combined weight is obtained by dividing the area by the inverse distance square, and the interpolated point rainfall is calculated; this is named the Thiessen area and inverse distance square combined weight method (VIDW).
4. The rainfall interpolation algorithm based on the effective angles of the interpolation points formed by the neighboring stations according to claim 1, characterized in that: The data output includes: 1) Neighboring rainfall stations and weights of the interpolation point: the number of the interpolation point, the number of the neighboring rainfall station n, and the weight; 2) Rainfall during the period of the point to be interpolated: number of the point to be interpolated, monitoring time, and rainfall after interpolation.
5. The rainfall interpolation algorithm based on the effective angles of the interpolation points formed by the neighboring stations according to claim 3, characterized in that: The Thiessen polygon area and inverse distance square combined weighting method VIDW is as follows: 1) Place the point in the spatial distribution of rainfall stations to construct Thiessen polygons; 2) Analyze the Thiessen polygon where the point is located. The analysis process is as follows: Subdivide Thiessen polygons into triangles and calculate the area A of each triangle i ; Connect the point to the rain gauge station and calculate the distance d from the point to the surrounding rain gauge stations i ; The Thiessen polygon area and inverse distance square combined weighting method VIDW is used, that is, the area of the triangle formed by the lines connecting each edge and the interpolation point is divided by the square of the distance as the weight of each neighboring rain gauge: Where: i is the rainfall station; d i is the distance between point pairs (i, interpolation points); A i is the area of the triangle formed by the i-th edge of the Thiessen polygon and the interpolation point corresponding to the point pair (i, interpolation point); p i is the rainfall at rain gauge station i; P is the interpolated rainfall at the interpolation point.
