Method and system for calculating typhoon path wind circle coverage area
By calculating the area covered by the typhoon's path and wind circle, the problem of the inability to intuitively display the area affected by the typhoon's wind circle in existing technologies has been solved, thus enabling intuitive display and providing a basis for calculation.
Patent Information
- Application Number
- CN202211704911.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2042-12-29
AI Technical Summary
Existing typhoon forecast products cannot visually display the area affected by the wind circle during the movement of a typhoon, making it difficult to determine whether a certain location is affected by the typhoon.
By calculating the external tangent points of two adjacent wind circles, connecting the tangent points of adjacent wind circles with straight lines and arcs, merging all wind circle path areas, forming the typhoon path wind circle coverage area, and performing polygon simulation, the area affected by the typhoon is visually displayed.
It enables a direct view of the areas affected by the typhoon's wind circle during its movement, providing a calculation basis for determining whether an area is affected by the typhoon.
Smart Images

Figure CN116148949B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of graphics rendering, more particularly, it relates to a method and system for calculating typhoon path wind circle coverage area. BACKGROUND
[0002] When typhoon prediction and forecasting, a series of ordered typhoon center position and maximum wind circle radius data can be obtained according to the existing typhoon data and prediction and forecasting. The existing prediction and forecasting products generally draw typhoon path according to the typhoon center using line segments, but this method cannot intuitively view the area affected by the wind circle during the movement of the typhoon, and it is not convenient to determine whether a certain position is affected by the typhoon.
[0003] Therefore, on the basis of obtaining ordered typhoon center and maximum wind circle radius data, the present application proposes a method for calculating typhoon path wind circle coverage area, which can more intuitively view the area affected by the wind circle during the movement of the typhoon, and provide convenience for determining whether the area is affected by the typhoon. SUMMARY
[0004] The purpose of the present application is to provide a method and system for calculating typhoon path wind circle coverage area, which can intuitively view the area affected by the wind circle during the movement of the typhoon.
[0005] The above technical purpose of the present application is achieved by the following technical scheme: comprising the following steps:
[0006] S1, obtaining ordered wind circle data, the wind circle data comprising: typhoon center and maximum wind circle radius;
[0007] S2, calculating the external tangent points of adjacent two wind circles, connecting the two tangent points on adjacent wind circles with a straight line, and connecting the two tangent points on the same wind circle with a circular arc to form a wind circle path area;
[0008] S3, merging all adjacent wind circle path areas to obtain a wind circle coverage area;
[0009] S4, polygon simulation is performed on the circular arcs in the wind circle coverage area to obtain a typhoon path wind circle coverage area.
[0010] With the above technical scheme, on the basis of obtaining ordered wind circle data, adjacent wind circles are connected by circular arcs and line segments until all wind circles are connected to obtain a wind circle coverage area. The wind circle coverage area contains typhoon center information and maximum wind circle radius information. After drawing the wind circle coverage area, the area affected by the movement of the typhoon can be intuitively viewed, and the calculation basis for determining whether the area is affected by the typhoon is provided.
[0011] Further, the step S2 comprises: calculating the tangent point of the tangent lines of the two adjacent wind circles, taking two tangent lines between the tangent points and two circular arcs outside the tangent points in order to enclose the wind circle path region.
[0012] Further, if there is no tangent point between the two adjacent wind circles, i.e., the wind circle with smaller radius is inside the wind circle with larger radius, the wind circle with larger radius is directly used as the wind circle path region.
[0013] Further, the step S3 comprises:
[0014] S31, obtaining the first wind circle path region A1 through the step S2;
[0015] S32, judging whether there is a next wind circle path region An, n is a positive integer, if yes, going to step S33, if no, going to step S4;
[0016] S33, calculating the intersection point of the wind circle path region A1 and the wind circle path region An, and judging whether the intersection point is valid;
[0017] S34, determining the end point of the wind circle path region A1 and the wind circle path region An, and judging whether the end point is valid, enclosing the wind circle coverage region according to the valid end point and the valid intersection point, and jumping to step S32.
[0018] Further, in the step S33, judging whether the intersection point is valid, there are three cases:
[0019] Line segment intersection: calculating the intersection point of the two straight lines on which the line segments are located, if the intersection point is on both line segments, the intersection point is valid, otherwise, the intersection point is invalid;
[0020] Line segment and circular arc intersection: calculating the intersection point of the straight line on which the line segment is located and the circle on which the circular arc is located, if there are two intersection points, processing the two intersection points respectively, if the intersection points are on the line segment and the circular arc, the intersection point is valid, otherwise, the intersection point is invalid, if the straight line on which the line segment is located and the circle on which the circular arc is located have only one intersection point, the intersection point is invalid;
[0021] Circular arc intersection: calculating the intersection point of the circle on which the circular arc is located, if there are two intersection points, processing the two intersection points respectively, if the intersection points are on the two circular arcs, the intersection point is valid, otherwise, the intersection point is invalid, if the two circular arcs are on the same circle, the start point and the end point of one of the circular arcs are directly used as the intersection point, judging whether the intersection point is on the other circular arc, if yes, the intersection point is valid, if no, the intersection point is invalid.
[0022] Further, the step S34 comprises:
[0023] S341, judging whether each end point of the wind ring path region A1 is inside each end point of the wind ring path region An, whether each end point of the wind ring path region An is inside each end point of the wind ring path region A1, if not inside, the end point is valid, if inside, the end point is invalid;
[0024] S342, traversing each line segment and circular arc of the wind ring path region A1 and the wind ring path region An, sorting the valid end points and the valid intersection points on the line segment and the circular arc according to the direction from the start point to the end point of the line segment and the circular arc, connecting each two of the sorted points to become a new line segment or a new circular arc;
[0025] S343, traversing all the new line segments and the new circular arcs in the wind ring path region A1 and the wind ring path region An, sequentially connecting to form a wind ring coverage region.
[0026] The application provides a system for calculating a wind ring coverage region of a typhoon path, comprising:
[0027] A first unit is configured to obtain ordered wind ring data, wherein the wind ring data comprises a typhoon center and a maximum radius of a wind ring;
[0028] A second unit is configured to calculate an external tangent point of two adjacent wind rings, and connect two tangent points on adjacent wind rings by a straight line, and connect two tangent points on a same wind ring by a circular arc, so as to form a wind ring path region;
[0029] A third unit is configured to merge all adjacent wind ring path regions to obtain a wind ring coverage region;
[0030] A fourth unit is configured to perform polygon simulation on the circular arc in the wind ring coverage region to obtain a wind ring coverage region of a typhoon path.
[0031] The application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for calculating a wind ring coverage region of a typhoon path when executing the program.
[0032] The application provides a non-transitory computer readable storage medium, which stores a computer program, wherein the computer program is executable by a processor to implement the method for calculating a wind ring coverage region of a typhoon path.
[0033] The application provides a computer program product, comprising a computer program, wherein the computer program is executable by a processor to implement the method for calculating a wind ring coverage region of a typhoon path.
[0034] Compared with the prior art, the application has the following beneficial effects: the application provides a method and system for calculating a typhoon path wind ring coverage area, obtains typhoon path wind ring coverage area data based on ordered wind ring data, can intuitively view an area affected by a wind ring during typhoon movement, and provides calculation basis for judging whether the area is affected by the typhoon. BRIEF DESCRIPTION OF DRAWINGS
[0035] The drawings described herein are used to provide further understanding of the embodiments of the application, constitute a part of the application, and do not constitute a limitation of the embodiments of the application. In the drawings:
[0036] Figure 1 A flowchart of the method provided by an embodiment of the application is shown in the figure;
[0037] Figure 2 A wind ring path area of adjacent wind rings provided by an embodiment of the application;
[0038] Figure 3 A wind ring path area A1 of wind ring C1 and wind ring C2 provided by an embodiment of the application;
[0039] Figure 4 A wind ring path area A2 of wind ring C2 and wind ring C3 provided by an embodiment of the application;
[0040] Figure 5 A wind ring path area of two adjacent wind rings without a tangent provided by an embodiment of the application;
[0041] Figure 6 A flowchart of step S3 provided by an embodiment of the application is shown in the figure;
[0042] Figure 7 An intersection of two adjacent wind ring path areas provided by an embodiment of the application;
[0043] Figure 8 A typhoon path wind ring coverage area provided by an embodiment of the application;
[0044] Figure 9 A system structure schematic diagram provided by an embodiment of the application is shown in the figure;
[0045] Figure 10 A physical structure schematic diagram of an electronic device provided by an embodiment of the application is shown in the figure.
[0046] Reference signs:
[0047] 301, first unit; 302, second unit; 303, third unit; 304, fourth unit;
[0048] 401, processor; 402, communication interface; 403, memory; 404, communication bus. DETAILED DESCRIPTION
[0049] Hereinafter, the term "include" or "may include" used in various embodiments of the present application indicates existence of a certain function, operation, or element, and does not limit one or more functions, operations, or elements to be added. Also, the terms "include", "have", and their conjugates as used in various embodiments of the present application, do not limit one or more specific features, numbers, steps, operations, elements, components, or a combination thereof, to exist or be added, but can be understood to denote that the existence or addition of one or more features, numbers, steps, operations, elements, components, or a combination thereof is not precluded.
[0050] In various embodiments of the present application, the expression "or" or "at least one of B or / and C" includes any combination of the listed terms or all the terms. For example, the expression "B or C" or "at least one of B or / and C" can include B, can include C, or can include both B and C.
[0051] The expressions, such as "first", "second", and the like, used in various embodiments of the present application can modify various components in various embodiments, but can not limit the corresponding components. For example, the above expressions do not limit the order and / or importance of the elements. The above expressions are used merely for the purpose of distinguishing a component from other components. For example, a first user device and a second user device indicate different user devices, although both are user devices. For example, a first element can be referred to as a second element, and similarly, a second element can be referred to as a first element, without departing from the scope of various embodiments of the present application.
[0052] The terms used in various embodiments of the present application are used merely to describe particular embodiments and are not intended to limit various embodiments of the present application. As used herein, the singular forms are intended to include the plural forms as well, unless the context clearly indicates otherwise. Unless defined otherwise, all terms used herein (including technical terms and scientific terms) have the same meanings as those generally understood by those with ordinary knowledge in the field to which various embodiments of the present application belong. The terms, such as those defined in a generally used dictionary, are to be interpreted as having the same meanings as those in the context of relevant technology and will not be interpreted to have ideal or excessively formal meanings, unless clearly defined in various embodiments of the present application.
[0053] In order to make the purposes, technical solutions, and advantages of the present application more clear, further specific description will be made to the present application with reference to the embodiments and the accompanying drawings, and the schematic embodiments of the present application and the description thereof are only used to explain the present application, and do not limit the present application.
[0054] Embodiment 1
[0055] The embodiment provides a method for calculating a typhoon path wind ring coverage area, obtaining typhoon path wind ring coverage area data based on obtained ordered wind ring data, drawing to facilitate viewing of an area affected by typhoon movement, and providing a calculation basis for judging whether the area is affected by a typhoon.
[0056] Referring to Figure 1 , a flowchart of the method is shown, and the method comprises the following steps: Figure 1 The method comprises the following steps:
[0057] S1, obtaining ordered wind ring data, wherein the wind ring data comprises a typhoon center and a maximum radius of a wind ring;
[0058] S2, calculating an external tangent point of two adjacent wind rings, connecting two tangent points on adjacent wind rings by a straight line, and connecting two tangent points on the same wind ring by an arc, to form a wind ring path area;
[0059] S3, merging all adjacent wind ring path areas to obtain a wind ring coverage area;
[0060] S4, performing polygon simulation on the arcs in the wind ring coverage area to obtain a typhoon path wind ring coverage area.
[0061] Step S1: obtaining ordered wind ring data, wherein the wind ring data comprises a typhoon center and a maximum radius of a wind ring. Specifically, ordered wind ring data during typhoon movement is obtained, that is, a series of circles sorted by time, the center of the wind ring is the typhoon center, and the radius of the wind ring is the maximum radius of the wind ring corresponding to the typhoon center. Based on the wind ring data obtained in step S1, the wind ring path area formed by the two adjacent wind rings is calculated in step S2.
[0062] Step S2: calculating an external tangent point of two adjacent wind rings, connecting two tangent points on adjacent wind rings by a straight line, and connecting two tangent points on the same wind ring by an arc, to form a wind ring path area. The specific method is as follows: calculating the tangent point of the external tangent line of the two adjacent wind rings, and taking two tangent lines between the tangent points and two arcs outside the tangent points in sequence, to enclose a wind ring path area.
[0063] According to the order of the wind rings, the tangent points of the external tangent lines of the two adjacent wind rings are calculated in sequence, two tangent lines and two arcs between the tangent points are taken in sequence, to form an effective typhoon path area. If there are n wind rings C1, C2, C3,..., Cn, n-1 wind ring path areas A1, A2,..., An-1 can be obtained.
[0064] As Figure 2 shown, Figure 2 the wind ring path areas of the adjacent wind rings are shown, Figure 2There are three wind circles, C1, C2 and C3. The intersection points p12_1, p12_2, p12_3 and p12_4 of wind circle C1 and wind circle C2 are calculated, and the intersection points p23_1, p23_2, p23_3 and p23_4 of wind circle C2 and wind circle C3 are calculated. Two wind circle path areas are obtained, which are wind circle path area A1 of C1 and C2, and wind circle path area A2 of C2 and C3. The line segment [p12_1, p12_2], the circular arc [p12_2, p12_3], the line segment [p12_3, p12_4] and the circular arc [p12_4, p12_1] are obtained in the clockwise direction, as shown in FIG. 8. Figure 3 The line segment [p23_1, p23_2], the circular arc [p23_2, p23_3], the line segment [p23_3, p23_4] and the circular arc [p23_4, p23_1] are obtained in the clockwise direction, as shown in FIG. 9. Figure 4
[0065] It should be noted that if there is no intersection point between two adjacent wind circles, that is, the wind circle with a smaller radius is inside the wind circle with a larger radius, the wind circle with a larger radius is directly used as the wind circle path area, as shown in FIG. 10. Wind circles C1 and C2 have no intersection point, and the radius of C2 is larger, so wind circle C2 is used as the wind circle path area. Figure 5
[0066] Step S3: merging all adjacent wind circle path areas to obtain a wind circle coverage area. For details, refer to FIG. 11. Figure 6
[0067] S31: obtaining the first wind circle path area A1 through step S2;
[0068] S32: judging whether there is a next wind circle path area An, n is a positive integer. If yes, go to step S33; if no, go to step S4;
[0069] S33: calculating the intersection points of the wind circle path area A1 and the wind circle path area An, and judging whether the intersection points are valid;
[0070] S34: determining the end points of the wind circle path area A1 and the wind circle path area An, and judging whether the end points are valid. The wind circle coverage area is enclosed according to the valid end points and the valid intersection points, and the process jumps to step S32.
[0071] Step S33 and step S34 will be described in detail below. According to the different intersection objects, there are three cases when judging whether the intersection points are valid in step S33:
[0072] A. Line segment intersection: the intersection points of the two straight lines on which the two line segments are located are calculated. If the intersection points are on both line segments, the intersection points are valid, otherwise the intersection points are invalid. The valid intersection points are retained, and the invalid intersection points are discarded.
[0073] As Figure 7 shown, the line segment [p12_1, p12_2] and the line segment [p23_1, p23_2] have an intersection point p12_23, which is on both the line segment [p12_1, p12_2] and the line segment [p23_1, p23_2], so the intersection point is validly reserved; the intersection point of the line segment [p12_1, p12_2] and the line segment [p23_3, p23_4] is on the extension line, and the intersection point is invalid; the intersection point of the line segment [p12_3, p12_4] and the line segment [p23_3, p23_4] is on the extension line, and the intersection point is invalid; the intersection point of the line segment [p12_3, p12_4] and the line segment [p23_1, p23_2] is on the extension line, and the intersection point is invalid.
[0074] B, the line segment intersects with the circular arc: calculate the intersection point of the straight line where the line segment is located and the circle where the circular arc is located, if there are two intersection points, process the two intersection points respectively, if the intersection points are on the line segment and the circular arc, the intersection point is valid, otherwise the intersection point is invalid, if the straight line where the line segment is located and the circle where the circular arc is located have only one intersection point, the intersection point is invalid, the valid intersection point is reserved and the invalid intersection point is discarded;
[0075] As Figure 7 shown, the line segment [p12_1, p12_2] and the circular arc [p23_2, p23_3] have two intersection points, but one of the intersection points is on the line segment but not on the circular arc, and the other intersection point is on the circular arc but not on the line segment, so the two intersection points are invalid; the line segment [p12_1, p12_2] and the circular arc [p23_4, p23_1] have only one intersection point, that is, there is a common circle C2, so the intersection point is not calculated.
[0076] C, the circular arc intersects with the circular arc: calculate the intersection point of the circle where the circular arc is located, if there are two intersection points, process the two intersection points respectively, if the intersection points are on the two circular arcs, the intersection point is valid, otherwise the intersection point is invalid, if the two circular arcs are on the same circle, directly use the starting point and the ending point of one of the circular arcs as the intersection point, judge whether the intersection point is on the other circular arc, if yes, the intersection point is valid, if not, the intersection point is invalid, the valid intersection point is reserved and the invalid intersection point is discarded;
[0077] As Figure 7 shown, the circle C1 of the circular arc [p12_2, p12_3] and the circle C3 of the circular arc [p23_2, p23_3] have two intersection points, but the two intersection points are not on the circular arc, so the two intersection points are invalid; the circular arc [p12_2, p12_3] and the circular arc [p23_4, p23_1] are on the same circle C2, so the endpoints of the circular arc [p23_4, p23_1] are used as the intersection point, and the circular arc [p12_2, p12_3] is reserved, at this time p23_4 is the valid intersection point reserved.
[0078] After the valid intersection points are determined, the valid end points need to be determined through step S34, and then the wind ring coverage area is drawn using the valid intersection points and the valid end points.
[0079] Step S34: Determine the end points of the wind ring path area A1 and the wind ring path area An, and judge whether the end points are valid. The wind ring coverage area is enclosed according to the valid end points and the valid intersection points. Specifically, it includes:
[0080] S341, judge whether each end point of the wind ring path area A1 is inside the wind ring path area An, and whether each end point of the wind ring path area An is inside the wind ring path area A1. If not inside, the end point is valid; if inside, the end point is invalid; as shown in Figure 7 The starting point p12_1 in the line segment [p12_1, p12_2] in the A1 area is valid, and the end point p12_2 in the A2 area is invalid.
[0081] S342, traverse each line segment and circular arc of the wind ring path area A1 and the wind ring path area An, sort the valid end points and the valid intersection points on the line segment and the circular arc according to the direction from the starting point to the end point of the line segment and the circular arc, and connect each two of the sorted points to form a new line segment or a new circular arc; for example, there are sorted points [p1, p2, p3, p4], which are sequentially connected by line segments and circular arcs to form two new line segments or circular arcs [p1, p2] and [p3, p4]. As shown in Figure 7 The starting point p12_1 in the line segment [p12_1, p12_2] in the A1 area is valid, and the end point p12_2 in the A2 area is invalid. There is only one intersection point p12_23, and the order of the points is [p12_1, p12_23], so the new line segment [p12_1, p12_23] is obtained; the starting point p12_2 of the circular arc [p12_2, p12_3] in the A1 area is invalid, the end point p12_3 is valid, and there is one valid intersection point p23_4. The order of the points is [p23_4, p12_3], and the new circular arc [p23_4, p12_3] is obtained.
[0082] S343, traverse all the new line segments and circular arcs in the wind ring path area A1 and the wind ring path area An, and sequentially connect them to form the wind ring coverage area. As shown in Figure 8 The new area A1 is obtained, and the order is line segment [p12_1, p12_23], line segment [p12_23, p23_2], circular arc [p23_2, p23_3], line segment [p23_3, p23_4], circular arc [p23_4, p12_3], line segment [p12_3, p12_4], and circular arc [p12_4, p12_1].
[0083] Finally, the circular arcs in the wind ring coverage area are polygonal simulated through step S4, and the wind ring coverage area of the typhoon path is obtained. As shown inFigure 8 As shown, the circular arc [p23_2, p23_3], the circular arc [p23_4, p12_3], and the circular arc [p12_4, p12_1] need to be simulated by using polygons.
[0084] The method for calculating the typhoon path wind ring coverage area provided in this embodiment can obtain typhoon path wind ring coverage area data through steps S1-S4, and can intuitively view the area affected by the typhoon movement after drawing, and provide a calculation basis for judging whether the area is affected by the typhoon.
[0085] Embodiment 2
[0086] The system for calculating the typhoon path wind ring coverage area provided in this embodiment can be correspondingly referred to the system for calculating the typhoon path wind ring coverage area described below and the method for calculating the typhoon path wind ring coverage area described above.
[0087] Referring to Figure 9 As shown, Figure 9 The system includes:
[0088] The first unit 301 is configured to obtain ordered wind ring data, and the wind ring data includes a typhoon center and a maximum radius of a wind ring.
[0089] The second unit 302 is configured to calculate an external tangent point of two adjacent wind rings, and two tangent points on adjacent wind rings are connected by a straight line, and two tangent points on the same wind ring are connected by a circular arc, so as to form a wind ring path area.
[0090] The third unit 303 is configured to combine all adjacent wind ring path areas to obtain a wind ring coverage area.
[0091] The fourth unit 304 is configured to perform polygon simulation on a circular arc in the wind ring coverage area to obtain a typhoon path wind ring coverage area.
[0092] Further, the second unit 302 is further configured to calculate a tangent point of the external tangent line of the two adjacent wind rings, and two tangent lines between the tangent points and two circular arcs outside the tangent points are enclosed to form a wind ring path area.
[0093] Further, if there is no tangent point between the two adjacent wind rings, that is, the wind ring with a smaller radius is inside the wind ring with a larger radius, the wind ring with the larger radius is directly used as the wind ring path area.
[0094] Further, the third unit 303 is further configured to implement the following steps.
[0095] S31, obtain a first wind ring path area A1 through step S2.
[0096] S32, judge whether there is next wind ring path area An, n is positive integer, if there is, go to step S33, if not, go to step S4;
[0097] S33, calculate the intersection of wind ring path area A1 and wind ring path area An, and judge whether the intersection is valid;
[0098] S34, determine the end point of wind ring path area A1 and wind ring path area An, and judge whether the end point is valid, enclose wind ring coverage area according to valid end point and valid intersection, and jump to step S32.
[0099] In step S33, judge whether the intersection is valid, there are three cases:
[0100] Line segment and line segment intersection: calculate the intersection of the straight lines where the two line segments are located, if the intersection points are on both line segments, the intersection point is valid, otherwise the intersection point is invalid;
[0101] Line segment and arc intersection: calculate the intersection of the straight line where the line segment is located and the circle where the arc is located, if there are two intersection points, process the two intersection points respectively, if the intersection points are on the line segment and the arc, the intersection point is valid, otherwise the intersection point is invalid, if the straight line where the line segment is located and the circle where the arc is located have only one intersection point, the intersection point is invalid;
[0102] Arc and arc intersection: calculate the intersection of the circles where the arcs are located, if there are two intersection points, process the two intersection points respectively, if the intersection points are on both arcs, the intersection point is valid, otherwise the intersection point is invalid, if the two arcs are on the same circle, directly use the start point and end point of one of the arcs as the intersection point, judge whether the intersection point is on the other arc, if yes, the intersection point is valid, if not, the intersection point is invalid.
[0103] Step S34 includes:
[0104] S341, judge whether each end point of wind ring path area A1 is inside wind ring path area An, whether each end point of wind ring path area An is inside wind ring path area A1, if not inside, the end point is valid, if inside, the end point is invalid;
[0105] S342, traverse each line segment and arc of wind ring path area A1 and wind ring path area An, sort the valid end points and valid intersection points on the line segments and arcs according to the direction from the start point to the end point of the line segments and arcs, connect each two of the sorted points to become a new line segment or arc;
[0106] S343, traverse all new line segments and arcs in wind ring path area A1 and wind ring path area An, connect them in order to form wind ring coverage area.
[0107] Example 3
[0108] This embodiment provides a schematic diagram of the physical structure of an electronic device, such as... Figure 10 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a method for calculating the coverage area of a typhoon's path wind circle. The method includes: obtaining ordered wind circle data, the wind circle data including: the typhoon center and the maximum radius of the wind circle; calculating the outer tangent points of two adjacent wind circles, where two adjacent tangent points on adjacent wind circles are connected by straight lines, and two tangent points on the same wind circle are connected by arcs to form a wind circle path area; merging all adjacent wind circle path areas to obtain the wind circle coverage area; and performing polygon simulation on the arcs within the wind circle coverage area to obtain the typhoon path wind circle coverage area.
[0109] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0110] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a method for calculating the coverage area of a typhoon path wind circle provided by the above methods. The method includes: obtaining ordered wind circle data, the wind circle data including: the typhoon center and the maximum radius of the wind circle; calculating the external tangent points of two adjacent wind circles, where two adjacent tangent points on adjacent wind circles are connected by straight lines, and two tangent points on the same wind circle are connected by arcs to form a wind circle path area; merging all adjacent wind circle path areas to obtain a wind circle coverage area; and performing polygon simulation on the arcs within the wind circle coverage area to obtain the typhoon path wind circle coverage area.
[0111] In yet another aspect, the present application also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for providing a typhoon path wind circle coverage area, the method comprising: obtaining ordered wind circle data, the wind circle data comprising: a typhoon center and a maximum radius of a wind circle; calculating an external tangent point of two adjacent wind circles, two tangent points on adjacent wind circles being connected by a straight line, and two tangent points on the same wind circle being connected by an arc, to form a wind circle path area; merging all adjacent wind circle path areas to obtain a wind circle coverage area; and performing polygon simulation on the arcs in the wind circle coverage area to obtain a typhoon path wind circle coverage area.
[0112] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. Those skilled in the art can understand and implement without creative labor.
[0113] From the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be realized by means of software plus necessary universal hardware platforms, and of course can also be realized by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.
[0114] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method of calculating typhoon track wind band coverage area, characterized by: The method comprises the following steps: S1, obtaining ordered wind circle data, the wind circle data comprising: a typhoon center and a maximum radius of a wind circle; S2, calculating an external tangent point of two adjacent wind circles, two adjacent tangent points on adjacent wind circles being connected by a straight line, two tangent points on the same wind circle being connected by a circular arc, and the two being enclosed to form a wind circle path area; S3, merging all adjacent wind circle path areas to obtain a wind circle coverage area; S4, polygonal simulation of the circular arcs in the wind circle coverage area to obtain a typhoon path wind circle coverage area; Step S3 comprises: S31, obtaining a first wind circle path area A1 through step S2; S32, judging whether there is a next wind circle path area An, n being a positive integer, if yes, then entering step S33, and if no, then entering step S4; S33, calculating the intersection point of the wind circle path area A1 and the wind circle path area An, and judging whether the intersection point is valid; S34, determining the end points of the wind circle path area A1 and the wind circle path area An, and judging whether the end points are valid, enclosing the valid end points and the valid intersection point to form a wind circle coverage area, and jumping to step S32; In step S33, judging whether the intersection point is valid, there are three cases: Line segment and line segment intersect: calculating the intersection point of the two straight lines on which the two line segments are located, if the intersection point is on both line segments, then the intersection point is valid, otherwise, the intersection point is invalid; Line segment and circular arc intersect: calculating the intersection point of the straight line on which the line segment is located and the circle on which the circular arc is located, if there are two intersection points, processing the two intersection points respectively, if the intersection points are on the line segment and the circular arc, then the intersection point is valid, otherwise, the intersection point is invalid, if the straight line on which the line segment is located and the circle on which the circular arc is located have only one intersection point, then the intersection point is invalid; Circular arc and circular arc intersect: calculating the intersection point of the circles on which the two circular arcs are located, if there are two intersection points, processing the two intersection points respectively, if the intersection points are on the two circular arcs, then the intersection point is valid, otherwise, the intersection point is invalid, if the two circular arcs are on the same circle, then using the start point and the end point of one of the circular arcs as the intersection point, judging whether the intersection point is on the other circular arc, if yes, then the intersection point is valid, if no, then the intersection point is invalid.
2. The method of claim 1, wherein: Step S2 comprises: calculating the tangent point of the external tangent line of two adjacent wind circles, taking the two tangent lines between the tangent points and the two circular arcs outside the tangent points to enclose a wind circle path area.
3. The method of claim 2, wherein: If there is no tangent point between two adjacent wind circles, i.e., the wind circle with a smaller radius is inside the wind circle with a larger radius, then directly using the wind circle with a larger radius as a wind circle path area.
4. The method of claim 1, wherein: Step S34 comprises: S341, judging whether each end point of the wind circle path area A1 is inside the wind circle path area An, and whether each end point of the wind circle path area An is inside the wind circle path area A1, if not, then the end point is valid, if yes, then the end point is invalid; S342, traversing each line segment and circular arc of the wind circle path area A1 and the wind circle path area An, sorting the valid end points and the valid intersection points on the line segments and the circular arcs according to the direction from the start point to the end point of the line segments and the circular arcs, and connecting each two of the sorted points to form a new line segment or a new circular arc; S343, traversing all new line segments and circular arcs in the wind circle path area A1 and the wind circle path area An, and connecting them in sequence to form a wind circle coverage area.
5. A system for computing typhoon track wind band coverage area, characterized by: The method for calculating the typhoon track wind circle coverage area according to any one of claims 1-4 comprises: a first unit for obtaining ordered wind circle data, wherein the wind circle data comprises a typhoon center and a maximum radius of the wind circle; a second unit for calculating the external tangent points of two adjacent wind circles, wherein the two tangent points on the adjacent wind circles are connected by a straight line, and the two tangent points on the same wind circle are connected by an arc, thereby forming a wind circle path area; a third unit for merging all adjacent wind circle path areas to obtain a wind circle coverage area; a fourth unit for polygon simulation of the arcs in the wind circle coverage area to obtain a typhoon track wind circle coverage area.
6. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the method for calculating the typhoon track wind circle coverage area according to any one of claims 1-4.
7. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the method for calculating the typhoon track wind circle coverage area according to any one of claims 1-4.
8. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the method for calculating the typhoon track wind circle coverage area according to any one of claims 1-4.
Citation Information
Patent Citations
System and method for pre-warning of typhoon risks of overhead transmission lines of grid
CN103246936A
Method and system for real-time reconstruction of job coverage area based on breakpoint segmentation
CN109118502A
Typhoon historical path similarity rapid retrieval and matching method
CN115269753A
Method and device for acquiring influence range of tropical cyclone
CN118503647A