CN111476711A - Data projection and angle correction method and device - Google Patents

Data projection and angle correction method and device Download PDF

Info

Publication number
CN111476711A
CN111476711A CN202010594004.2A CN202010594004A CN111476711A CN 111476711 A CN111476711 A CN 111476711A CN 202010594004 A CN202010594004 A CN 202010594004A CN 111476711 A CN111476711 A CN 111476711A
Authority
CN
China
Prior art keywords
meteorological
projection
longitude
full
coordinates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010594004.2A
Other languages
Chinese (zh)
Inventor
王宇翔
徐华勋
易世伟
廖通逵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerospace Hongtu Information Technology Co Ltd
Original Assignee
Aerospace Hongtu Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aerospace Hongtu Information Technology Co Ltd filed Critical Aerospace Hongtu Information Technology Co Ltd
Priority to CN202010594004.2A priority Critical patent/CN111476711A/en
Publication of CN111476711A publication Critical patent/CN111476711A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G06T3/06
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof

Abstract

The invention provides a method and a device for projection and angle correction of data, which comprise the following steps: acquiring meteorological full-factor data monitored by a plurality of meteorological stations; parallelly converting longitude and latitude coordinates in the multiple meteorological full-element data into projection coordinates of a target map; and according to the longitude and latitude coordinates in the multiple meteorological full-element data, the rotation angles of the meteorological full elements are calculated in parallel. The method of the invention utilizes the parallelism of the GPU, can perform the conversion of the projection coordinates and the calculation of the rotation angle in parallel, greatly improves the operation efficiency when switching the map projection, shortens the operation time, and relieves the technical problems of low operation efficiency and long time consumption of the projection coordinates and the angle correction when switching the map projection in the prior art.

Description

