A typhoon wind circle calculation rendering method, system, device and medium
By using the wind field model and binary search method in the visual rendering of typhoon wind circles, the wind circle radius of each wind speed level of the typhoon center point is solved, and the problems of large calculation, long time and low accuracy in the existing technology are solved, and efficient and accurate wind circle rendering is achieved.
Patent Information
- Application Number
- CN202411514361.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2044-10-28
AI Technical Summary
The prior art has a large amount of calculation, long time and low accuracy in visual rendering of typhoon wind circles.
The wind field model combined with the binary search method is used to calculate the wind circle radius of each wind speed level of the target typhoon center point through finite iterations, and vector rendering is performed based on these radii.
It significantly reduces the complexity of calculation and rendering, improves the accuracy of wind circle vector diagram, and avoids the tedious process of point-by-point calculation in traditional methods.
Smart Images

Figure CN119399351B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of typhoon risk monitoring, and in particular to a typhoon wind circle calculation and rendering method, system, equipment and medium. Background Art
[0002] Tropical cyclones (such as typhoons) are strong and catastrophic marine weather systems with huge hazards. The sea surface pressure field and wind field can directly affect the intensity of storm surges. Strong typhoons can also generate typhoon waves, which seriously threaten people's production and life. Timely and accurate monitoring of typhoon wind circle areas plays a constructive role in natural disaster prevention and control work and is of great significance to protecting people's lives and property.
[0003] At present, related technologies usually use a specific wind field model to calculate the wind speed point by point with a fixed precision grid, and then merge the areas with the same wind speed into wind circle areas for visualization. However, the wind circle rendering method in related technologies has a large amount of calculation, takes a long time and has low accuracy.
[0004] Therefore, a typhoon wind circle calculation and rendering method is urgently needed to solve the above defects. Summary of the invention
[0005] In view of this, the present invention proposes a typhoon wind circle calculation and rendering method, system, computer equipment and computer-readable medium, which solves the problems of large amount of calculation, long time and low precision in the visualization rendering process of typhoon wind circles, greatly reduces the amount of calculation, reduces the rendering time, and improves the precision of wind circle vector diagrams.
[0006] Based on the above purpose, an embodiment of the present invention provides a method for calculating and rendering a typhoon wind circle, which specifically includes the following steps:
[0007] Obtain target wind speed levels and all typhoon center points;
[0008] Taking the first moment of the preset time period as the target moment, and taking the typhoon center point at the target moment as the target typhoon center point;
[0009] Obtaining a target wind circle radius interval and a maximum wind speed corresponding to the target typhoon center point, and performing a binary process on the target wind circle radius interval to calculate the target wind speed level and the target wind circle radius corresponding to the target typhoon center point;
[0010] Based on the target wind circle radius, a wind circle vector diagram is rendered, the previous wind speed level of the target wind speed level is used as the new target wind speed level, and the step of calculating the corresponding target wind circle radius is returned until the boundary wind speed value corresponding to the target wind speed level reaches or exceeds the maximum wind speed;
[0011] Taking the next moment after the target moment as the new target moment, and returning to the step of taking the typhoon center point at the target moment as the target typhoon center point, until the target moment is the end moment;
[0012] A typhoon wind circle view is rendered based on the wind circle vector diagrams of all target wind speed levels corresponding to each of the typhoon center points.
[0013] In some implementations, the step of obtaining the target wind circle radius interval corresponding to the target typhoon center point includes:
[0014] Obtaining a preset wind speed radius and a maximum wind speed radius corresponding to the target typhoon center point;
[0015] The preset wind speed radius is used as the maximum value of the interval, and the maximum wind speed radius is used as the minimum value of the interval;
[0016] The target wind circle radius interval is determined based on the interval minimum value and the interval maximum value.
[0017] In some embodiments, the step of performing binary processing on the target wind circle radius intervals to calculate the target wind speed level and the target wind circle radius corresponding to each target typhoon center point includes:
[0018] Divide the target wind circle radius interval into a first radius interval and a second radius interval based on a binary search method, and use the middle element of the target wind circle radius interval as a first radius value, wherein the first radius interval is constructed according to the interval minimum value and the first radius value, and the second radius interval is constructed according to the first radius value and the interval maximum value;
[0019] Obtaining a first wind speed value according to the target typhoon center point and the first radius value;
[0020] Obtaining a boundary wind speed value corresponding to the target wind speed level, and determining whether a difference between the first wind speed value and the boundary wind speed value meets a target accuracy;
[0021] If the difference meets the target accuracy, the first radius value is used as the target wind circle radius.
[0022] In some implementations, the typhoon wind circle calculation and rendering method further includes:
[0023] If the difference does not meet the target accuracy, determining whether the first wind speed value is greater than the boundary wind speed value;
[0024] If the first wind speed value is greater than the boundary wind speed value, the second radius interval is used as a new target wind circle radius interval, and the step of dividing the target wind circle radius interval into the first radius interval and the second radius interval based on the binary search method is returned.
[0025] In some implementations, the typhoon wind circle calculation and rendering method further includes:
[0026] If the first wind speed value is less than the boundary wind speed value, the first radius interval is used as a new target wind circle radius interval, and the step of dividing the target wind circle radius interval into the first radius interval and the second radius interval based on the binary search method is returned.
[0027] In some implementations, the step of rendering the typhoon wind circle view based on the wind circle vector diagrams of all target wind speed levels corresponding to the typhoon center points includes:
[0028] Calculate the tangent points on the same wind circle vector diagram and connect the tangent points through arcs, calculate the external tangent points of the wind circle vector diagrams of the same wind speed level and adjacent to each other and connect the external tangent points through straight lines;
[0029] All the tangent points and all the external tangent points corresponding to the same wind speed level are connected to form a closed area, and the closed areas corresponding to all wind speed levels are merged to obtain the typhoon wind circle view.
[0030] In some embodiments, the step of obtaining the target wind speed level and all typhoon center points includes:
[0031] The lowest wind speed level among all wind speed levels to be evaluated is taken as the target wind speed level;
[0032] The typhoon longitude and latitude and air pressure corresponding to different times in the preset time period are obtained according to the typhoon data, and all the typhoon center points in the preset time period are determined according to all the typhoon longitude and latitude and all the air pressure.
[0033] Another aspect of the embodiment of the present invention further provides a typhoon wind circle calculation and rendering system, including:
[0034] An acquisition unit configured to acquire a target wind speed level and a typhoon center point;
[0035] A first processing unit is configured to use the first moment of a preset time period as a target moment, and use the typhoon center point at the target moment as a target typhoon center point;
[0036] A binary search unit is configured to obtain a target wind circle radius interval and a maximum wind speed corresponding to the target typhoon center point, and perform binary processing on the target wind circle radius interval to calculate the target wind speed level and the target wind circle radius corresponding to the target typhoon center point;
[0037] A second processing unit is configured to render a wind circle vector diagram based on the target wind circle radius, take the previous wind speed level of the target wind speed level as the new target wind speed level, and return to the step of calculating the corresponding target wind circle radius until the boundary wind speed value corresponding to the target wind speed level reaches or exceeds the maximum wind speed;
[0038] A third processing unit is configured to take the next moment of the target moment as a new target moment, and return to the step of taking the typhoon center point at the target moment as the target typhoon center point, until the target moment is the end moment;
[0039] The rendering unit is configured to render a typhoon wind circle view based on the wind circle vector diagrams of all target wind speed levels corresponding to each of the typhoon center points.
[0040] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores a computer program executable on the processor, and the computer program implements the steps of the above method when executed by the processor.
[0041] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.
[0042] The present invention has at least the following beneficial technical effects: the typhoon wind circle calculation and rendering method of the present invention realizes the efficient calculation of the wind circle radius of the wind speed level through the wind field model combined with the binary search method, and only requires a limited number of iterations to accurately locate the wind circle radius of each wind speed level at the center point of the target typhoon, and then directly performs vector rendering based on these wind circle radii to generate wind circle vector diagrams of each wind speed level, and merges all wind circle vector diagrams to obtain the final high-precision typhoon wind circle visualization result. This process avoids the point-by-point calculation of the wind speed level of each grid unit in the traditional method, and effectively solves the problems of large amount of calculation, long time consumption and insufficient precision in the visualization of typhoon wind circles, significantly reduces the complexity of calculation and rendering, and greatly improves the accuracy of the wind circle vector diagram. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A schematic diagram of an embodiment of a wind circle grid diagram in the related art;
[0045] Figure 2 A block diagram of an embodiment of a typhoon wind circle calculation and rendering method provided by the present invention;
[0046] Figure 3 A schematic diagram of an embodiment of a typhoon wind circle view provided by the present invention;
[0047] Figure 4 A schematic diagram of another embodiment of the typhoon wind circle view provided by the present invention;
[0048] Figure 5 A schematic diagram of an embodiment of a typhoon wind circle calculation and rendering system provided by the present invention;
[0049] Figure 6 A schematic diagram of the structure of an embodiment of a computer device provided by the present invention;
[0050] Figure 7 A schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0051] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0052] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0053] When visualizing the typhoon's impact area (i.e., the typhoon wind circle) based on the typhoon's path and intensity data, the typhoon radius parameter is required, but the calculation process of this parameter is relatively complicated, and the calculation failure is affected by the calculation accuracy. In related technologies, a specific wind field model F (Pc, lng, lat, R) is usually used to calculate the wind speed level point by point with a fixed precision grid, and then the areas with the same wind speed level are merged into the wind circle area for visualization, such as Figure 1As shown in the figure, Pc is the air pressure, lng is the longitude of the typhoon center, lat is the latitude of the typhoon center, and R is the radius of the wind circle. However, the above-mentioned related technologies are greatly affected by the grid accuracy and the area of the wind circle. The calculation amount of a wind circle is at least , where d is the calculation accuracy, such as the grid side length. For example, when the wind circle radius R reaches 100 kilometers and the grid side length d is set to 1 kilometer, the call frequency of the wind field model F must reach at least 30,000 times, which undoubtedly leads to a long calculation time. What is more tricky is that in the process of wind circle merging, due to the limitations of current technology, only complex graphics rendering algorithms such as weighted overlay can be used, which not only increases the complexity of the calculation, but also inevitably leads to a significant decrease in the calculation accuracy. It should be noted that the number and type of parameters required by different wind field models are different. For example, some wind field models do not require longitude parameters. In this case, the wind field model is expressed as F(Pc, lat, R), or some wind field models only consider the wind circle radius parameter. In this case, the wind field model is expressed as F(R).
[0054] Based on the above purpose, the first aspect of the embodiments of the present invention provides an embodiment of a method for calculating and rendering a typhoon wind circle. Figure 2 As shown, it includes the following steps:
[0055] Step S100, obtaining the target wind speed level and all typhoon center points;
[0056] Step S200, taking the first moment of the preset time period as the target moment, and taking the typhoon center point at the target moment as the target typhoon center point;
[0057] Step S300, obtaining the target wind circle radius interval and the maximum wind speed corresponding to the target typhoon center point, and performing binary processing on the target wind circle radius interval to calculate the target wind speed level and the target wind circle radius corresponding to the target typhoon center point;
[0058] Step S400, based on the target wind circle radius, rendering a wind circle vector diagram, taking the previous wind speed level of the target wind speed level as the new target wind speed level, and returning to the step of calculating the corresponding target wind circle radius until the boundary wind speed value corresponding to the target wind speed level reaches or exceeds the maximum wind speed;
[0059] Step S500, taking the next moment of the target moment as the new target moment, and returning to the step of taking the typhoon center point at the target moment as the target typhoon center point, until the target moment is the end moment;
[0060] Step S600, rendering a typhoon wind circle view based on the wind circle vector diagrams of all target wind speed levels corresponding to each typhoon center point.
[0061] In some embodiments, the wind speed level is set according to the preset wind speed accuracy, such as taking 0.1m / s as the preset wind speed accuracy, and the wind speed level is divided according to the interval of every 0.1m / s, that is, the wind speed range is incremented in units of 0.1m / s, and each adjacent interval is defined as an independent level. For example, the wind speed between 0.0 and 0.1m / s is level 0, the wind speed between 0.1 and 0.2m / s is level 1, the wind speed between 0.2 and 0.3m / s is level 2, and so on. The preset wind speed accuracy can be set according to the actual application situation, and is not specifically limited here. The target wind speed level is the lowest value of all wind speed levels to be evaluated. For example, it is necessary to evaluate the wind circle area including wind speed levels of level 9, level 8, level 7, level 6 and level 5, and the target wind speed level is level 5. The demarcation wind speed value is the critical value for distinguishing different wind speed levels. For example, if the wind speed level is divided into units of 0.1m / s, then when the wind speed level is level 0, its boundary wind speed value is 0.1m / s, when the wind speed level is level 1, its boundary wind speed value is 0.2m / s, and so on. According to the typhoon data, data related to the typhoon wind circle can be extracted, such as the longitude, latitude, air intensity, maximum wind speed and time of the typhoon center, and the typhoon center point is determined by these data. As the typhoon continues to move, the typhoon center point is different at different times. Typhoon data is generally obtained through observation. The wind speed distribution in the tropical cyclone area has its particularity. The wind speed at the typhoon center point is very small, which can be 0m / s. At a certain distance from the typhoon center point, the wind speed increases rapidly, reaches the maximum wind speed, and then gradually decreases outward. The preset period is the time period that needs to be evaluated. The end time is the last moment in the preset period.
[0062] In some implementations, typhoon wind circle rendering only requires two parameters: the typhoon center point position and the wind circle radius. In order to reduce the number of iterations of calling the wind field model, after determining the target wind circle radius interval, a binary search method is used to calculate the target wind circle radius corresponding to each wind speed level from the maximum wind speed of the target typhoon center to the lowest wind speed level to be evaluated through a finite number of iterations. After finding it, the wind circle vector rendering is directly performed with the target wind circle radius. At this time, the calculation amount of a wind circle is When merging wind circles of different wind speed levels at each typhoon center point, for wind circles of the same wind speed level, draw outer tangents of adjacent wind circles to form a closed area, and then use a simple filling method to obtain a typhoon wind circle view, such as using color filling to obtain Figure 3 The typhoon wind circle view shown in the figure is filled with grayscale to obtain the following Figure 4 A view of the typhoon's wind circle is shown.
[0063] The typhoon wind circle calculation and rendering method of the present invention realizes the efficient calculation of the wind circle radius of each wind speed level at the typhoon center point through the wind field model combined with the binary search method. The wind circle radius of each typhoon center point can be accurately located with only a limited number of iterations. Subsequently, vector rendering is directly performed based on the wind circle radius to generate a wind circle vector diagram of the wind speed level. The wind circle vector diagrams of all wind speed levels at each typhoon center point are merged to obtain the final high-precision typhoon wind circle visualization result. This process avoids the point-by-point calculation of the wind speed level of each grid unit in the traditional method, effectively solves the problems of large amount of calculation, long time consumption and insufficient precision in the typhoon wind circle visualization, significantly reduces the complexity of calculation and rendering, and greatly improves the accuracy of the wind circle vector diagram.
[0064] In some embodiments, the step of obtaining a target wind circle radius interval corresponding to a target typhoon center point includes: obtaining a preset wind speed radius and a maximum wind speed radius corresponding to the target typhoon center point; taking the preset wind speed radius as the maximum value of the interval, and taking the maximum wind speed radius as the minimum value of the interval; and determining the target wind circle radius interval based on the minimum value and the maximum value of the interval.
[0065] In some embodiments, the preset wind speed radius is a value significantly larger than the expected wind circle radius of the target wind speed level, such as 2000 kilometers, which can be set according to actual applications. The distance from the point corresponding to the maximum wind speed to the center of the typhoon is the maximum wind speed radius. The maximum wind speed radius is taken as the interval minimum value R1, and the preset wind speed radius is taken as the interval maximum value R2 to obtain the wind circle radius interval [R1, R2]. When calculating the wind circle, it is only necessary to calculate the wind speed level distribution within [R1, R2], and compare the calculated wind speed with the boundary wind speed value corresponding to each wind speed level to determine the wind circle radius of each wind speed level. Among them, in the interval [R1, R2], the wind speed gradually weakens with the increase of the wind circle radius. When the wind speed corresponding to the calculated target wind circle radius reaches or exceeds the maximum wind speed, it means that the calculation of the wind speed level distribution within [R1, R2] is completed.
[0066] In some embodiments, the target wind circle radius interval is binary processed to calculate the target wind circle radius corresponding to the target wind speed level and the target typhoon center point, including: dividing the target wind circle radius interval into a first radius interval and a second radius interval based on a binary search method, and taking the middle element of the target wind circle radius interval as the first radius value, wherein the first radius interval is constructed according to the minimum value of the interval and the first radius value, and the second radius interval is constructed according to the first radius value and the maximum value of the interval; obtaining the first wind speed value according to the target typhoon center point and the first radius value; obtaining the boundary wind speed value corresponding to the target wind speed level, and judging whether the difference between the first wind speed value and the boundary wind speed value meets the target accuracy; if the difference meets the target accuracy, taking the first radius value as the target wind circle radius.
[0067] In some embodiments, the typhoon wind circle calculation and rendering method of the present invention also includes: if the difference does not meet the target accuracy, determining whether the first wind speed value is greater than the boundary wind speed value; if the first wind speed value is greater than the boundary wind speed value, using the second radius interval as the new target wind circle radius interval, and returning to the step of dividing the target wind circle radius interval into the first radius interval and the second radius interval based on the binary search method.
[0068] In some embodiments, the typhoon wind circle calculation and rendering method of the present invention also includes: if the first wind speed value is less than the boundary wind speed value, using the first radius interval as the new target wind circle radius interval, and returning to the step of dividing the target wind circle radius interval into the first radius interval and the second radius interval based on the binary search method.
[0069] In some embodiments, the middle element in the wind circle radius interval can be taken as the first radius value according to the preset calculation accuracy d. For example, when the calculation accuracy d is 1 km and the target wind circle radius interval is [10, 20], the first radius value is 15 km. In this case, the first radius interval is [10, 15) and the second radius interval is (15, 20). Or when the calculation accuracy d is 0.1 km and the target wind circle radius interval is [11, 16], the first radius value is 13.5 km. In this case, the first radius interval is [11, 13.5) and the second radius interval is (13.5, 16). . The wind field model is used to calculate the wind speed at the first radius (i.e., the first wind speed value) based on the three variables: the location (latitude and longitude) of the typhoon center, the air pressure, and the first radius value. The first wind speed value is compared with the boundary wind speed value of the target wind speed level. If it is determined that the difference between the first wind speed value and the boundary wind speed value meets the target accuracy, that is, when the target accuracy is set to 0.1m / s, it is determined whether the difference is less than or equal to 0.1m / s to determine whether the first radius value is the target wind circle radius corresponding to the typhoon center and the target wind speed level. For example, assuming that at 20:00 on July 16, the longitude and latitude of the typhoon center are ( , ), the air pressure is 99.6kPa, the target wind circle radius range is [10,20], the first radius value is 15 kilometers, the preset wind level accuracy is 0.2m / s, the target wind speed level is level 12, the boundary wind speed value is 2.4m / s, the target accuracy is 0.1m / s, and it is determined whether the difference between the first wind speed value and the boundary wind speed value is less than or equal to 0.1m / s. If the difference between the first wind speed value and the boundary wind speed value meets the target accuracy, the target wind circle radius corresponding to the typhoon center and the level 12 wind speed level at 20:00 on July 16 is 15 kilometers. If the difference between the first wind speed value and the boundary wind speed value does not meet the target accuracy, and the first wind speed value is less than 2.4m / s, then [10,15) is used as the new target wind circle radius interval, and the middle element in the target wind circle radius interval is taken as the new first radius value according to the preset calculation accuracy. The first wind speed value is calculated again according to the new first radius value, and it is compared with the boundary wind speed value of the 12th wind speed level. The above steps are repeated until the difference between the first wind speed value and the boundary wind speed value meets the target accuracy, and the first radius value at this time is determined to be the target wind circle radius corresponding to the typhoon center point and the 12th wind speed level at 20:00 on July 16. If the difference between the first wind speed value and the boundary wind speed value does not meet the target accuracy, and the first wind speed value is greater than 2.4m / s, then (15,20] is used as a new wind circle radius interval, and the middle element in the target wind circle radius interval is taken as a new first radius value according to the preset calculation accuracy. The first wind speed value is calculated again according to the new first radius value, and it is compared with the boundary wind speed value of the 12th wind speed level. The above steps are repeated until the difference between the first wind speed value and the boundary wind speed value meets the target accuracy, and the first radius value at this time is determined to be the target wind circle radius corresponding to the typhoon center point and the 12th wind speed level at 20:00 on July 16. It should be noted that the above data is only used for illustration and should not be understood as limiting the scheme of the present invention.
[0070] In some embodiments, continuing with the above example, if the boundary wind speed value corresponding to the 12th wind level is less than the maximum wind speed, the 13th wind speed level is used as the new target wind speed level, and the target wind circle radius [10,20] is again binary processed to calculate the target wind circle radius between the 13th wind speed level and the target typhoon center point, until the boundary wind speed value corresponding to the target wind speed level reaches or exceeds the maximum wind speed. The above method can be used to sequentially calculate the wind circle radius corresponding to all wind speed levels from the target wind speed level to the maximum wind speed, and then obtain the wind circle radius of each wind speed level of all typhoon center points at the required time.
[0071] The typhoon wind circle calculation and rendering method of the present invention, through the above-mentioned optimization process, effectively avoids the tedious process of calculating the wind speed level of each grid unit point by point in the related technical methods, thereby greatly reducing the amount of calculation and rendering time.
[0072] In some embodiments, based on the wind circle vector diagrams of all target wind speed levels corresponding to each typhoon center point, the step of rendering the typhoon wind circle view includes: calculating the tangent points on the same wind circle vector diagram and connecting the tangent points through arcs, calculating the circumscribed points of each wind circle vector diagram of the same wind speed level and adjacent to each other and connecting the circumscribed points through straight lines; connecting all tangent points and all circumscribed points corresponding to the same wind speed level to form a closed area, and merging the closed areas corresponding to all wind speed levels to obtain the typhoon wind circle view.
[0073] In some embodiments, after rendering the wind circle vector diagrams of all wind speed levels for each typhoon center point, arcs are used to connect the tangent points on the wind circle vector diagrams of each wind speed level for each typhoon center point, and straight lines are used to connect the tangent points of every two adjacent wind circle vector diagrams of the same wind speed level. The arcs and straight lines of all wind circle vector diagrams of the same wind speed level are connected to form a closed area, and the wind circle area corresponding to the wind speed level within a preset time period can be obtained. The wind circle areas corresponding to all wind speed levels can be merged to obtain the typhoon wind circle view of all wind speed levels to be evaluated within the preset time period, which shows the areas covered by typhoons of each wind speed level within the preset time period.
[0074] The typhoon wind circle calculation and rendering method of the present invention avoids the calculation complexity brought by complex graphics rendering algorithms such as weighted superposition, significantly reduces the complexity of calculation and rendering, improves rendering efficiency, and greatly improves the accuracy of wind circle vector diagrams.
[0075] In some embodiments, the step of obtaining the target wind speed level and all typhoon center points includes: taking the lowest wind speed level among all wind speed levels to be evaluated as the target wind speed level; obtaining the typhoon longitude and latitude and air pressure corresponding to different times within a preset time period according to typhoon data, and determining all typhoon center points within the preset time period according to all typhoon longitudes and latitudes and all air pressures.
[0076] In one example, the preset time period may be from 20:00 on July 16 to 20:00 on July 19, which is set according to actual application conditions and is not specifically limited in this application.
[0077] In some embodiments, the processor takes Apple M1 CPU as an example. When the relevant technology uses Apple M1 CPU to render typhoon wind circles, for the case where there are 50 typhoon path nodes (i.e., 50 typhoon center points) and an average of 12 wind circles are calculated for each typhoon center point, it takes at least 4.2 seconds to render a complete typhoon wind circle at a resolution of 400x400 grid (corresponding to a mapping accuracy d of approximately 5 kilometers). When the resolution is increased to a resolution of 2000x2000 grid (corresponding to a mapping accuracy d of approximately 1 kilometer), it takes at least 104.7 seconds to render a complete typhoon wind circle. Under the same hardware conditions, when the wind speed accuracy (i.e., target accuracy) in the vector diagram is 0.1m / s and the mapping accuracy d is approximately 1 kilometer, the method of the present invention is used to calculate and render a wind circle vector diagram of a standard wind level, and it takes only 5 milliseconds; when drawing a fine wind circle vector diagram with a step of 0.1m / s, it takes 152 milliseconds. It should be noted that the above four calculation times do not include the time used for wind circle merging and wind circle conversion. However, when wind circles are merged, the relevant technology needs to query the wind circle boundary path point by point in the calculated wind speed grid data, while the method of the present invention can directly draw a circle according to the radius of the target wind circle and connect it with a tangent line. Therefore, the method of the present invention is obviously superior to the relevant technology in the efficiency of wind circle merging and rendering, and takes less time.
[0078] The typhoon wind circle calculation and rendering method of the present invention effectively solves the problems of large amount of calculation, long time consumption and insufficient precision in typhoon wind circle visualization, significantly reduces the complexity of calculation and rendering, and greatly improves the accuracy of wind circle vector diagrams.
[0079] Based on the same inventive concept, according to another aspect of the present invention, Figure 5 As shown, an embodiment of the present invention further provides a typhoon wind circle calculation and rendering system, comprising:
[0080] An acquisition unit 110 is configured to acquire a target wind speed level and all typhoon center points;
[0081] The first processing unit 120 is configured to use the first moment of the preset time period as the target moment, and the typhoon center point at the target moment as the target typhoon center point;
[0082] A binary search unit 130 is configured to obtain a target wind circle radius interval and a maximum wind speed corresponding to a target typhoon center point, and perform binary processing on the target wind circle radius interval to calculate a target wind speed level and a target wind circle radius corresponding to a target typhoon center point;
[0083] The second processing unit 140 is configured to render a wind circle vector diagram based on the target wind circle radius, take the previous wind speed level of the target wind speed level as the new target wind speed level, and return to the step of calculating the corresponding target wind circle radius until the boundary wind speed value corresponding to the target wind speed level reaches or exceeds the maximum wind speed;
[0084] The third processing unit 150 is configured to use the next moment of the target moment as the new target moment, and return to the step of using the typhoon center point at the target moment as the target typhoon center point, until the target moment is the end moment;
[0085] The rendering unit 160 is configured to render a typhoon wind circle view based on the wind circle vector diagrams of all target wind speed levels corresponding to each typhoon center point.
[0086] The typhoon wind circle calculation and rendering system of the present invention realizes efficient calculation of the wind circle radius of wind speed levels through the wind field model combined with the binary search method. It only needs a limited number of iterations to accurately locate the wind circle radius of each wind speed level at the target typhoon center point, and then directly performs vector rendering based on these wind circle radii to generate wind circle vector diagrams of each wind speed level. All wind circle vector diagrams are merged to obtain the final high-precision typhoon wind circle visualization result. This process avoids the point-by-point calculation of the wind speed level of each grid unit in the traditional method, effectively solves the problems of large amount of calculation, long time consumption and insufficient precision in typhoon wind circle visualization, significantly reduces the complexity of calculation and rendering, and greatly improves the accuracy of the wind circle vector diagram.
[0087] Based on the same inventive concept, according to another aspect of the present invention, Figure 6 As shown, an embodiment of the present invention further provides a computer device 30, which includes a processor 310 and a memory 320. The memory 320 stores a computer program 321 that can be run on the processor. When the processor 310 executes the program, the steps of the above method are performed.
[0088] Based on the same inventive concept, according to another aspect of the present invention, Figure 7 As shown, an embodiment of the present invention further provides a computer-readable storage medium 40, which stores a computer program 410 for executing the above method when executed by a processor.
[0089] Finally, it should be noted that a person of ordinary skill 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. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned any method embodiments.
[0090] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0091] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0092] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0093] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A typhoon wind circle calculation and rendering method, characterized in that: include: Obtain target wind speed levels and all typhoon center points; Taking the first moment of the preset time period as the target moment, and taking the typhoon center point at the target moment as the target typhoon center point; Obtaining a target wind circle radius interval and a maximum wind speed corresponding to the target typhoon center point, and performing a binary process on the target wind circle radius interval to calculate the target wind speed level and the target wind circle radius corresponding to the target typhoon center point; Based on the target wind circle radius, a wind circle vector diagram is rendered, the previous wind speed level of the target wind speed level is used as the new target wind speed level, and the step of calculating the corresponding target wind circle radius is returned until the boundary wind speed value corresponding to the target wind speed level reaches or exceeds the maximum wind speed; Taking the next moment after the target moment as the new target moment, and returning to the step of taking the typhoon center point at the target moment as the target typhoon center point, until the target moment is the end moment; Rendering a typhoon wind circle view based on wind circle vector diagrams of all target wind speed levels corresponding to each of the typhoon center points; Binary processing is performed on the target wind circle radius interval to calculate the target wind speed level and the target wind circle radius corresponding to the target typhoon center point, including: Divide the target wind circle radius interval into a first radius interval and a second radius interval based on a binary search method, and use the middle element of the target wind circle radius interval as the first radius value; Obtaining a first wind speed value according to the target typhoon center point and the first radius value; Obtaining a boundary wind speed value corresponding to the target wind speed level, and determining whether a difference between the first wind speed value and the boundary wind speed value meets a target accuracy; If the difference meets the target accuracy, the first radius value is used as the target wind circle radius.
2. The typhoon wind circle calculation and rendering method according to claim 1, characterized in that: The step of obtaining the target wind circle radius interval corresponding to the target typhoon center point includes: Obtaining a preset wind speed radius and a maximum wind speed radius corresponding to the target typhoon center point; The preset wind speed radius is used as the maximum value of the interval, and the maximum wind speed radius is used as the minimum value of the interval; The target wind circle radius interval is determined based on the interval minimum value and the interval maximum value.
3. The typhoon wind circle calculation and rendering method according to claim 2, characterized in that: Also includes: If the difference does not meet the target accuracy, determining whether the first wind speed value is greater than the boundary wind speed value; If the first wind speed value is greater than the boundary wind speed value, the second radius interval is used as a new target wind circle radius interval, and the step of dividing the target wind circle radius interval into the first radius interval and the second radius interval based on the binary search method is returned; The second radius interval is constructed according to the first radius value and the interval maximum value.
4. The typhoon wind circle calculation and rendering method according to claim 3 is characterized in that: Also includes: If the first wind speed value is less than the boundary wind speed value, the first radius interval is used as a new target wind circle radius interval, and the step of dividing the target wind circle radius interval into the first radius interval and the second radius interval based on the binary search method is returned; The first radius interval is constructed according to the interval minimum value and the first radius value.
5. The typhoon wind circle calculation and rendering method according to claim 1, characterized in that: The step of rendering the typhoon wind circle view based on the wind circle vector diagrams of all target wind speed levels corresponding to the typhoon center points respectively comprises: Calculate the tangent points on the same wind circle vector diagram and connect the tangent points through arcs, calculate the external tangent points of the wind circle vector diagrams of the same wind speed level and adjacent to each other and connect the external tangent points through straight lines; All the tangent points and all the external tangent points corresponding to the same wind speed level are connected to form a closed area, and the closed areas corresponding to all wind speed levels are merged to obtain the typhoon wind circle view.
6. The typhoon wind circle calculation and rendering method according to claim 1, characterized in that: The step of obtaining the target wind speed level and all typhoon center points includes: The lowest wind speed level among all wind speed levels to be evaluated is taken as the target wind speed level; The typhoon longitude and latitude and air pressure corresponding to different times in the preset time period are obtained according to the typhoon data, and all the typhoon center points in the preset time period are determined according to all the typhoon longitude and latitude and all the air pressure.
7. A typhoon wind circle calculation and rendering system, characterized in that: include: An acquisition unit configured to acquire a target wind speed level and all typhoon center points; A first processing unit is configured to use the first moment of a preset time period as a target moment, and use the typhoon center point at the target moment as a target typhoon center point; A binary search unit is configured to obtain a target wind circle radius interval and a maximum wind speed corresponding to the target typhoon center point, and perform binary processing on the target wind circle radius interval to calculate the target wind speed level and the target wind circle radius corresponding to the target typhoon center point; A second processing unit is configured to render a wind circle vector diagram based on the target wind circle radius, take the previous wind speed level of the target wind speed level as the new target wind speed level, and return to the step of calculating the corresponding target wind circle radius until the boundary wind speed value corresponding to the target wind speed level reaches or exceeds the maximum wind speed; A third processing unit is configured to take the next moment of the target moment as a new target moment, and return to the step of taking the typhoon center point at the target moment as the target typhoon center point, until the target moment is the end moment; A rendering unit configured to render a typhoon wind circle view based on wind circle vector diagrams of all target wind speed levels corresponding to each of the typhoon center points; The binary search unit is further configured to: divide the target wind circle radius interval into a first radius interval and a second radius interval based on a binary search method, and use the middle element of the target wind circle radius interval as a first radius value; obtain a first wind speed value according to the target typhoon center point and the first radius value; obtain a boundary wind speed value corresponding to the target wind speed level, and determine whether the difference between the first wind speed value and the boundary wind speed value meets the target accuracy; If the difference meets the target accuracy, the first radius value is used as the target wind circle radius.
8. A computer device comprising: at least one processor; as well as A memory storing a computer program executable on the processor, wherein the processor executes the steps of the method according to any one of claims 1 to 6 when executing the program.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are performed.
Citation Information
Patent Citations
Typhoon wind field three-dimensional visualization method and device
CN116563437A
Method for caculating radius of typhoon influence
KR101230012B1