A projection calculation method and system for wave rose diagram to geographic map
By calculating the circle radius and dynamic circle radius at each frequency level, the projection of the wave rose diagram onto the geographical map is realized, which solves the problem of the separation of the traditional wave rose diagram from the geographical map coordinate system, generates a clear projection file, and solves the problem of scale switching and Post a question.
Patent Information
- Application Number
- CN202210625097.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-06-02
AI Technical Summary
The traditional sea wave rose diagram is separated from the coordinate system of the geographical map, resulting in changes in the position of the graphics when the scale is switched, and there are obstacles to drawing and publishing.
Provides a projection calculation method from the wave rose diagram to the geographical map. By calculating the radius of each frequency level circle and the dynamic circle radius, the coordinates of the rose diagram frequency circle and the wave frequency line are obtained to realize the projection of the wave rose diagram and generate Rose diagram frequency circle layer line files, wave frequency line files and label point files.
It solves the problem of map scale switching and publishing, realizes clear projection and simple calculation of wave rose diagram, and the generated files are easy to apply and manage.
Smart Images

Figure CN115063288B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of projection calculation technology, and more particularly to a projection calculation method and system from a wave rose diagram to a geographic map. Background Art
[0002] Traditional atlases can fully display the distribution of elements. The wave rose chart based on longitude and latitude area statistics shows the frequency distribution of waves in all directions and levels, and is an important type of atlas.
[0003] In the traditional production process, this type of wave rose diagram is made by manual overlay, which is time-consuming and laborious. Although the thematic map drawing performed by some GIS software can realize the automatic drawing of the wave rose diagram, its wave rose diagram is separated from the geographic map coordinate system. When the map scale is switched, the position of the graphic will change, and there are many obstacles in the operation and publication of the graphics.
[0004] Therefore, how to provide a projection calculation method and system for a wave rose diagram to a geographic map is a problem that those skilled in the art need to solve urgently. Summary of the invention
[0005] In view of this, the present invention provides a projection calculation method and system of a wave rose diagram to a geographic map, which projects the wave rose diagrams of all directions and levels based on longitude and latitude area statistics onto a geographic map to solve the problems of map scale switching and map post-release. The present invention can be used as a reference method for big data dimensionality reduction visualization.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] A method for calculating the projection of a wave rose diagram onto a geographic map, characterized in that it comprises the following steps:
[0008] S1. Input calculation parameters;
[0009] S2. Set basic information;
[0010] S3. Calculate the size r(i) of the radius of each frequency level circle according to the calculation parameters and the basic information, and obtain the x and y coordinate values of the rose diagram frequency circle according to the size r(i) of the radius of each frequency level circle;
[0011] S4. Obtain the projection length of the dynamic circle radius and the level frequency on the map according to the calculation parameters and the basic information, and obtain the starting point coordinates and the end point coordinates of the wave frequency lines of each direction and level according to the projection length of the dynamic circle radius and the level frequency on the map;
[0012] S5. Calculate the radius rr of the marked circle layer according to the calculation parameters and the basic information, and obtain the x and y coordinates of the wave direction azimuth according to the radius rr of the marked circle layer;
[0013] S6. Calculate the radius of the marked circle according to the size r(i) of the radius of each frequency level circle described in S3, and obtain the frequency level marked position according to the radius of the marked circle;
[0014] S7. classify and sort the calculation results of the calculation module and output the results: respectively connect the circle lines of the x and y coordinate values of the rose diagram frequency circle, and output the rose diagram frequency circle line file; respectively connect the starting point and the end point of the wave frequency line of each direction and each level to form a plurality of line segments, and output the wave frequency line files of each item and each level; also used to output the wave direction azimuth marking point file according to the calculated x and y coordinates of the wave direction azimuth marking; output the wave frequency level marking point files of each level according to the calculated frequency level marking position.
[0015] Preferably, the calculation method of the x and y coordinate values of the rose diagram frequency circle layer in S3 is:
[0016] x=r(i)*cos(theta(j))+xc;
[0017] y=r(i)*sin(theta(j))+yc;
[0018] Among them, r(i) is the radius of each frequency level circle, xc and yc are the central longitude and latitude of the longitude and latitude square area respectively, the average angle array theta ranges from 0 degrees to 360 degrees, nq is the number of frequency circle levels, nt is the number of theta arrays, i=1,2…nq; j=1,2…nt.
[0019] Preferably, the size r(i) of the radius of each frequency level circle in S3 is:
[0020] r(i)=gz / maxfeq*feqlevel(i);
[0021] Wherein, gz is the maximum circle radius, maxfeq is the maximum frequency level, nq is the number of frequency circle levels, feqlevel(i) is the frequency circle level, xc and yc are the center longitude and latitude of the longitude and latitude square area, respectively, i=1,2…nq;
[0022] Among them, calculate the maximum circle radius:
[0023] gz=gridsize*0.5*rscale;
[0024] gridsize is the square size, rscale is the frequency maximum circle radius ratio;
[0025] The radius of the innermost circle used to mark the number of stations:
[0026] mr=feqlevel(1)*0.5;
[0027] Calculate the maximum value of the frequency level:
[0028] maxfeq=max(feqlevel).
[0029] Preferably, the calculation method of the starting point coordinates and the end point coordinates of the wave frequency lines of each direction and each level in S4 is:
[0030] Calculate the wave frequency line of the jth level in the ith direction in a loop:
[0031] x1=stmr*cos(mDir)+xc;
[0032] y1=stmr*sin(mDir)+yc;
[0033] x2=(gz / maxfeq*fq+stmr)*cos(mDir)+xc;
[0034] y2=(gz / maxfeq*fq+stmr)*sin(mDir)+yc;
[0035] Among them, mDir is a direction of the direction array; stmr is the dynamic circle radius used to accumulate the frequency values of each level in the i-th direction; L is the projection length of the j-th level frequency in the i-th direction on the map; xc and yc are the central longitude and latitude of the longitude and latitude area respectively; then the starting point of the j-th level wave frequency line in the i-th direction is (x1, y1), and the end point is (x2, y2).
[0036] Preferably, the projection length L of the j-th level frequency in the ith direction on the map is:
[0037] L = gz / maxfeq*fq+stmr,
[0038] Among them, gz is the maximum circle radius, maxfeq is the maximum frequency level; fq is the statistical data of waves at all levels in all directions, and data is the data of the jth level in the i-th direction;
[0039] One direction of the direction array mDir=dataDir(i),
[0040] Among them, dataDir is the direction corresponding to the wave statistical data, and ndir is its number, i=1,2,…ndir;
[0041] stmr=stmr+gz / maxfeq*fq,
[0042] Among them, stmr is the dynamic circle radius, which is used to accumulate the frequency values of each level in the i-th direction. The initial value of stmr is the innermost circle radius mr;
[0043] fq=mdata(j),
[0044] Among them, mdata is the statistical data of waves at all levels and directions, data takes the data in the i-th direction, and its dimension is nq, j = 1, 2...nq.
[0045] Preferably, the calculation method of the x and y coordinates of the wave direction azimuth in S5 is:
[0046] x=rr*cos(dataDir(i))+xc;
[0047] y=rr*sin(dataDir(i))+yc;
[0048] Among them, the attribute value of the marked point (x, y) is set to dataField(i), rr is the radius of the marked circle, dataDir is the direction corresponding to the wave statistical data, ndir is its number, xc and yc are the central longitude and latitude of the longitude and latitude square area respectively, i=1, 2...ndir.
[0049] Preferably, the radius rr of the marked circle layer described in S5 is:
[0050] rr=gz / maxfeq*(feqlevel(end)*(1+labscale));
[0051] Among them, labscale is the size ratio of the direction label circle.
[0052] Preferably, the method for calculating the frequency level marked position (x, y) in S6 is:
[0053] x=mnr(i)*cos(ag)+xc;
[0054] y=mnr(i)*sin(ag)+yc;
[0055] Among them, mnr is the radius of the marked circle, ag is the marked direction, nq is the number of frequency circle levels, i = 1, 2, ... nq;
[0056] The attribute value of this annotation is set to feqlevel(i). When i=1, the attribute value is set to the station number stanum.
[0057] Preferably, the radius of the marked circle layer in S6 is the mean value between the radius of each frequency circle layer and the radius of the previous circle layer calculated cyclically:
[0058] The innermost circle is 0 and the mean of the innermost circle radius is mnr(1)=r(1) / 2;
[0059] Then, mnr(i)=(r(i)+r(i-1)) / 2;
[0060] Wherein, r(i) is the radius of each frequency level circle, i=2,3…nq.
[0061] A projection calculation system for a sea wave rose diagram to a geographic map, characterized in that it comprises: a parameter input module, an information setting module, a rose diagram frequency circle calculation module, a sea wave frequency line calculation module for each direction and level, a wave direction and azimuth marking calculation module, a frequency level marking calculation module and an output module;
[0062] The parameter input module is used to input calculation parameters;
[0063] The information setting module is used to set basic information;
[0064] The rose diagram frequency circle calculation module is used to calculate the size r(i) of the circle radius of each frequency level according to the calculation parameters and the basic information, and obtain the x and y coordinate values of the rose diagram frequency circle according to the size r(i) of the circle radius of each frequency level;
[0065] The ocean wave frequency line calculation module for each direction and each level is used to obtain the projection length of the dynamic circle radius and the level frequency on the map according to the calculation parameters and the basic information, and obtain the starting point coordinates and the end point coordinates of the ocean wave frequency line for each direction and each level according to the projection length of the dynamic circle radius and the level frequency on the map;
[0066] The wave direction and azimuth marking calculation module is used to calculate the radius rr of the marking circle layer according to the calculation parameters and the basic information, and obtain the x and y coordinates of the wave direction and azimuth marking according to the radius rr of the marking circle layer;
[0067] The frequency level annotation calculation module is used to calculate the radius of the annotation circle according to the size r(i) of the radius of each frequency level circle, and obtain the frequency level annotation position according to the radius of the annotation circle;
[0068] The output module is used to respectively connect the circle lines of the x and y coordinate values of the rose diagram frequency circle layer, and output the rose diagram frequency circle line file; respectively connect the starting point and the end point of the wave frequency line of each direction and each level to form a plurality of line segments, and output the wave frequency line files of each item and each level; and is also used to output the wave direction azimuth marking point file according to the calculated x and y coordinates of the wave direction azimuth marking; and output the wave frequency level marking point files of each level according to the calculated frequency level marking position.
[0069] It can be known from the above technical scheme that, compared with the prior art, the present invention discloses a projection calculation method and system for a wave rose diagram to a geographic map, which projects wave rose diagrams of all directions and levels based on longitude and latitude area statistics to a geographic map, solves the problems existing in map scale switching and map post-release problems, has clear steps, simple calculations, and is easy to implement; the results are clear, including four files, namely, rose diagram frequency circle line files, wave frequency line files of all directions and levels, wave direction azimuth marking point files, and wave frequency level marking point files of all levels, which are easy to apply, store and manage the results. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] 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 described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0071] Figure 1 The accompanying drawing is a flow chart of a projection calculation method of a wave rose diagram to a geographical map provided by the present invention;
[0072] Figure 2 The accompanying drawing is a projection effect diagram of the wave rose diagram provided by the present invention onto a geographical map;
[0073] Figure 3 The accompanying drawing is a projection result effect diagram of a wave rose diagram obtained by using wave statistical data onto a geographical map provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0075] The embodiment of the present invention discloses a projection calculation method of a wave rose diagram to a geographical map, such as Figure 1 , characterized in that it comprises the following steps:
[0076] S1. Input calculation parameters;
[0077] S2. Set basic information;
[0078] S3. Calculate the radius of each frequency level circle r(i) according to the calculation parameters and basic information, and obtain the x and y coordinate values of the rose diagram frequency circle according to the radius of each frequency level circle r(i);
[0079] S4. Obtain the projection length of the dynamic circle radius and level frequency on the map according to the calculation parameters and basic information, and obtain the starting point coordinates and end point coordinates of the wave frequency lines of all levels in all directions according to the projection length of the dynamic circle radius and level frequency on the map;
[0080] S5. Calculate the radius rr of the marked circle according to the calculation parameters and basic information, and obtain the x and y coordinates of the wave direction azimuth according to the radius rr of the marked circle;
[0081] S6. Calculate the radius of the marked circle according to the size r(i) of the radius of each frequency level circle in S3, and obtain the frequency level marked position according to the radius of the marked circle;
[0082] S7. classifies and organizes the calculation results of the calculation module and outputs the results: respectively connects the circle lines of the x and y coordinate values of the rose diagram frequency circle, and outputs the rose diagram frequency circle line file; respectively connects the starting point and the end point of the wave frequency line of each direction and level to form a plurality of line segments, and outputs the wave frequency line files of each item and level; also used to output the wave direction and azimuth marking point file according to the x and y coordinates marked by the calculated wave direction and azimuth; outputs the wave frequency level marking point files of each level according to the calculated frequency level marking position.
[0083] In order to further implement the above technical solution, the calculation method of the x and y coordinate values of the frequency circle layer of the rose diagram in S3 is:
[0084] x=r(i)*cos(theta(j))+xc;
[0085] y=r(i)*sin(theta(j))+yc;
[0086] Among them, r(i) is the radius of each frequency level circle, xc and yc are the central longitude and latitude of the longitude and latitude square area respectively, the average angle array theta ranges from 0 degrees to 360 degrees, nq is the number of frequency circle levels, nt is the number of theta arrays, i=1,2…nq; j=1,2…nt.
[0087] In order to further implement the above technical solution, the size of the circle radius r(i) of each frequency level in S3 is:
[0088] r(i)=gz / maxfeq*feqlevel(i);
[0089] Wherein, gz is the maximum circle radius, maxfeq is the maximum frequency level, nq is the number of frequency circle levels, feqlevel(i) is the frequency circle level, xc and yc are the center longitude and latitude of the longitude and latitude square area, respectively, i=1,2…nq;
[0090] Among them, calculate the maximum circle radius:
[0091] gz=gridsize*0.5*rscale;
[0092] gridsize is the square size, rscale is the frequency maximum circle radius ratio;
[0093] The radius of the innermost circle used to mark the number of stations:
[0094] mr=feqlevel(1)*0.5;
[0095] Calculate the maximum value of the frequency level:
[0096] maxfeq=max(feqlevel).
[0097] In order to further implement the above technical solution, the calculation method of the starting point coordinates and the end point coordinates of the wave frequency lines of each direction and each level in S4 is:
[0098] Calculate the wave frequency line of the jth level in the ith direction in a loop:
[0099] x1=stmr*cos(mDir)+xc;
[0100] y1=stmr*sin(mDir)+yc;
[0101] x2=L*cos(mDir)+xc;
[0102] y2=L*sin(mDir)+yc;
[0103] Among them, mDir is a direction of the direction array; stmr is the dynamic circle radius used to accumulate the frequency values of each level in the i-th direction; L is the projection length of the j-th level frequency in the i-th direction on the map; xc and yc are the central longitude and latitude of the longitude and latitude area respectively; then the starting point of the j-th level wave frequency line in the i-th direction is (x1, y1), and the end point is (x2, y2).
[0104] In order to further implement the above technical solution, the projection length L of the j-th level frequency in the i-th direction on the map is:
[0105] L = gz / maxfeq*fq+stmr,
[0106] Among them, gz is the maximum circle radius, maxfeq is the maximum frequency level; fq is the statistical data of waves at all levels in all directions, and data is the data of the jth level in the i-th direction;
[0107] One direction of the direction array mDir=dataDir(i),
[0108] Among them, dataDir is the direction corresponding to the wave statistical data, and ndir is its number, i=1,2,…ndir;
[0109] stmr=stmr+gz / maxfeq*fq,
[0110] Among them, stmr is the dynamic circle radius, which is used to accumulate the frequency values of each level in the i-th direction. The initial value of stmr is the innermost circle radius mr;
[0111] fq=mdata(j),
[0112] Among them, mdata is the statistical data of waves at all levels and directions, data takes the data in the i-th direction, and its dimension is nq, j = 1, 2...nq.
[0113] In order to further implement the above technical solution, the calculation method of the x and y coordinates of the wave direction direction mark in S5 is:
[0114] x=rr*cos(dataDir(i))+xc;
[0115] y=rr*sin(dataDir(i))+yc;
[0116] Among them, the attribute value of the marked point (x, y) is set to dataField(i), rr is the radius of the marked circle, dataDir is the direction corresponding to the wave statistical data, ndir is its number, xc and yc are the central longitude and latitude of the longitude and latitude square area respectively, i=1, 2...ndir.
[0117] In order to further implement the above technical solution, the radius rr of the circle marked in S5 is:
[0118] rr=gz / maxfeq*(feqlevel(end)*(1+labscale));
[0119] Among them, labscale is the size ratio of the direction label circle.
[0120] In order to further implement the above technical solution, the calculation method of the frequency level mark position (x, y) in S6 is:
[0121] x=mnr(i)*cos(ag)+xc;
[0122] y=mnr(i)*sin(ag)+yc;
[0123] Among them, mnr is the radius of the marked circle, ag is the marked direction, nq is the number of frequency circle levels, i = 1, 2, ... nq;
[0124] The attribute value of this annotation is set to feqlevel(i). When i=1, the attribute value is set to the station number stanum.
[0125] In order to further implement the above technical solution, the radius of the circle marked in S6 is the average value between the radius of each frequency circle and the radius of the previous circle calculated cyclically:
[0126] The innermost circle is 0 and the mean of the innermost circle radius is mnr(1)=r(1) / 2;
[0127] Then, mnr(i)=(r(i)+r(i-1)) / 2;
[0128] Among them, r(i) is the radius of the circle at each frequency level, i=2,3…nq.
[0129] In one embodiment, rscale=0.85, labscale=0.1, and ag=90° are set.
[0130] In one embodiment, the basic information is a relatively reasonable and beautiful relative position parameter obtained through multiple calculations.
[0131] In one embodiment, graphics are drawn and rendered using GIS software based on the rose diagram frequency circle line file, various wave frequency line files, wave direction and orientation mark point files, and various wave frequency level mark point files, such as Figure 2 , where: the letters in the figure are sixteen direction identifiers, namely N-north, E-east, S-south, W-west, the number 50 is the number of data stations in this area, 10, 20, 30, 40 are the probability of occurrence, the corresponding coils are marked, the line segments radiating from the center to the outside represent the frequency of wind in this direction, and different colors represent different levels of wind.
[0132] A projection calculation system for a sea wave rose diagram to a geographic map, characterized in that it comprises: a parameter input module, an information setting module, a rose diagram frequency circle calculation module, a sea wave frequency line calculation module for each direction and level, a wave direction and azimuth marking calculation module, a frequency level marking calculation module and an output module;
[0133] Parameter input module, used to input calculation parameters;
[0134] Information setting module, used to set basic information;
[0135] The rose diagram frequency circle calculation module is used to calculate the size r(i) of the circle radius of each frequency level according to the calculation parameters and basic information, and obtain the x and y coordinate values of the rose diagram frequency circle according to the size r(i) of the circle radius of each frequency level;
[0136] The wave frequency line calculation module for each direction and each level is used to obtain the projection length of the dynamic circle radius and the level frequency on the map according to the calculation parameters and basic information, and obtain the starting point coordinates and the end point coordinates of the wave frequency line for each direction and each level according to the projection length of the dynamic circle radius and the level frequency on the map;
[0137] The wave direction and azimuth marking calculation module is used to calculate the radius rr of the marking circle layer according to the calculation parameters and basic information, and obtain the x and y coordinates of the wave direction and azimuth marking according to the radius rr of the marking circle layer;
[0138] The frequency level marking calculation module is used to calculate the radius of the marking circle according to the size r(i) of the radius of each frequency level circle, and obtain the frequency level marking position according to the radius of the marking circle;
[0139] The output module is used to respectively connect the circle lines of the x and y coordinate values of the rose diagram frequency circle layer, and output the rose diagram frequency circle line file; respectively connect the starting point and the end point of the wave frequency line of each direction and level to form a plurality of line segments, and output the wave frequency line files of each item and level; and is also used to output the wave direction and azimuth marking point file according to the calculated x and y coordinates of the wave direction and azimuth marking; and output the wave frequency level marking point files of each level according to the calculated frequency level marking position.
[0140] In one embodiment, the collected ocean wave statistical data is shown in the following table. By inputting calculation parameters and setting basic information, the x and y coordinate values of the rose diagram frequency circle layer, the starting point coordinates and the end point coordinates of the wave frequency lines at all levels in all directions, the x and y coordinates of the wave direction azimuth and the frequency level marking position are calculated respectively. After processing, the rose diagram frequency circle layer line file, the wave frequency line files at all levels in all items, the wave direction azimuth marking point files and the wave frequency level marking point files at all levels are output. Finally, according to the above line files and point files, the output is as follows: Figure 3 The graphic shown is the effect of projecting the wave rose diagram onto a geographic map.
[0141] Wave statistics table:
[0142]
[0143]
[0144]
[0145] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0146] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A projection calculation method for a wave rose diagram to a geographic map, characterized in that: The following steps are involved: S1. Input calculation parameters; S2. Set basic information; S3. Calculate the size r(i) of the radius of each frequency level circle according to the calculation parameters and the basic information, and obtain the x and y coordinate values of the rose diagram frequency circle according to the size r(i) of the radius of each frequency level circle; S4. Obtain the projection length of the dynamic circle radius and the level frequency on the map according to the calculation parameters and the basic information, and obtain the starting point coordinates and the end point coordinates of the wave frequency lines of each direction and level according to the projection length of the dynamic circle radius and the level frequency on the map; S5. Calculate the radius rr of the marked circle layer according to the calculation parameters and the basic information, and obtain the x and y coordinates of the wave direction azimuth according to the radius rr of the marked circle layer; S6. Calculate the radius of the marked circle according to the size r(i) of the radius of each frequency level circle described in S3, and obtain the frequency level marked position according to the radius of the marked circle; S7. classify and sort the calculation results of the calculation module and output the results: respectively connect the circle lines of the x and y coordinate values of the rose diagram frequency circle, and output the rose diagram frequency circle line file; respectively connect the starting point and the end point of the wave frequency line of each direction and each level to form a plurality of line segments, and output the wave frequency line files of each item and each level; also used to output the wave direction azimuth marking point file according to the calculated x and y coordinates of the wave direction azimuth marking; output the wave frequency level marking point files of each level according to the calculated frequency level marking position.
2. A method for calculating the projection of a wave rose diagram to a geographic map according to claim 1, characterized in that: The calculation method of the x and y coordinate values of the frequency circle layer of the rose diagram in S3 is: x=r(i)*cos(theta(j))+xc; y=r(i)*sin(theta(j))+yc; Among them, r(i) is the radius of each frequency level circle, xc and yc are the central longitude and latitude of the longitude and latitude square area respectively, the average angle array theta ranges from 0 degrees to 360 degrees, nq is the number of frequency circle levels, nt is the number of theta arrays, i=1,2…nq; j=1,2…nt.
3. A method for calculating the projection of a wave rose diagram to a geographic map according to claim 1, characterized in that: The size r(i) of the circle radius of each frequency level described in S3: r(i)=gz / maxfeq*feqlevel(i); Wherein, gz is the maximum circle radius, maxfeq is the maximum frequency level, nq is the number of frequency circle levels, feqlevel(i) is the frequency circle level, xc and yc are the center longitude and latitude of the longitude and latitude square area, respectively, i=1,2…nq; Among them, calculate the maximum circle radius: gz=gridsize*0.5*rscale; gridsize is the square size, rscale is the frequency maximum circle radius ratio; The radius of the innermost circle used to mark the number of stations: mr=feqlevel(1)*0.5; Calculate the maximum value of the frequency level: maxfeq=max(feqlevel).
4. The projection calculation method of a wave rose diagram to a geographic map according to claim 1, characterized in that: The calculation method of the starting point coordinates and the end point coordinates of the wave frequency lines of each direction and each level in S4 is: Calculate the wave frequency line of the jth level in the ith direction in a loop: x1=stmr*cos(mDir)+xc; y1=stmr*sin(mDir)+yc; x2=L*cos(mDir)+xc; y2=L*sin(mDir)+yc; Among them, mDir is a direction of the direction array; stmr is the dynamic circle radius used to accumulate the frequency values of each level in the i-th direction; L is the projection length of the j-th level frequency in the i-th direction on the map; xc and yc are the central longitude and latitude of the longitude and latitude area respectively; then the starting point of the j-th level wave frequency line in the i-th direction is (x1, y1), and the end point is (x2, y2).
5. A method for calculating the projection of a wave rose diagram to a geographic map according to claim 3, characterized in that: The projection length L of the j-th level frequency in the ith direction on the map is: L = gz / maxfeq*fq+stmr, Among them, gz is the maximum circle radius, maxfeq is the maximum frequency level; fq is the statistical data of waves at all levels in all directions, and data is the data of the jth level in the i-th direction; One direction of the direction array mDir=dataDir(i), Among them, dataDir is the direction corresponding to the wave statistical data, and ndir is its number, i=1,2,…ndir; stmr=stmr+gz / maxfeq*fq, Among them, stmr is the dynamic circle radius, which is used to accumulate the frequency values of each level in the i-th direction. The initial value of stmr is the innermost circle radius mr; fq=mdata(j), Among them, mdata is the statistical data of waves at all levels and directions, data takes the data in the i-th direction, and its dimension is nq, j = 1, 2...nq.
6. The projection calculation method of a wave rose diagram to a geographic map according to claim 1, characterized in that: The x and y coordinates of the wave direction markings described in S5 are calculated as follows: x=rr*cos(dataDir(i))+xc; y=rr*sin(dataDir(i))+yc; Among them, the attribute value of the marked point (x, y) is set to dataField(i), rr is the radius of the marked circle, dataDir is the direction corresponding to the wave statistical data, ndir is its number, xc and yc are the central longitude and latitude of the longitude and latitude square area respectively, i=1, 2...ndir.
7. The projection calculation method of a wave rose diagram to a geographic map according to claim 3, characterized in that: The radius rr of the marked circle described in S5 is: rr=gz / maxfeq*(feqlevel(end)*(1+labscale)); Among them, labscale is the size ratio of the direction label circle.
8. The projection calculation method of a wave rose diagram to a geographic map according to claim 1, characterized in that: The calculation method of the frequency level label position (x, y) in S6 is: x=mnr(i)*cos(ag)+xc; y=mnr(i)*sin(ag)+yc; Among them, mnr is the radius of the marked circle, ag is the marked direction, xc and yc are the central longitude and latitude of the longitude and latitude square area respectively, and nq is the number of frequency circle levels, i = 1, 2, ... nq; The attribute value of this annotation is set to feqlevel(i). When i=1, the attribute value is set to the station number stanum.
9. The projection calculation method of a wave rose diagram to a geographical map according to claim 3, characterized in that: The radius of the marked circle in S6 is the mean value between the radius of each frequency circle and the radius of the previous circle calculated cyclically: The innermost circle is 0 and the mean of the innermost circle radius is mnr(1)=r(1) / 2; Then, mnr(i)=(r(i)+r(i-1)) / 2; Wherein, r(i) is the radius of each frequency level circle, i=2,3…nq.
10. A projection calculation system for a wave rose diagram to a geographical map, based on a projection calculation method for a wave rose diagram to a geographical map according to any one of claims 1 to 9, characterized in that: include: Parameter input module, information setting module, rose diagram frequency circle calculation module, wave frequency line calculation module in all directions and levels, wave direction and azimuth marking calculation module, frequency level marking calculation module and output module; The parameter input module is used to input calculation parameters; The information setting module is used to set basic information; The rose diagram frequency circle calculation module is used to calculate the size r(i) of the circle radius of each frequency level according to the calculation parameters and the basic information, and obtain the x and y coordinate values of the rose diagram frequency circle according to the size r(i) of the circle radius of each frequency level; The ocean wave frequency line calculation module for each direction and each level is used to obtain the projection length of the dynamic circle radius and the level frequency on the map according to the calculation parameters and the basic information, and obtain the starting point coordinates and the end point coordinates of the ocean wave frequency line for each direction and each level according to the projection length of the dynamic circle radius and the level frequency on the map; The wave direction and azimuth marking calculation module is used to calculate the radius rr of the marking circle layer according to the calculation parameters and the basic information, and obtain the x and y coordinates of the wave direction and azimuth marking according to the radius rr of the marking circle layer; The frequency level annotation calculation module is used to calculate the radius of the annotation circle according to the size r(i) of the radius of each frequency level circle, and obtain the frequency level annotation position according to the radius of the annotation circle; The output module is used to respectively connect the circle lines of the x and y coordinate values of the rose diagram frequency circle layer, and output the rose diagram frequency circle line file; respectively connect the starting point and the end point of the wave frequency line of each direction and each level to form a plurality of line segments, and output the wave frequency line files of each item and each level; and is also used to output the wave direction azimuth marking point file according to the calculated x and y coordinates of the wave direction azimuth marking; and output the wave frequency level marking point files of each level according to the calculated frequency level marking position.