Data projection and angle correction method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for projection and angle correction of data.
Background
In recent years, with the rapid development of computers and computing technologies and the progress of data observation and acquisition instruments, the types of data acquired by a single weather station are more and more, and the symbolic display and processing of the data can convert originally complex, massive and obscure data into visual two-dimensional and three-dimensional visualization results, thereby effectively helping weather workers to analyze weather data and make accurate judgment in a short time.
The earth is an irregular pear-shaped sphere with a slightly wide equator and slightly flat poles, so that the surface of the sphere is a curved surface which can not be flattened, errors and deformation can be generated when any mathematical method is used for conversion, and various projection methods are generated for reducing the errors as much as possible according to the requirements of industrial research. At present, weather analysis is necessary on different projection maps according to data of weather stations, so how to quickly and conveniently display the weather station data on different projection maps becomes a problem to be solved.
In a traditional display mode, when a CPU is used for switching different projection maps each time, the longitude and latitude positions of all weather full-factor data need to be converted into projection coordinates of the map, and the rotation angle of the weather full-factor of the current weather observation station is calculated according to the projection of the map. Taking the meteorological full-element data monitored by the N meteorological stations as an example, the processing flow is as follows: when map projection is switched, the meteorological full-element data monitored by the N meteorological stations needs to be subjected to N times of cyclic operation, the longitude and latitude of the meteorological full-element data monitored by a single meteorological station are converted into the projection coordinates of the map during each cyclic operation, and then the rotation angle of the meteorological full-element monitored by the single meteorological station at present is calculated.
In the above-described processing method, a large number of calculations of projection coordinates and angles are required each time map projection is switched, and as the number of observation stations increases, the number of observation elements increases, and the processing efficiency decreases, which takes a long time.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method and an apparatus for data projection and angle correction, which are used to solve the technical problems of low calculation efficiency and long time consumption of projection coordinates and angle correction when switching map projection in the prior art.
In a first aspect, an embodiment of the present invention provides a method for projecting data and correcting an angle, which is applied to a GPU, and the method includes:
acquiring meteorological full-factor data monitored by a plurality of meteorological observation stations, wherein the meteorological full-factor data comprises longitude and latitude coordinates;
parallelly converting longitude and latitude coordinates in the plurality of meteorological full-element data into projection coordinates of a target map, wherein the target map is a map corresponding to a projection mode selected by a user;
and according to the longitude and latitude coordinates in the multiple meteorological full-element data, the rotation angle of the meteorological full element is calculated in parallel.
Further, before acquiring the meteorological full-factor data monitored by the plurality of meteorological stations, the method further comprises:
acquiring an EPSG number;
and determining the target map according to the EPSG number.
Further, the parallel conversion of the longitude and latitude coordinates in the plurality of meteorological full-factor data into the projection coordinates of the target map comprises:
executing the following processes on a plurality of longitude and latitude coordinates in parallel:
calculating an intermediate constant according to the initial parameters of the map projection;
and calculating the projection coordinates of the target map according to each longitude and latitude coordinate and the intermediate constant.
Further, the parallel calculation of the rotation angle of the meteorological full element according to the longitude and latitude coordinates in the plurality of meteorological full element data comprises:
executing the following processes on a plurality of longitude and latitude coordinates in parallel:
converting each longitude and latitude coordinate and a coordinate of each longitude and latitude coordinate after the longitude and latitude coordinate is shifted by a preset distance to respectively obtain a first position coordinate and a second position coordinate in the target map;
calculating the meridian direction under the target map according to the first position coordinate and the second position coordinate;
and calculating the rotation angle of the meteorological all-elements based on the meridian direction.
Further, calculating the meridian direction under the target map according to the first position coordinate and the second position coordinate comprises:
calculating a difference value between the first position coordinate and the second position coordinate to obtain a coordinate difference;
and taking the coordinate difference as the meridian direction under the target map.
Further, calculating the rotation angle of the meteorological all-elements based on the meridian direction includes:
calculating an included angle between the warp direction and a preset direction to obtain an offset angle;
and determining the positive and negative of the offset angle to obtain the rotation angle of the meteorological full element.
In a second aspect, an embodiment of the present invention further provides a device for projecting data and correcting an angle, which is applied to a GPU, and the device includes:
the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring meteorological full-factor data monitored by a plurality of meteorological observation stations, and the meteorological full-factor data comprises longitude and latitude coordinates;
the conversion unit is used for parallelly converting longitude and latitude coordinates in the plurality of meteorological full-factor data into projection coordinates of a target map, wherein the target map is a map corresponding to a projection mode selected by a user;
and the computing unit is used for computing the rotation angle of the meteorological full element in parallel according to the longitude and latitude coordinates in the meteorological full element data.
Further, the apparatus further comprises:
the second acquisition unit is used for acquiring an EPSG number;
and the determining unit is used for determining the target map according to the EPSG number.
Further, the conversion unit includes:
the parallel conversion module is used for executing the following processes on the longitude and latitude coordinates in parallel:
calculating an intermediate constant according to the initial parameters of the map projection;
and calculating the projection coordinates of the target map according to each longitude and latitude coordinate and the intermediate constant.
Further, the calculation unit includes:
a parallel computing module for executing the following processes in parallel on the plurality of longitude and latitude coordinates:
converting each longitude and latitude coordinate and a coordinate of each longitude and latitude coordinate after the longitude and latitude coordinate is shifted by a preset distance to respectively obtain a first position coordinate and a second position coordinate in the target map;
calculating the meridian direction under the target map according to the first position coordinate and the second position coordinate;
and calculating the rotation angle of the meteorological all-elements based on the meridian direction.
In the embodiment of the invention, when data projection and angle correction are carried out, the GPU firstly acquires meteorological full-factor data monitored by a plurality of meteorological stations; then, parallelly converting longitude and latitude coordinates in the multiple meteorological full-factor data into projection coordinates of a target map; and finally, calculating the rotation angle of the meteorological full elements in parallel according to the longitude and latitude coordinates in the multiple meteorological full element data. The method of the invention can be known from the above description, by using the parallelism of the GPU, the conversion of the projection coordinates and the calculation of the rotation angle can be performed in parallel, and when the map projection is switched, the calculation efficiency is greatly improved, the calculation time is shortened, and the technical problems of low calculation efficiency and long time consumption of the projection coordinates and the angle correction when the map projection is switched in the prior art are solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for projection and angle correction of data according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a standard arrangement of symbolic weather elements according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of arrangement results of meteorological full factor data according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a longitude and latitude map such as a WGS provided in the embodiment of the present invention;
FIG. 5 is a schematic diagram of an Albers projection map provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of a polar projection map according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a data projection and angle correction apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
To facilitate understanding of the present embodiment, a detailed description will be given to a method for projecting data and correcting an angle disclosed in the present embodiment.
Example 1:
while the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than presented herein, in accordance with embodiments of the present invention.
Fig. 1 is a flowchart of a method for projection and angle correction of data according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, acquiring meteorological full-factor data monitored by a plurality of meteorological stations, wherein the meteorological full-factor data comprises longitude and latitude coordinates;
in the embodiment of the present invention, the data projection and angle correction method is applied to a GPU (graphics processing Unit), and the GPU has the characteristics of parallelism and high efficiency. The weather-related elements may specifically include the following elements: station number, longitude, latitude, altitude, total cloud cover, wind direction, wind speed, sea level barometric pressure, 3-hour transformation, past weather 1, past weather 2, 6-hour precipitation, low cloud cover, dew point, visibility, present weather, temperature, medium cloud cover, high cloud cover, sign 1, sign 2, 24-hour transformation. When the meteorological full elements are symbolized, the meteorological full elements are arranged in a manner similar to a nine-square grid according to a certain sequence. Fig. 2 shows a standard arrangement, and fig. 3 shows an arrangement result of meteorological full-element data according to the standard arrangement of fig. 2.
Currently, there are various projection methods. The map projection can be divided into equiangular projection, equal (area) projection and arbitrary projection according to a deformation mode; the shape of the graticule when projected on the positive axis can be divided into geometric projection (plane projection, cone projection, cylindrical projection, multi-cone projection, etc.) and conditional projection (non-geometric projection), pseudo azimuth projection, pseudo cylinder projection, pseudo cone projection, etc.
Fig. 4 to 6 show three projection maps, wherein fig. 4 shows a longitude and latitude map such as WGS, in which the wind wheel-like sign is parallel to the meridian, and the wind wheel-like sign is located in the position of china, and when the wind wheel-like sign is converted to the Albers projection map, it should also be located in the position of china, and should also be parallel to the meridian, and the result is shown in fig. 5. This involves conversion of projection coordinates and calculation of a rotation angle when switching between two projection maps, and fig. 6 shows a polar projection map, and similarly, when switching from a longitudinal/latitudinal map such as WGS to a polar projection map, conversion of projection coordinates and calculation of a rotation angle are also required so that the positions where wind-like signs are located are the same and the directions are the same.
Step S104, converting longitude and latitude coordinates in the multiple meteorological full-factor data into projection coordinates of a target map in parallel, wherein the target map is a map corresponding to a projection mode selected by a user;
after the meteorological full-factor data obtained by monitoring of the plurality of meteorological stations are obtained, the longitude and latitude coordinates are further converted into the projection coordinates of the target map in parallel, and the process is described in detail below and is not repeated herein.
And step S106, calculating the rotation angle of the meteorological full elements in parallel according to the longitude and latitude coordinates in the multiple meteorological full element data.
The process is described in detail below and will not be described herein.
In the embodiment of the invention, when data projection and angle correction are carried out, the GPU firstly acquires meteorological full-factor data monitored by a plurality of meteorological stations; then, parallelly converting longitude and latitude coordinates in the multiple meteorological full-factor data into projection coordinates of a target map; and finally, calculating the rotation angle of the meteorological full elements in parallel according to the longitude and latitude coordinates in the multiple meteorological full element data. The method of the invention can be known from the above description, by using the parallelism of the GPU, the conversion of the projection coordinates and the calculation of the rotation angle can be performed in parallel, and when the map projection is switched, the calculation efficiency is greatly improved, the calculation time is shortened, and the technical problems of low calculation efficiency and long time consumption of the projection coordinates and the angle correction when the map projection is switched in the prior art are solved.
The projection and angle correction method of the data according to the present invention is briefly described above, and other contents related thereto are described in detail below.
In an optional embodiment of the present invention, before acquiring the meteorological full-factor data monitored by the plurality of meteorological stations, the method further comprises: acquiring an EPSG number; and determining a target map according to the EPSG number.
Specifically, when the map is implemented, the GPU determines the target map according to the EPSG number corresponding to the current projection, that is, there is a one-to-one correspondence between the EPSG number and the target map.
In an optional embodiment of the present invention, the step S104, the parallel conversion of the longitude and latitude coordinates in the plurality of meteorological full-factor data into the projection coordinates of the target map includes the following steps (1) to (2):
the following processes are performed in parallel for a plurality of latitude and longitude coordinates:
(1) calculating an intermediate constant according to the initial parameters of the map projection;
(2) and calculating the projection coordinates of the target map according to each longitude and latitude coordinate and the intermediate constant.
In order to better understand the process, the following description takes the example of switching between the WGS84 equal-diameter weft map and the lambert map, and gives pseudo codes of the projection coordinate conversion, specifically as follows:
v/longitude and latitude coordinate to Lambert projection
vec3 GeoToLambert(float dLongitude, float dLatitude, floatdRelativeHeight)
{
These parameters are fixed parameter values (i.e. intermediate constants) converted from the initial parameters of the map projection during normal projection conversion
const float EPS = 0.081991885518007637;
const float FORTPI = 0.78539816339744828;
const float PrimeMeridian = 0.17453292519943295;
const float K = 11342908.450846279;
const float Alpha = 0.79711053618197858;
const float Rho0 = 7340565.5138015132;
const float FalseEasting = 0.00000000000000000;
const float FalseNorthing = 0.00000000000000000;
Calculating projection coordinates of Lambert projection according to the input longitude and latitude and intermediate constant
float dESinB = EPS * sin(dLatitude);
float dU = tan(FORTPI + dLatitude*0.5) * pow((1.0 - dESinB) / (1.0 +dESinB), EPS*0.5);
float dRho = K / pow(dU, Alpha);
float d L am = (d L area-PrimeMeridian). Alpha// relative meridian coordinates
float x = dRho * sin(dLam) + FalseEasting;
float y = Rho0 - dRho * cos(dLam) + FalseNorthing;
return vec3(x, y, dRelativeHeight);
}
It should be noted that, for switching between different projection maps, the initial parameters of map projection are different, and the calculation formula for calculating the projection coordinates of the target map is also different according to each longitude and latitude coordinate and the intermediate constant, and the above pseudo code is only an example of a manner of switching the WGS84 isometric latitude map to the lambert map, and the above process is not limited here.
In an optional embodiment of the present invention, the step S106 of calculating the rotation angle of the meteorological full elements in parallel according to the longitude and latitude coordinates in the plurality of meteorological full element data includes the following steps (a) - (c):
the following processes are performed in parallel for a plurality of latitude and longitude coordinates:
(a) converting each longitude and latitude coordinate and a coordinate of each longitude and latitude coordinate after the longitude and latitude coordinates are shifted by a preset distance to respectively obtain a first position coordinate and a second position coordinate in the target map;
(b) calculating the meridian direction under the target map according to the first position coordinate and the second position coordinate;
specifically, calculating a difference value between the first position coordinate and the second position coordinate to obtain a coordinate difference; and taking the coordinate difference as the meridian direction under the target map.
(c) And calculating the rotation angle of all meteorological elements based on the direction of the longitude line.
Specifically, an included angle between the warp direction and a preset direction is calculated to obtain an offset angle; and determining the positive and negative of the offset angle to obtain the rotation angle of all meteorological elements.
The calculation process of the rotation angle is explained in the colloquial language: under the equal longitude and latitude map, the default angle of the symbol is 0 degrees, the direction is vertically directed to the north, and the calculation of the rotation angle under other projection maps is converted into the calculation of the rotation angle difference between the longitude direction and the true north under other projections.
Therefore, in the GPU, the current longitude and latitude coordinates vec2(d L area ) and the current longitude and latitude coordinates may be shifted by a distance vec2(d L area, d L area +0.01) on the meridian, the two position coordinates are converted into projection coordinates (i.e. the first position coordinate and the second position coordinate in the above text) in the current map, then the coordinates are subtracted, the meridian direction vec2 direction in the current projection map is calculated, and the included angle between the direction and the due north direction is calculated, that is, the rotation angle difference that the site symbol needs to calculate in the current projection map.
Pseudo codes for calculating the rotation angle when the WGS84 isometric latitude map switches the lambert map are given below, specifically as follows:
float GetLambertRotetaAngle(float dLongitude, float dLatitude)
{
vec3 pointStart = GeoTo L ambert (d L area, d L atitude, 0);// Lambert projected location point (i.e., first location coordinate)
vec3 pointEnd = GeoTo L ambert (d L area, d L atitude +0.01, 0);/second point on the meridian (i.e. second position coordinate) in Lambert projection
vec2 direction = vec2(point end. x-point start. x, point end. y-point start. y);/longitude direction under lambert projection
vec2 normal = vec2(0.0,1.0);// warp directions under equal warp and weft
float angle = acos (dot (direction)/length (direction))// calculating the offset angle as the radian measure [0, π ]
Since the radian is calculated in the range of 0 to pi, it is necessary to distinguish between positive and negative values, positive in one quadrant and four quadrants
V/is negative in two or three quadrants
if(direction.x<= 0.0)
{
angle = -angle;
}
return angle;
}
The projection and angle correction method of the data only creates all meteorological full-element data once with the participation of the GPU, and no matter whether the map projection is changed or not, codes for converting projection coordinates and calculating the rotation angle are put into the GPU, and millions of threads of the original cpu with single thread or multiple threads are used for simultaneously processing tasks, so that the operation time is greatly shortened, and the processing efficiency is improved.
Example 2:
the embodiment of the present invention further provides a data projection and angle correction device, which is mainly used for executing the data projection and angle correction method provided by the above-mentioned content of the embodiment of the present invention, and the following describes the data projection and angle correction device provided by the embodiment of the present invention in detail.
Fig. 7 is a schematic diagram of a data projection and angle correction apparatus according to an embodiment of the present invention, and as shown in fig. 7, the control apparatus of the robot mainly includes: a first acquisition unit 10, a conversion unit 20 and a calculation unit 30, wherein:
the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring meteorological full-factor data monitored by a plurality of meteorological observation stations, and the meteorological full-factor data comprises longitude and latitude coordinates;
the conversion unit is used for parallelly converting longitude and latitude coordinates in the multiple meteorological full-factor data into projection coordinates of a target map, wherein the target map is a map corresponding to a projection mode selected by a user;
and the computing unit is used for computing the rotation angle of the meteorological full elements in parallel according to the longitude and latitude coordinates in the multiple meteorological full element data.
In the embodiment of the invention, when data projection and angle correction are carried out, the GPU firstly acquires meteorological full-factor data monitored by a plurality of meteorological stations; then, parallelly converting longitude and latitude coordinates in the multiple meteorological full-factor data into projection coordinates of a target map; and finally, calculating the rotation angle of the meteorological full elements in parallel according to the longitude and latitude coordinates in the multiple meteorological full element data. The method of the invention can be known from the above description, by using the parallelism of the GPU, the conversion of the projection coordinates and the calculation of the rotation angle can be performed in parallel, and when the map projection is switched, the calculation efficiency is greatly improved, the calculation time is shortened, and the technical problems of low calculation efficiency and long time consumption of the projection coordinates and the angle correction when the map projection is switched in the prior art are solved.
Optionally, the apparatus further comprises:
the second acquisition unit is used for acquiring an EPSG number;
and the determining unit is used for determining the target map according to the EPSG number.
Optionally, the conversion unit comprises:
the parallel conversion module is used for executing the following processes on the latitude and longitude coordinates in parallel:
calculating an intermediate constant according to the initial parameters of the map projection;
and calculating the projection coordinates of the target map according to each longitude and latitude coordinate and the intermediate constant.
Optionally, the calculation unit comprises:
the parallel computing module is used for executing the following processes on the latitude and longitude coordinates in parallel:
converting each longitude and latitude coordinate and a coordinate of each longitude and latitude coordinate after the longitude and latitude coordinates are shifted by a preset distance to respectively obtain a first position coordinate and a second position coordinate in the target map;
calculating the meridian direction under the target map according to the first position coordinate and the second position coordinate;
and calculating the rotation angle of all meteorological elements based on the direction of the longitude line.
Optionally, the parallel computing module is further configured to: calculating a difference value between the first position coordinate and the second position coordinate to obtain a coordinate difference; and taking the coordinate difference as the meridian direction under the target map.
Optionally, the parallel computing module is further configured to: calculating an included angle between the warp direction and a preset direction to obtain an offset angle; and determining the positive and negative of the offset angle to obtain the rotation angle of all meteorological elements.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The computer program product of the apparatus for projecting data and correcting an angle provided in the embodiments of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for projection and angle correction of data is applied to a GPU, and the method comprises the following steps:
acquiring meteorological full-factor data monitored by a plurality of meteorological observation stations, wherein the meteorological full-factor data comprises longitude and latitude coordinates;
parallelly converting longitude and latitude coordinates in the plurality of meteorological full-element data into projection coordinates of a target map, wherein the target map is a map corresponding to a projection mode selected by a user;
and according to the longitude and latitude coordinates in the multiple meteorological full-element data, the rotation angle of the meteorological full element is calculated in parallel.
2. The method for projection and angular rectification of data according to claim 1, wherein prior to acquiring the meteorological full-factor data monitored by a plurality of meteorological stations, the method further comprises:
acquiring an EPSG number;
and determining the target map according to the EPSG number.
3. The method of claim 1, wherein the parallel transformation of the longitude and latitude coordinates of the meteorological full-factor data into the projection coordinates of the target map comprises:
executing the following processes on a plurality of longitude and latitude coordinates in parallel:
calculating an intermediate constant according to the initial parameters of the map projection;
and calculating the projection coordinates of the target map according to each longitude and latitude coordinate and the intermediate constant.
4. The method of claim 1, wherein the parallel calculation of the rotation angle of the meteorological full element according to the longitude and latitude coordinates in the plurality of meteorological full element data comprises:
executing the following processes on a plurality of longitude and latitude coordinates in parallel:
converting each longitude and latitude coordinate and a coordinate of each longitude and latitude coordinate after the longitude and latitude coordinate is shifted by a preset distance to respectively obtain a first position coordinate and a second position coordinate in the target map;
calculating the meridian direction under the target map according to the first position coordinate and the second position coordinate;
and calculating the rotation angle of the meteorological all-elements based on the meridian direction.
5. The method of claim 4, wherein calculating the direction of the meridian under the target map from the first and second position coordinates comprises:
calculating a difference value between the first position coordinate and the second position coordinate to obtain a coordinate difference;
and taking the coordinate difference as the meridian direction under the target map.
6. The method of claim 4, wherein calculating the rotation angle of the meteorological full element based on the meridian direction comprises:
calculating an included angle between the warp direction and a preset direction to obtain an offset angle;
and determining the positive and negative of the offset angle to obtain the rotation angle of the meteorological full element.
7. A projection and angle correction device for data, applied to a GPU, the device comprising:
the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring meteorological full-factor data monitored by a plurality of meteorological observation stations, and the meteorological full-factor data comprises longitude and latitude coordinates;
the conversion unit is used for parallelly converting longitude and latitude coordinates in the plurality of meteorological full-factor data into projection coordinates of a target map, wherein the target map is a map corresponding to a projection mode selected by a user;
and the computing unit is used for computing the rotation angle of the meteorological full element in parallel according to the longitude and latitude coordinates in the meteorological full element data.
8. The apparatus for projection and angle correction of data according to claim 7, further comprising:
the second acquisition unit is used for acquiring an EPSG number;
and the determining unit is used for determining the target map according to the EPSG number.
9. The apparatus for projection and angle correction of data according to claim 7, wherein the conversion unit comprises:
the parallel conversion module is used for executing the following processes on the longitude and latitude coordinates in parallel:
calculating an intermediate constant according to the initial parameters of the map projection;
and calculating the projection coordinates of the target map according to each longitude and latitude coordinate and the intermediate constant.
10. The apparatus for projection and angle correction of data according to claim 7, wherein the calculation unit comprises:
a parallel computing module for executing the following processes in parallel on the plurality of longitude and latitude coordinates:
converting each longitude and latitude coordinate and a coordinate of each longitude and latitude coordinate after the longitude and latitude coordinate is shifted by a preset distance to respectively obtain a first position coordinate and a second position coordinate in the target map;
calculating the meridian direction under the target map according to the first position coordinate and the second position coordinate;
and calculating the rotation angle of the meteorological all-elements based on the meridian direction.
CN202010594004.2A 2020-06-28 2020-06-28 Data projection and angle correction method and device Pending CN111476711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010594004.2A CN111476711A (en) 2020-06-28 2020-06-28 Data projection and angle correction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010594004.2A CN111476711A (en) 2020-06-28 2020-06-28 Data projection and angle correction method and device

Publications (1)

Publication Number Publication Date
CN111476711A true CN111476711A (en) 2020-07-31

Family

ID=71763976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010594004.2A Pending CN111476711A (en) 2020-06-28 2020-06-28 Data projection and angle correction method and device

Country Status (1)

Country Link
CN (1) CN111476711A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117227A (en) * 2011-03-09 2011-07-06 南京恩瑞特实业有限公司 Multi-core parallel calculation method for weather radar data
CN109388359A (en) * 2017-08-08 2019-02-26 美国科视数字系统股份有限公司 Pre- visualization method and equipment are mapped for automatic projection
CN110866964A (en) * 2019-11-08 2020-03-06 四川大学 GPU accelerated ellipsoid clipping map terrain rendering method
CN110889949A (en) * 2019-12-09 2020-03-17 国网湖南省电力有限公司 Power transmission line satellite monitoring data processing method and system based on layered GPU (graphics processing Unit) calculation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117227A (en) * 2011-03-09 2011-07-06 南京恩瑞特实业有限公司 Multi-core parallel calculation method for weather radar data
CN109388359A (en) * 2017-08-08 2019-02-26 美国科视数字系统股份有限公司 Pre- visualization method and equipment are mapped for automatic projection
CN110866964A (en) * 2019-11-08 2020-03-06 四川大学 GPU accelerated ellipsoid clipping map terrain rendering method
CN110889949A (en) * 2019-12-09 2020-03-17 国网湖南省电力有限公司 Power transmission line satellite monitoring data processing method and system based on layered GPU (graphics processing Unit) calculation

Similar Documents

Publication Publication Date Title
CN105333861B (en) The method and device of shaft tower tilt detection based on laser point cloud
Ma et al. A robust and high-precision automatic reading algorithm of pointer meters based on machine vision
US11107199B2 (en) Automatic cross-platform geometric correction method for moon-based earth observation image
CN106842160A (en) A kind for the treatment of method and apparatus of radar return sampled data
CN104537606B (en) Geographical coordinate projects changing method
CN105067120A (en) Dynamic filtering and re-sampling method and dynamic filtering and re-sampling device for brightness temperature observation of space-borne microwave radiometer
US20180068492A1 (en) Image processing device, image processing method, and image processing program
KR101499006B1 (en) Coordinates conversion method of conservative physical parameters from latitude-longitude coordinates system to rotated cubed-sphere coordinates system and hardware device performing the same
CN107451958B (en) A kind of angular transition method towards the polar region ArcGIS vector field visualization
CN111311659B (en) Calibration method based on three-dimensional imaging of oblique plane mirror
CN103499341A (en) Electric rod dipmeter as well as using method thereof
CN107067454B (en) Radar force diagram three-dimensional display method based on hypergraph component development platform
CN107689083B (en) Self-adaptive geometric surface information labeling method and device for geographic information system
CN113415433B (en) Pod attitude correction method and device based on three-dimensional scene model and unmanned aerial vehicle
CN111476711A (en) Data projection and angle correction method and device
Ji et al. Correction and pointer reading recognition of circular pointer meter
CN112365572B (en) Rendering method based on surface subdivision and related products thereof
CN115272523B (en) Method and device for drawing air quality distribution map, electronic equipment and storage medium
Claro et al. Detection and mapping of monopiles in offshore wind farms using autonomous surface vehicles
EP2612302B1 (en) A combined projection method and an apparatus for improving accuracy of map projections
CN113342292B (en) Sea ice remote sensing and numerical data superposition display method based on electronic chart
CN113810606A (en) Shooting target position determining method, shooting target position determining equipment and computer storage medium
CN113033446A (en) Transmission tower identification and positioning method based on high-resolution remote sensing image
CN109214981B (en) Method for projecting spherical image to plane image
CN112667761A (en) Geographic information data generation method and device, map presentation method and device, storage medium and computing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200731