CN113763509B - Trace graph drawing method and device - Google Patents
Trace graph drawing method and device Download PDFInfo
- Publication number
- CN113763509B CN113763509B CN202111050726.2A CN202111050726A CN113763509B CN 113763509 B CN113763509 B CN 113763509B CN 202111050726 A CN202111050726 A CN 202111050726A CN 113763509 B CN113763509 B CN 113763509B
- Authority
- CN
- China
- Prior art keywords
- backward
- target
- pollutant
- trajectory
- track
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 239000003344 environmental pollutant Substances 0.000 claims abstract description 209
- 231100000719 pollutant Toxicity 0.000 claims abstract description 209
- 230000005540 biological transmission Effects 0.000 claims abstract description 20
- 230000007613 environmental effect Effects 0.000 claims abstract description 18
- 230000008859 change Effects 0.000 claims abstract description 15
- 239000013598 vector Substances 0.000 claims description 78
- 239000000356 contaminant Substances 0.000 claims description 40
- 238000010586 diagram Methods 0.000 claims description 29
- 238000004422 calculation algorithm Methods 0.000 claims description 18
- 238000009877 rendering Methods 0.000 claims description 17
- 230000000295 complement effect Effects 0.000 claims description 11
- 238000013507 mapping Methods 0.000 claims description 7
- 239000003570 air Substances 0.000 description 30
- 238000012545 processing Methods 0.000 description 13
- 238000004590 computer program Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 9
- 238000012544 monitoring process Methods 0.000 description 5
- 239000013589 supplement Substances 0.000 description 5
- RAHZWNYVWXNFOC-UHFFFAOYSA-N Sulphur dioxide Chemical compound O=S=O RAHZWNYVWXNFOC-UHFFFAOYSA-N 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 239000002245 particle Substances 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 239000012080 ambient air Substances 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 239000013618 particulate matter Substances 0.000 description 3
- 230000000153 supplemental effect Effects 0.000 description 3
- MGWGWNFMUOTEHG-UHFFFAOYSA-N 4-(3,5-dimethylphenyl)-1,3-thiazol-2-amine Chemical compound CC1=CC(C)=CC(C=2N=C(N)SC=2)=C1 MGWGWNFMUOTEHG-UHFFFAOYSA-N 0.000 description 2
- UGFAIRIUMAVXCW-UHFFFAOYSA-N Carbon monoxide Chemical compound [O+]#[C-] UGFAIRIUMAVXCW-UHFFFAOYSA-N 0.000 description 2
- 229910002091 carbon monoxide Inorganic materials 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012806 monitoring device Methods 0.000 description 2
- JCXJVPUVTGWSNB-UHFFFAOYSA-N nitrogen dioxide Inorganic materials O=[N]=O JCXJVPUVTGWSNB-UHFFFAOYSA-N 0.000 description 2
- CBENFWSGALASAD-UHFFFAOYSA-N Ozone Chemical compound [O-][O+]=O CBENFWSGALASAD-UHFFFAOYSA-N 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000001311 chemical methods and process Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000009792 diffusion process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 229910052757 nitrogen Inorganic materials 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 229910052698 phosphorus Inorganic materials 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The disclosure provides a method and a device for drawing a track graph, and belongs to the field of environmental science. The method comprises the following steps: receiving a backward trajectory drawing request, the backward trajectory drawing request including an identification of at least one target pollutant; determining a plurality of backward trajectory point data according to the backward trajectory drawing request, wherein the backward trajectory point data comprises a pollutant concentration value of the at least one target pollutant; and drawing a backward trace graph according to the plurality of backward trace point data, wherein the backward trace graph is used for representing the transmission path and the concentration change condition of the at least one target pollutant in a past preset time period. By adopting the method and the device, the efficiency of checking the air quality pollution condition can be improved.
Description
Technical Field
The invention relates to the field of environmental science, in particular to a method and a device for drawing a track graph.
Background
The backward trajectory graph in the air quality forecast may be used to represent the transmission path of the air mass over a period of time.
Currently, a Hybrid Single-Particle Lagrangian Integrated Trajectory model (Hybrid Single-Particle Lagrangian Integrated Trajectory model) of the National Oceanic and Atmospheric Administration (NOAA) is commonly used to generate a backward Trajectory map, and the model uses a Lagrangian method to calculate backward transmission Trajectory points of an air mass. Assuming that a particle in air flutters with the wind, its motion trajectory is the integral of its vector in time and space.
However, a backward track graph drawn by the HYSPLIT model is only a connecting line of each track point, and cannot represent the air quality pollution condition.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for drawing a track map. The technical scheme is as follows:
according to an aspect of the present disclosure, there is provided a trajectory map drawing method, the method including:
receiving a backward trajectory drawing request, the backward trajectory drawing request including an identification of at least one target pollutant;
determining a plurality of backward trajectory point data according to the backward trajectory drawing request, wherein the backward trajectory point data comprises a pollutant concentration value of the at least one target pollutant;
and drawing a backward trace graph according to the plurality of backward trace point data, wherein the backward trace graph is used for representing the transmission path and the concentration change condition of the at least one target pollutant in a past preset time period.
Optionally, the backward trajectory drawing request further includes a target trajectory point;
determining a plurality of backward trajectory point data according to the backward trajectory drawing request, including:
acquiring backward track point data corresponding to the target track point according to the backward track drawing request;
determining at least one backtracking backward track point data according to the backward track point data corresponding to the target track point;
the drawing of the backward track graph according to the plurality of backward track point data comprises the following steps:
and taking the target track point as a termination position, and drawing a backward track graph according to backward track point data corresponding to the target track point and the backward track point data traced back by the at least one backtrack.
Optionally, the backward trajectory point data further includes a wind speed vector;
the step of determining at least one backtracking backward track point data according to the backward track point data corresponding to the target track point comprises the following steps:
determining backtracking backward track points according to the target track points, the opposite vectors of the wind speed vectors of the target track points and a preset time interval, and acquiring backward track point data corresponding to the backtracking backward track points;
and repeating the steps for each backward track point in the preset time period, and determining at least one backtracking backward track point data.
Optionally, the method for acquiring backward trace point data includes:
determining a target grid of the backward track points to be acquired in an environmental air quality numerical prediction mode;
acquiring wind speed vectors of all vertexes of the target grid at the current moment and a pollutant concentration value of the at least one target pollutant;
determining the wind speed vector of the backward track point to be acquired according to the wind speed vector of each vertex of the target grid;
and determining the pollutant concentration value of the at least one target pollutant of the backward tracing point to be acquired according to the pollutant concentration value of the at least one target pollutant of each vertex of the target grid.
Optionally, the determining, according to the wind speed vector of each vertex of the target grid, the wind speed vector of the backward track point to be acquired includes:
determining the wind speed vector of the backward track point to be acquired according to the wind speed vector of each vertex of the target grid based on a bilinear interpolation algorithm;
the determining the pollutant concentration value of the at least one target pollutant of the backward tracing point to be acquired according to the pollutant concentration value of the at least one target pollutant of each vertex of the target grid includes:
and determining the pollutant concentration value of the at least one target pollutant of the backward trace point to be obtained according to the pollutant concentration value of the at least one target pollutant of each vertex of the target grid based on a bilinear interpolation algorithm.
Optionally, the method further includes:
determining at least one supplementary backward track point data between adjacent backward track points according to the adjacent backward track points;
the drawing of the backward track graph according to the plurality of backward track point data comprises the following steps:
and taking the target track point as an end position, and drawing a backward track graph according to backward track point data corresponding to the target track point, the at least one backtracking backward track point data and the at least one supplementary backward track point data.
Optionally, the determining, according to the adjacent backward track points, at least one supplementary backward track point data between the adjacent backward track points includes:
constructing a corresponding third-order Bezier curve according to adjacent backward track points, and determining at least one complementary backward track point on the third-order Bezier curve;
determining a contaminant concentration value of the at least one target contaminant of the at least one supplemental rearward trajectory point based on the contaminant concentration value of the at least one target contaminant of the adjacent rearward trajectory point.
Optionally, the determining a contaminant concentration value of the at least one target contaminant of the at least one complementary backward trajectory point according to the contaminant concentration value of the at least one target contaminant of the adjacent backward trajectory point includes:
and determining the pollutant concentration value of the at least one target pollutant of the at least one supplementary backward track point according to the pollutant concentration value of the at least one target pollutant of the adjacent backward track points based on a linear interpolation algorithm.
Optionally, the drawing a backward trajectory graph according to the plurality of backward trajectory point data includes:
determining the color of each backward trajectory point according to the pollutant concentration value of the at least one target pollutant in the backward trajectory point data, wherein the color of each backward trajectory point is used for expressing the pollutant concentration value of the at least one target pollutant;
and rendering according to the color of each backward track point, and drawing a backward track graph.
Optionally, the method further includes:
and drawing an arrow on each backward track point of the backward track graph, wherein the pointing direction of the arrow is used for representing the wind direction, and the size of the arrow is proportional to the size of the wind speed.
According to another aspect of the present disclosure, there is provided a trajectory graph drawing apparatus including:
a receiving module for receiving a backward trajectory drawing request, the backward trajectory drawing request including an identification of at least one target pollutant;
a determining module, configured to determine, according to the backward trajectory drawing request, a plurality of backward trajectory point data, where the backward trajectory point data includes a contaminant concentration value of the at least one target contaminant;
and the drawing module is used for drawing a backward track graph according to the plurality of backward track point data, and the backward track graph is used for representing the transmission path and the concentration change condition of the at least one target pollutant in a past preset time period.
Optionally, the backward trajectory drawing request further includes a target trajectory point;
the determination module is to: acquiring backward track point data corresponding to the target track point according to the backward track drawing request; determining at least one backtracking backward track point data according to the backward track point data corresponding to the target track point;
the rendering module is to: and taking the target track point as an end position, and drawing a backward track graph according to backward track point data corresponding to the target track point and the at least one backtraced backward track point data.
Optionally, the backward trajectory point data further includes a wind speed vector;
the determination module is to:
determining backtracking backward track points according to the target track points, the opposite vectors of the wind speed vectors of the target track points and a preset time interval, and acquiring backward track point data corresponding to the backtracking backward track points;
and repeating the steps for each backward track point in the preset time period, and determining at least one backtracking backward track point data.
Optionally, the determining module is configured to:
determining a target grid of the backward track points to be acquired in an environmental air quality numerical prediction mode;
acquiring wind speed vectors of all vertexes of the target grid at the current moment and a pollutant concentration value of the at least one target pollutant;
determining the wind speed vector of the backward track point to be acquired according to the wind speed vector of each vertex of the target grid;
and determining the pollutant concentration value of the at least one target pollutant of the backward tracing point to be acquired according to the pollutant concentration value of the at least one target pollutant of each vertex of the target grid.
Optionally, the determining module is configured to:
determining the wind speed vector of the backward track point to be acquired according to the wind speed vector of each vertex of the target grid based on a bilinear interpolation algorithm;
and determining the pollutant concentration value of the at least one target pollutant of the backward track point to be acquired according to the pollutant concentration value of the at least one target pollutant of each vertex of the target grid based on a bilinear interpolation algorithm.
Optionally, the determining module is further configured to: determining at least one supplementary backward track point data between adjacent backward track points according to the adjacent backward track points;
the rendering module is to: and taking the target track point as an end position, and drawing a backward track graph according to backward track point data corresponding to the target track point, the at least one backtracking backward track point data and the at least one supplementary backward track point data.
Optionally, the determining module is configured to:
constructing a corresponding third-order Bezier curve according to adjacent backward track points, and determining at least one complementary backward track point on the third-order Bezier curve;
determining a contaminant concentration value of the at least one target contaminant of the at least one supplemental rearward trajectory point based on the contaminant concentration value of the at least one target contaminant of the adjacent rearward trajectory point.
Optionally, the determining module is configured to:
and determining the pollutant concentration value of the at least one target pollutant of the at least one supplementary backward track point according to the pollutant concentration value of the at least one target pollutant of the adjacent backward track points based on a linear interpolation algorithm.
Optionally, the rendering module is configured to:
determining the color of each backward trajectory point according to the pollutant concentration value of the at least one target pollutant in the plurality of backward trajectory point data, wherein the color of each backward trajectory point is used for expressing the pollutant concentration value of the at least one target pollutant;
and rendering according to the color of each backward track point, and drawing a backward track graph.
Optionally, the rendering module is further configured to:
an arrow is drawn on each backward track point of the backward track graph, the pointing direction of the arrow is used for representing the wind direction, and the size of the arrow is proportional to the size of the wind speed.
According to another aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory for storing a program, wherein the program is stored in the memory,
wherein the program comprises instructions which, when executed by the processor, cause the processor to perform the above-described trajectory mapping method.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the above-described trajectory map drawing method.
In the embodiment of the disclosure, after the backward trajectory drawing request is received, a plurality of backward trajectory point data are determined according to the backward trajectory drawing request, and then a backward trajectory graph is drawn according to the plurality of backward trajectory point data. Since the backward trace point data includes the pollutant concentration value of the target pollutant, the backward trace graph can be used for representing the transmission path and the concentration change condition of the target pollutant in the past preset time period. Through the trace graph drawing method provided by the embodiment of the disclosure, the drawn backward trace graph can intuitively show the concentration change condition of the target pollutant in the transmission path, and is not limited to the connecting line of the trace points, so that the efficiency of checking the air quality pollution condition can be improved by the embodiment of the disclosure.
Drawings
Further details, features and advantages of the disclosure are disclosed in the following description of exemplary embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 shows a flowchart of a trajectory graph drawing method according to an exemplary embodiment of the present disclosure;
FIG. 2 illustrates a flow diagram for obtaining backward track point data according to an exemplary embodiment of the present disclosure;
FIG. 3 shows an ambient air quality numerical prediction mode grid schematic in accordance with an exemplary embodiment of the present disclosure;
FIG. 4 shows a target grid schematic in accordance with an example embodiment of the present disclosure;
fig. 5 shows a third order bezier curve schematic according to an exemplary embodiment of the present disclosure;
FIG. 6 shows a backward trajectory diagram according to an exemplary embodiment of the present disclosure;
FIG. 7 shows a backward trajectory diagram according to an exemplary embodiment of the present disclosure;
FIG. 8 shows a graphical illustration of color versus contaminant concentration values according to an example embodiment of the present disclosure;
FIG. 9 shows a backward trajectory diagram according to an exemplary embodiment of the present disclosure;
fig. 10 shows a schematic block diagram of a trajectory mapping device according to an exemplary embodiment of the present disclosure;
FIG. 11 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description. It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
In order to clearly describe the methods provided by the embodiments of the present disclosure, the following description refers to the terms used.
An ambient air quality numerical prediction mode: based on the basic physical and chemical principles in the process of forming the atmospheric pollutants, the system simulates the physical and chemical processes of emission, diffusion, transportation, chemical reaction, removal and the like of the atmospheric pollutants by adopting a numerical calculation method, thereby predicting the air quality condition.
Forecasting the environmental air quality numerical value: the method is characterized in that an environmental air quality numerical prediction mode is utilized to predict the concentration and the temporal-spatial variation of main pollutants in the atmosphere, predict the environmental air quality conditions and the potential pollution processes of cities, areas and the like, provide guidance and service for the daily life and production activities of the public and provide scientific basis for management departments to take countermeasures.
Third order bezier curve: the Bessel curve is invented by Pierre Bezier, a French mathematician, lays a foundation for computer vector graphics, and has the main significance that the Bessel curve can be described mathematically no matter whether the Bessel curve is a straight line or a curve. Wherein a third order bezier curve may be used to delineate the curve profile.
And (3) linear interpolation algorithm: the interpolation function is an interpolation mode of a first-order polynomial, and the interpolation error of the interpolation function on an interpolation node is zero.
Bilinear interpolation algorithm: the linear interpolation extension of the interpolation function with two variables has the core idea that linear interpolation is respectively carried out in two directions.
The embodiment of the disclosure provides a track graph drawing method, which can be completed by a terminal, a server and/or other equipment with processing capacity. The method provided by the embodiment of the present disclosure may be completed by any one of the above devices, or may be completed by a plurality of devices together, which is not limited in the present disclosure.
Taking a server as an example, the track graph drawing method according to the embodiment of the present disclosure will be described below with reference to a flowchart of the track graph drawing method shown in fig. 1.
Step 101, the server receives a backward trajectory drawing request.
Wherein the backward trajectory drawing request may include at least one or more of: at least one target pollutant identification, target track point, backward track identification, and target time point.
The target pollutants may include fine Particulate Matter (PM) 2.5 ) Inhalable Particles (PM) 10 ) Sulfur dioxide (SO) 2 ) Nitrogen dioxide (NO) 2 ) Carbon monoxide (CO), ozone (O) 3 ). The embodiments of the present disclosure are not limited to specific target contaminants.
The target track point may be a geographical location coordinate of the target location for representing the termination location of the backward track graph.
The identification of the backward trace may be used to indicate the request type. When the server receives a request containing the identification of the backward track, the track graph drawing method provided by the embodiment of the disclosure can be executed.
The target time point may be used to represent the termination time of the backward trajectory graph.
In the embodiment of the present disclosure, the backward trace graph may be used to represent a transmission path and a concentration change condition of at least one target pollutant within a past preset time period.
The situation that the server receives the backward trajectory drawing request may include the following three situations:
firstly, a terminal sends a backward track drawing request triggered by a user to a server.
In one possible implementation, the user may set a target pollutant, a target location, and a target time point to be queried on the terminal, choose to draw a forward trace graph or a backward trace graph, and click on a confirmation query option on the terminal. And then, the terminal can integrate the parameters set by the user to generate a corresponding track drawing request, when the user inquires the backward track graph, the terminal generates the backward track drawing request, and sends the backward track drawing request to the server. In this case, the server may respond to the request of the terminal to satisfy the query requirement of the user.
Secondly, the terminal periodically sends a backward track drawing request to the server.
In a possible implementation manner, a user may preset a target pollutant and a target location to be queried on the terminal, and set a drawing backward trajectory diagram. And when the preset period is reached, the terminal can acquire the current time as a target time point, generate a backward trajectory drawing request according to the preset parameters and the current time, and send the backward trajectory drawing request to the server. In this case, the terminal may periodically update the backward trajectory diagram so that the user views the updated backward trajectory diagram in real time. The preset period may be set by a user, which is not limited in this disclosure.
Thirdly, when the preset trigger condition is reached, the terminal sends a backward track drawing request to the server.
Wherein the trigger condition may be that a contaminant concentration value of the at least one target contaminant exceeds a preset threshold value. The preset threshold may be set by a user, which is not limited in the embodiments of the present disclosure.
In one possible embodiment, the target site may be provided with a contaminant monitoring device, which may monitor the contaminant concentration at the target site. When the pollutant monitoring device monitors that the pollutant concentration value of one or more target pollutants exceeds a preset threshold value, a monitoring message carrying the geographic coordinates of a target location, the identification of at least one target pollutant and monitoring time can be sent to the terminal. When the terminal receives the monitoring message, the monitoring time can be used as a target time point, a backward track drawing request is generated according to the parameters carried by the monitoring message and the mark of the backward track, and the backward track drawing request is sent to the server. In this case, since the backward trace graph is a tracing source of the pollutant transmission trace in the past period, when the pollutant concentration value exceeds the threshold value, the terminal can display the backward trace graph of the target pollutant and warn the user, so that the user can judge the pollutant transmission contribution of the transmission trace passing through the region to the target site.
When the inquired target pollutants are multiple, the backward track drawing request sent by the terminal to the server may carry the identifiers of the multiple target pollutants, or the terminal may also send multiple backward track drawing requests to the server, wherein one backward track drawing request corresponds to one target pollutant. The embodiments of the present disclosure do not limit this.
When the server receives the backward trajectory drawing request sent by the terminal, the server may obtain information carried in the backward trajectory drawing request, and then execute the processing of step 102.
And step 102, the server determines a plurality of backward track point data according to the backward track drawing request.
Wherein the backward trajectory point data may comprise at least one or more of: position information of the trace points, a pollutant concentration value of at least one target pollutant, a wind speed vector and an arrival time.
The direction of the wind speed vector may be used to represent the wind direction and the magnitude of the wind speed vector may be used to represent the magnitude of the wind speed.
The arrival time can be used to represent the time at which the bolus of air arrives at the trace point.
In a possible implementation manner, after receiving the backward trajectory drawing request, the server may obtain information carried therein, that is, an identifier of at least one target pollutant, a target trajectory point, an identifier of the backward trajectory, and a target time point. The server can determine the backward track point data corresponding to the target track point according to the information, and further determine the rest backward track points according to the target track point.
Optionally, the server may determine track points at other positions in the backward track graph, and the corresponding processing may be as follows: according to the backward track drawing request, backward track point data corresponding to the target track point is obtained; and determining at least one backtracking backward track point data according to the backward track point data corresponding to the target track point.
The backtracking backward trace point can be predicted by the server, and the backtracking starts from the target trace point at a preset time interval and the position of the air mass. For example, the backward trajectory point may be the position where the air mass was located every 1 hour before the target trajectory point.
In one possible implementation, the server may obtain the pollutant concentration value of the target pollutant at the position and the wind speed vector at the position according to the position information of the target track point in the request. And integrating the obtained pollutant concentration value and the obtained wind speed vector of at least one target pollutant, and the target track point and the target time point in the request to obtain backward track point data corresponding to the corresponding target track point. Then, the server can predict the rest backward track points according to the backward track point data corresponding to the target track point.
Optionally, the server may determine a backward track point of the backtracking according to the wind speed vector, and the corresponding processing may be as follows: determining backtracking backward track points according to the target track points, the opposite vectors of the wind speed vectors of the target track points and a preset time interval, and acquiring backward track point data corresponding to the backtracking backward track points; and repeating the steps for each backward track point within a preset time period, and determining at least one backtracking backward track point data.
In a possible embodiment, after acquiring the wind speed vector on the target track point, the server may determine the wind power magnitude and the wind speed direction according to the wind speed vector, that is, the moving speed and the moving direction of the air mass at the position. Furthermore, the moving distance of the air mass after the preset time interval can be determined according to the wind power, and then the position of the track point in the front-back direction can be determined according to the opposite direction of the wind speed direction and the position of the target track point.
Illustratively, let the wind velocity vector of the target trajectory point be (u) 0 ,v 0 ) The wind speed vector has a direction, and the direction is the wind speed direction; by passingThe wind speed is calculated and obtained, the unit is m/s, and after 1 hour, the movement distance of the air mass is the wind speed multiplied by 3600, and the unit is m. According to the position of the target track pointAnd determining the position of the track point in the front and back direction by the position information, the opposite direction of the wind speed direction and the movement distance.
And then, the server determines the backward track point data corresponding to the backward track point and the corresponding previous backward track point for the determined backward track point based on the same method as the target track point. By analogy, the server can determine backward track point data of each backward track point in the next preset time period. For example, the preset time period may be 24 hours after the target time point, the preset time interval is 1 hour, and the set of backward trace points is P ═ P 0 ,P 1 ,...,P 22 ,P 23 }; the corresponding backward trajectory point data is: the component set U of the wind speed vector in the x-axis direction is equal to { U ═ U } 0 ,u 1 ,...,u 22 ,u 23 Y-axis direction, a set of components V ═ V 0 ,v 1 ,...,v 22 ,v 23 D, pollutant concentration value set D ═ D 0 ,d 1 ,...,d 22 ,d 23 }。
In the above process, the backward trajectory point data acquired by the server may be data stored in the server in advance, or may be data requested to be acquired from another device.
Optionally, the server may obtain the backward trajectory point data based on the ambient air quality value prediction mode, as shown in the flowchart of fig. 2 for obtaining the backward trajectory point data, the corresponding processing may be as follows:
The environmental air quality numerical prediction mode periodically performs environmental air quality numerical prediction and outputs prediction results of 10 days in the future, wherein the prediction results can be the simulated wind speed of each city and area at each time point, the prediction of concentration values of various pollutants and the like.
As shown in fig. 3, the environmental air quality numerical prediction mode mesh diagram divides each city and area into regular meshes according to geographic information, and determines a corresponding environmental air quality numerical prediction result for a vertex of each mesh. Each mesh is fixed in size (e.g., each square is 5 km long), and the index number of the vertex is (x, y), where x and y are integers.
In a possible embodiment, the backward trajectory point P to be acquired is ordered k Has a geographic position coordinate of (x) k ,y k ) And k is an integer of 0 or more. For any backward tracing point P k The server can determine the index number (i, j) of the vertex at the lower left corner of the target grid according to the geographical position coordinates of the backward track point by the following formula:
i=floor(i k ) (3)
j=floor(j k ) (4)
wherein x is k Is a backward tracing point P k Coordinate in the x-axis direction, y k Is a backward tracing point P k Coordinate in the direction of the y-axis, x min Is the coordinate of the grid point with index number (0,0) in the x-axis direction, y min Is the coordinate of the grid point whose index number is (0,0) in the y-axis direction. l x Unit length of the grid in the x-axis direction, l y Is the unit length of the grid in the y-axis direction. i all right angle k Is a backward tracing point P k Index number with decimal point, j, in the x-axis direction k Is a backward tracing point P k Index number with decimal point in y-axis direction.
floor is a down rounding function, i is the index number of the vertex at the lower left corner of the target grid in the x-axis direction, and j is the index number of the vertex at the lower left corner of the target grid in the y-axis direction.
As shown in the target mesh diagram of FIG. 4, the server may determine vertices based on the determined verticesConstructing a corresponding rectangular grid, wherein four vertexes of the grid are respectively lower left angular points R (i,j) Lower right corner point R (i+1,j) Top left corner point R (i,j+1) The upper right corner point R (i+1,j+1) The corner marks of each point are corresponding index numbers. And determining the grid as a target grid of the backward track point to be acquired in an environmental air quality numerical prediction mode.
Step 202, the server obtains wind speed vectors of all vertexes of the target grid at the current moment and pollutant concentration values of at least one target pollutant.
In a possible implementation manner, after the server determines the target mesh, the server may use an arrival time corresponding to the backward trajectory point as a current time, and obtain, in a prediction result output by the environmental air quality numerical prediction mode, a wind speed vector of each vertex of the target mesh and a pollutant concentration value of at least one target pollutant at the current time. For example, if the server calculates the rear track of the last 24 hours of the day 0 point, the day 0 point data, the previous day 23 point data, the previous day 22 point data, … …, the previous day 2 point data and the previous day 1 point data which are predicted by the environmental air quality numerical prediction mode are required.
As shown in the schematic diagram of the target mesh in fig. 4, the wind speed vector is divided into components in the directions of the x-axis and the y-axis, and then the data at each vertex of the target mesh may be: lower left corner R (i,j) Component u of the wind velocity vector in the x-axis direction (i,j) Component v in the y-axis direction (i,j) Concentration of contaminants d (i,j) (ii) a Lower right corner R (i+1,j) Component u of the wind velocity vector of (a) in the x-axis direction (i+1,j) Component v in the y-axis direction (i+1,j) Concentration value d of contaminants (i+1,j) (ii) a Upper left corner R (i,j+1) Component u of the wind velocity vector of (a) in the x-axis direction (i,j+1) Component v in the y-axis direction (i,j+1) Concentration value d of contaminants (i,j+1) (ii) a Upper right corner R (i+1,j+1) Component u of the wind velocity vector of (a) in the x-axis direction (i+1,j+1) Component v in the y-axis direction (i+1,j+1) Concentration value d of contaminants (i+1,j+1) 。
The pollutant concentration value in the data on the grid vertex is taken as an example of a target pollutant, and the rest pollutants are similar.
And step 203, the server determines the wind speed vector of the backward track point to be acquired according to the wind speed vector of each vertex of the target grid.
In a possible implementation manner, after acquiring the wind speed vectors at the vertices, the server may determine the distances between the backward trajectory point and the vertices, and then determine the wind speed vector on the backward trajectory point based on the wind speed vectors at the vertices and the determined distances.
Optionally, the server may determine the wind speed vector of the backward track point to be acquired according to the wind speed vector of each vertex of the target mesh based on a bilinear interpolation algorithm.
In one possible implementation, for the component in the x-axis direction, the server may calculate by the following formula:
u k1 =u (i,j) +(u (i+1,j) -u (i,j) )×(i k -i) (5)
u k2 =u (i,j+1) +(u (i+1,j+1) -u (i,j+1) )×(i k -i) (6)
u k =u k1 +(u k2 -u k1 )×(j k -j) (7)
wherein u is k1 The index numbers shown for FIG. 4 are (i) k Component of the wind velocity vector of the point of j) in the x-axis direction, u k2 Is shown in FIG. 4 as index numbers (i) k Component of the wind velocity vector at the point of j +1) in the x-axis direction, u k Is a backward tracing point P k The component of the wind velocity vector in the x-axis direction.
For the y-axis component, the server may calculate by the following formula:
v k1 =v (i,j) +(v (i+1,j) -v (i,J) )×(i k -i) (8)
v k2 =v (i,j+1) +(v (i+1,j+1) -v (i,j+1) )×(i k -i) (9)
v k =v k1 +(v k2 -v k1 )×(j k -j) (10)
wherein v is k1 The index numbers shown for FIG. 4 are (i) k The component of the wind velocity vector of the point of j) in the y-axis direction, v k2 The index numbers shown for FIG. 4 are (i) k Component of the wind velocity vector at the point of j +1) in the y-axis direction, v k Is a backward tracing point P k The component of the wind velocity vector in the y-axis direction.
Further, the server can determine the backward track point P to be acquired k Has a wind velocity vector of (u) k ,v k )。
And 204, the server determines the pollutant concentration value of at least one target pollutant of the backward tracing points to be acquired according to the pollutant concentration value of at least one target pollutant of each vertex of the target grid.
In a possible implementation manner, the server may determine the pollutant concentration value of the target pollutant on the backward trajectory point to be acquired according to the pollutant concentration value of any target pollutant at each vertex and the distance between the backward trajectory point to be acquired and each vertex, and the remaining pollutants are treated similarly.
Optionally, the server may determine, based on an algorithm of bilinear interpolation, a pollutant concentration value of at least one target pollutant of the backward trajectory points to be obtained according to a pollutant concentration value of the at least one target pollutant of each vertex of the target mesh.
In one possible embodiment, the server may calculate the contaminant concentration value for any target contaminant by the following formula:
d k1 =d (i,j) +(d (i+1,j) -d (i,j) )×(i k -i) (11)
d k2 =d (i,j+1) +(d (i+1,j+1) -d (i,j+1) )×(i k -i) (12)
d k =d k1 +(d k2 -d k1 )×(j k -j) (13)
wherein d is k1 The index numbers shown for FIG. 4 are (i) k D) concentration value of contaminant at point of j) k2 The index numbers shown for FIG. 4 are (i) k J +1) of the point, d k Is a backward tracing point P k The contaminant concentration value of (a).
For the target track point and other backward track points determined by the server, corresponding backward track point data can be obtained through the method in the steps 201 and 204. The method provided by the step 201 and the step 204 is linear operation, and compared with a lagrangian method of a HYSPLIT model, the method is simple in calculation, can improve the operation efficiency of the server, and realizes business operation.
Optionally, the server may supplement the backward trajectory points, so that the drawn backward trajectory graph is smoother, and the corresponding processing may be as follows: at least one supplementary backward trajectory point data is determined between adjacent backward trajectory points according to the adjacent backward trajectory points.
In a possible implementation manner, after the server determines each backward track point in step 102, the server may supplement the backward track point between adjacent backward track points through a preset supplement rule based on the corresponding backward track point data, and determine the corresponding backward track point data. The supplemental backward track points may be used to increase the density of the backward track points, which are referred to herein as encrypted track points.
Optionally, the server may determine a complementary backward track point according to a third-order bezier curve, and the corresponding processing may be as follows: constructing a corresponding third-order Bezier curve according to the adjacent backward track points, and determining at least one complementary backward track point on the third-order Bezier curve; and determining the pollutant concentration value of at least one target pollutant of at least one complementary backward tracing point according to the pollutant concentration value of at least one target pollutant of the adjacent backward tracing point.
In one possible embodiment, the adjacent backward path points are each designated by P k And P k+1 The server may construct a third order bezier curve by the following formula:
f(t)=P k ×(1-t) 3 +3×P t1 ×t×(1-t) 2 +3×P t2 ×t 2 ×(1-t)+P k+1 ×t 3 (16)
wherein, P t1 Is the first control point, P, of the third order Bessel curve t2 Is the second control point of the third-order Bezier curve, P k Is the starting point of the third-order Bessel curve, P k+1 The end point of the third order bezier curve. P k-1 Is P k Front and rear track points of (P) k+2 Is P k+1 The latter backward trace point.
In addition, since the backward track point of the starting position has no forward backward track point, when P is k When it is a backward tracing point of the starting position, P t1 Determined by the following equation:
since the backward track point of the termination position has no backward track point, when P is k+1 At the backward track point of the end position, P t2 Determined by the following equation:
as shown in the schematic diagram of the third-order bezier curve in fig. 5, the above f (t) is a function corresponding to the third-order bezier curve, where t is a value variable, and a value is between 0 and 1. Each determined value t mayAnd determining a point on the third-order Bezier curve, and taking each determined point as an encrypted track point except the starting point and the end point of the third-order Bezier curve. For example, the value interval of t is set to 0.1, the values are sequentially set to 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9 and 1, the values are respectively substituted into the function f (t), and the encrypted trace point P is calculated k,0 、P k,1 、P k,2 、P k,3 、P k,4 、P k,5 、P k,6 、P k,7 、P k,8 、P k,9 、P k,10 In which P is k,0 And P k Same, P k,10 And P k+1 The same, there are 9 encryption track points in the middle of every adjacent backward track point of group like this, and every track point of group has 11 track points altogether. The sets of traces are shown in table 1 below:
TABLE 1 track point combination
Serial number | Starting point | Encrypted tracing point | Endpoint |
Group 0 | P 0 (P 0,0 ) | P 0,1 P 0,2 P 0,3 P 0,4 P 0,5 P 0,6 P 0,7 P 0,8 P 0,9 | P 1 (P 0,10 ) |
Group 1 | P 1 (P 1,0 ) | P 1,1 P 1,2 P 1,3 P 1,4 P 1,5 P 1,6 P 1,7 P 1,8 P 1,9 | P 2 (P 1,10 ) |
Group 2 | P 2 (P 2,0 ) | P 2,1 P 2,2 P 2,3 P 2,4 P 2,5 P 2,6 P 2,7 P 2.8 P 2,9 | P 3 (P 2,10 ) |
… | … | … | … |
Group 21 | P 21 (P 21,0 ) | P 21,1 P 21,2 P 21,3 P 21,4 P 21,5 P 21,6 P 21,7 P 21,8 P 21,9 | P 22 (P 21,10 ) |
Group 22 | P 22 (P 22,0 ) | P 22,1 P 22,2 P 22,3 P 22,4 P 22,5 P 22,6 P 22,7 P 22,8 P 22,9 | P 23 (P 22,10 ) |
After each group of track points is determined, the server can determine the distance between the encryption track point and the starting point of the group for any encryption track point, and further determine the pollutant concentration value of at least one target pollutant corresponding to the encryption track point based on the pollutant concentration values of the starting point and the end point and the determined distance.
In addition, the wind speed vector on the encrypted track point can also be determined based on the same method as the method for determining the pollutant concentration value, and the details are not repeated here.
Optionally, the server may determine the pollutant concentration value of the at least one target pollutant of the at least one supplementary backward trajectory point according to the pollutant concentration value of the at least one target pollutant of the adjacent backward trajectory points based on a linear interpolation algorithm.
In one possible embodiment, for any one of the above-mentioned sets of track points, the server may determine the sum of the distances between each two adjacent track points, i.e. the length of the third-order bezier curve between the start point and the end point of the set, by the following formula:
wherein s is the sum of the distances of the kth group of track points, N +2 is the sum of the number of the group of track points, the value range of N is a positive integer larger than 0, and N is any integer from 0 to N. x is the number of k,n Is a track point P k,n Coordinate in the x-axis direction, y k,n Is a track point P k,n Coordinates in the y-axis direction.
Then, the server may determine the distance between each encrypted trace point and the starting point in the set of trace points by the following formula:
wherein s is m For encrypting trace points P in the kth set of trace points k,m And the starting point P k,0 M is a positive integer from 1 to N.
The server may then determine a contaminant concentration value on each encrypted trace point in the set of trace points by:
wherein d is k,m For encrypting trace points P in the kth set of trace points k,m Concentration value of contaminants of d k Is the starting point P of the k-th group k,0 (i.e. P) k ) Concentration value of contaminants of d k+1 Is the end point P of the k-th group k,N+1 (i.e. P) k+1 ) The contaminant concentration value of (a).
Supplement to the track point after through three-order Bessel curve, can improve the smoothness degree of curve when drawing the back trajectory graph, conveniently demonstrate on the map, do not influence the bandwagon effect when the map is zoomed.
And 103, drawing a backward track graph by the server according to the plurality of backward track point data.
In a possible embodiment, after the server determines the plurality of backward track points by using the above-described method, each backward track point may be wired according to the sequence of the arrival time of each backward track point, and the wired line is a corresponding backward track. Meanwhile, the server can also display the target pollutant concentration value on each backward track point in a preset display mode, for example, as shown in the backward track schematic diagram of fig. 6, the corresponding target pollutant concentration value can be displayed in a text mode on each backward track point. That is, the backward trajectory graph drawn by the server can simultaneously represent the backward trajectory of the target pollutant and the concentration value of the target pollutant on each backward trajectory point. Further, the server may transmit the corresponding backward trajectory graph to the terminal corresponding to the backward trajectory drawing request in step 101.
For the case that the queried target pollutants are multiple, such as the backward trajectory diagram shown in fig. 7, the server may draw a backward trajectory diagram, where the concentration change conditions of the multiple target pollutants are simultaneously characterized; the server may also plot a plurality of backward traces, wherein one backward trace represents a change in concentration of a target contaminant. This embodiment does not limit this. When the terminal receives a plurality of backward trajectory diagrams, the plurality of backward trajectory diagrams can be displayed at the same time, or at least one backward trajectory diagram can be displayed based on the selection of the user.
Optionally, the server may use the target track point as an end position, and draw the backward track graph according to the backward track point data corresponding to the target track point and the at least one backtraced backward track point data.
In a possible embodiment, when the backward trajectory drawing request includes the target trajectory point, since each backward trajectory point is predicted based on the next backward trajectory point, the server may draw the backward trajectory diagram with the target trajectory point as the end position of the backward trajectory in the prediction order of each backward trajectory point. The drawing manner is the same as the above, and is not described herein again.
Optionally, after determining the supplemented backward trajectory point data, the server may use the target trajectory point as an end position, and draw a backward trajectory graph according to the backward trajectory point data corresponding to the target trajectory point, the at least one backtraced backward trajectory point data, and the at least one supplemented backward trajectory point data.
In a possible implementation manner, when the server supplements the backward track points by the method described above, a backward track graph can be drawn according to the backward track point data of each track point based on the drawing manner similar to the above, and details are not repeated here.
Optionally, the server may characterize the contaminant concentration value by color, and the corresponding processing may be as follows: determining the color of each backward track point according to the pollutant concentration value of at least one target pollutant in the plurality of backward track point data; and rendering according to the color of each backward track point, and drawing a backward track graph.
Wherein the color of each backward trace point can be used to represent a contaminant concentration value of at least one target contaminant.
In one possible implementation, the technician may set a correspondence relationship between the color and the pollutant concentration value in advance, for example, the correspondence relationship may be a legend corresponding to the color and the pollutant concentration value as shown in fig. 8. The server may store a correspondence between the color and the pollutant concentration value, and when the backward trajectory diagram is drawn, the server may determine, according to the correspondence, a color corresponding to the pollutant concentration value of the target pollutant in each backward trajectory point, that is, determine a color corresponding to each backward trajectory point. Further, the server may render the backward trajectory based on the color corresponding to each backward trajectory point, resulting in a backward trajectory graph as shown in fig. 9.
Alternatively, the server may draw an arrow on each backward trajectory point of the backward trajectory graph.
The direction of the arrow may be used to indicate the wind direction, and the size of the arrow may be proportional to the wind speed.
When the backward locus diagram is drawn, the pointing direction of the arrow can be determined based on the direction of the wind speed vector, the size of the arrow can be determined based on the size of the wind speed vector, and corresponding drawing is performed in the backward locus diagram.
Through the drawing mode of the colors and/or the arrows, the backward trajectory graph drawn by the server can enable a user to know the transmission process and the air quality condition in the transmission process in one graph, and the information obtaining efficiency of the user is improved; moreover, the information is displayed in a concise mode by the drawing modes of the colors and/or the arrows, so that the user can conveniently check the information, and the display effect of the backward track graph is improved.
In the embodiment of the disclosure, after receiving the backward trajectory drawing request, the server determines a plurality of backward trajectory point data according to the backward trajectory drawing request, and then draws a backward trajectory graph according to the plurality of backward trajectory point data. Since the backward trace point data includes the pollutant concentration value of the target pollutant, the backward trace graph can be used for representing the transmission path and the concentration change condition of the target pollutant in the past preset time period. Through the locus diagram drawing method provided by the embodiment of the disclosure, the backward locus diagram drawn by the server can intuitively show the concentration change condition of the target pollutant in the transmission path, and is not limited to the connecting line of the locus points, so that the efficiency of checking the air quality pollution condition can be improved by the embodiment of the disclosure.
The embodiment of the disclosure provides a track map drawing device, which is used for realizing the track map drawing method. A schematic block diagram of a trajectory mapping apparatus as shown in fig. 10, the apparatus comprising:
a receiving module 1001, configured to receive a backward trajectory drawing request, where the backward trajectory drawing request includes an identifier of at least one target pollutant;
a determining module 1002, configured to determine, according to the backward trajectory drawing request, a plurality of backward trajectory point data, where the backward trajectory point data includes a pollutant concentration value of at least one target pollutant;
and a drawing module 1003, configured to draw a backward trajectory graph according to the multiple backward trajectory point data, where the backward trajectory graph is used to represent a transmission path and a concentration change condition of the at least one target pollutant in a past preset time period.
Optionally, the backward trajectory drawing request further includes a target trajectory point;
the determining module 1002 is configured to: acquiring backward track point data corresponding to the target track point according to the backward track drawing request; determining at least one backtracking backward track point data according to the backward track point data corresponding to the target track point;
the rendering module 1003 is configured to: and taking the target track point as an end position, and drawing a backward track graph according to backward track point data corresponding to the target track point and at least one backtraced backward track point data.
Optionally, the backward track point data further includes a wind speed vector;
the determining module 1002 is configured to:
determining backtracking backward track points according to the target track points, the opposite vectors of the wind speed vectors of the target track points and a preset time interval, and acquiring backward track point data corresponding to the backtracking backward track points;
and repeating the steps for each backward track point within a preset time period, and determining at least one backtracked backward track point data.
Optionally, the determining module 1002 is configured to:
determining a target grid of the backward track points to be acquired in an environmental air quality numerical prediction mode;
acquiring a wind speed vector of each vertex of a target grid at the current moment and a pollutant concentration value of at least one target pollutant;
determining the wind speed vector of the backward track point to be acquired according to the wind speed vectors of all the vertexes of the target grid;
and determining the pollutant concentration value of at least one target pollutant of the backward tracing points to be acquired according to the pollutant concentration value of at least one target pollutant of each vertex of the target grid.
Optionally, the determining module 1002 is configured to:
based on a bilinear interpolation algorithm, determining a wind speed vector of a backward track point to be acquired according to the wind speed vector of each vertex of the target grid;
and determining the pollutant concentration value of at least one target pollutant of the backward track points to be acquired according to the pollutant concentration value of at least one target pollutant of each vertex of the target grid based on a bilinear interpolation algorithm.
Optionally, the determining module 1002 is further configured to: determining at least one supplementary backward trajectory point data between adjacent backward trajectory points according to the adjacent backward trajectory points;
the rendering module 1003 is configured to: and taking the target track point as an end position, and drawing a backward track graph according to backward track point data corresponding to the target track point, at least one backtracking backward track point data and at least one supplementary backward track point data.
Optionally, the determining module 1002 is configured to:
constructing a corresponding third-order Bezier curve according to the adjacent backward track points, and determining at least one complementary backward track point on the third-order Bezier curve;
and determining the pollutant concentration value of at least one target pollutant of at least one complementary backward tracing point according to the pollutant concentration value of at least one target pollutant of the adjacent backward tracing point.
Optionally, the determining module 1002 is configured to:
and determining the pollutant concentration value of at least one target pollutant of at least one supplemented backward track point according to the pollutant concentration value of at least one target pollutant of the adjacent backward track points on the basis of a linear interpolation algorithm.
Optionally, the rendering module 1003 is configured to:
determining the color of each backward track point according to the pollutant concentration value of at least one target pollutant in the plurality of backward track point data, wherein the color of each backward track point is used for expressing the pollutant concentration value of at least one target pollutant;
and rendering according to the color of each backward track point, and drawing a backward track graph.
Optionally, the rendering module 1003 is further configured to:
and drawing an arrow on each backward track point of the backward track graph, wherein the pointing direction of the arrow is used for indicating the wind direction, and the size of the arrow is proportional to the size of the wind speed.
In the embodiment of the disclosure, after the backward trajectory drawing request is received, a plurality of backward trajectory point data are determined according to the backward trajectory drawing request, and then a backward trajectory graph is drawn according to the plurality of backward trajectory point data. Since the backward trace point data includes the pollutant concentration value of the target pollutant, the backward trace graph can be used for representing the transmission path and the concentration change condition of the target pollutant in the past preset time period. Through the trace graph drawing method provided by the embodiment of the disclosure, the drawn backward trace graph can intuitively show the concentration change condition of the target pollutant in the transmission path, and is not limited to the connecting line of the trace points, so that the efficiency of checking the air quality pollution condition can be improved by the embodiment of the disclosure.
An exemplary embodiment of the present disclosure also provides an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor. The memory stores a computer program executable by the at least one processor, the computer program, when executed by the at least one processor, is for causing the electronic device to perform a method according to an embodiment of the disclosure.
The disclosed exemplary embodiments also provide a non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is adapted to cause the computer to perform a method according to an embodiment of the present disclosure.
The exemplary embodiments of the present disclosure also provide a computer program product comprising a computer program, wherein the computer program, when executed by a processor of a computer, is adapted to cause the computer to perform a method according to an embodiment of the present disclosure.
Referring to fig. 11, a block diagram of a structure of an electronic device 1100, which may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic device is intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 11, the electronic device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)1102 or a computer program loaded from a storage unit 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data necessary for the operation of the device 1100 may also be stored. The calculation unit 1101, the ROM 1102, and the RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
A number of components in electronic device 1100 connect to I/O interface 1105, including: an input unit 1106, an output unit 1107, a storage unit 1108, and a communication unit 1109. The input unit 1106 may be any type of device capable of inputting information to the electronic device 1100, and the input unit 1106 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device. Output unit 1107 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 1104 may include, but is not limited to, a magnetic disk, an optical disk. The communication unit 1109 allows the electronic device 1100 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.
The computing unit 1101 can be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 1101 performs the respective methods and processes described above. For example, in some embodiments, the trajectory mapping method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 1108. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 1100 via the ROM 1102 and/or the communication unit 1109. In some embodiments, the computing unit 1101 may be configured to perform the trackmap rendering method in any other suitable manner (e.g., by means of firmware).
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
Claims (14)
1. A method for tracing, the method comprising:
when the pollutant concentration value of at least one target pollutant exceeds a preset threshold value, receiving a backward trajectory drawing request, wherein the backward trajectory drawing request comprises an identifier of the at least one target pollutant;
determining a plurality of backward track point data according to the backward track drawing request, wherein the backward track point data comprises a pollutant concentration value of the at least one target pollutant and position information of backward track points;
drawing a backward trace graph according to the plurality of backward trace point data, wherein the backward trace graph is used for representing the transmission path and the concentration change condition of the at least one target pollutant in a past preset time period;
the method for acquiring the backward track point data comprises the following steps:
determining a target grid of the backward track points to be acquired in an environmental air quality numerical prediction mode;
acquiring wind speed vectors of all vertexes of the target grid at the current moment and a pollutant concentration value of the at least one target pollutant;
determining the wind speed vector of the backward track point to be acquired according to the wind speed vector of each vertex of the target grid;
and determining the pollutant concentration value of the at least one target pollutant of the backward tracing point to be acquired according to the pollutant concentration value of the at least one target pollutant of each vertex of the target grid.
2. The trajectory diagram drawing method according to claim 1, wherein the backward trajectory drawing request further includes a target trajectory point;
determining a plurality of backward trajectory point data according to the backward trajectory drawing request, including:
acquiring backward track point data corresponding to the target track point according to the backward track drawing request;
determining at least one backtracking backward track point data according to the backward track point data corresponding to the target track point;
the drawing of the backward track graph according to the plurality of backward track point data comprises the following steps:
and taking the target track point as an end position, and drawing a backward track graph according to backward track point data corresponding to the target track point and the at least one backtraced backward track point data.
3. The trajectory drawing method according to claim 2, wherein the backward trajectory point data further includes a wind speed vector;
the step of determining at least one backtracking backward track point data according to the backward track point data corresponding to the target track point comprises the following steps:
determining backtracking backward track points according to the target track points, the opposite vectors of the wind speed vectors of the target track points and a preset time interval, and acquiring backward track point data corresponding to the backtracking backward track points;
and repeating the steps for each backward track point in the preset time period, and determining at least one backtracking backward track point data.
4. The method for drawing the trajectory graph according to claim 1, wherein the determining the wind speed vector of the backward trajectory point to be acquired according to the wind speed vector of each vertex of the target mesh includes:
determining the wind speed vector of the backward track point to be acquired according to the wind speed vector of each vertex of the target grid based on a bilinear interpolation algorithm;
the determining the pollutant concentration value of the at least one target pollutant of the backward trajectory point to be obtained according to the pollutant concentration value of the at least one target pollutant of each vertex of the target grid comprises:
and determining the pollutant concentration value of the at least one target pollutant of the backward trace point to be obtained according to the pollutant concentration value of the at least one target pollutant of each vertex of the target grid based on a bilinear interpolation algorithm.
5. The method of tracing according to claim 2, said method further comprising:
determining at least one supplementary backward track point data between adjacent backward track points according to the adjacent backward track points;
the drawing of the backward track graph according to the plurality of backward track point data comprises the following steps:
and taking the target track point as a termination position, and drawing a backward track graph according to backward track point data corresponding to the target track point, the at least one retrospective backward track point data and the at least one supplemented backward track point data.
6. The method of trajectory mapping according to claim 5, wherein said determining at least one complementary backward trajectory point data between adjacent backward trajectory points from said adjacent backward trajectory points comprises:
constructing a corresponding third-order Bezier curve according to adjacent backward track points, and determining at least one complementary backward track point on the third-order Bezier curve;
and determining the pollutant concentration value of the at least one target pollutant of the at least one additional rearward trajectory point according to the pollutant concentration value of the at least one target pollutant of the adjacent rearward trajectory point.
7. The trajectory mapping method of claim 6, wherein determining the contaminant concentration value of the at least one target contaminant of the at least one complementary rearward trajectory point from the contaminant concentration value of the at least one target contaminant of the adjacent rearward trajectory point comprises:
and determining the pollutant concentration value of the at least one target pollutant of the at least one supplementary backward track point according to the pollutant concentration value of the at least one target pollutant of the adjacent backward track points based on a linear interpolation algorithm.
8. The method as claimed in claim 1, wherein said drawing a backward trajectory graph according to said plurality of backward trajectory point data comprises:
determining the color of each backward trajectory point according to the pollutant concentration value of the at least one target pollutant in the backward trajectory point data, wherein the color of each backward trajectory point is used for expressing the pollutant concentration value of the at least one target pollutant;
and rendering according to the color of each backward track point, and drawing a backward track graph.
9. The method of tracing according to claim 1, said method further comprising:
and drawing an arrow on each backward track point of the backward track graph, wherein the pointing direction of the arrow is used for representing the wind direction, and the size of the arrow is proportional to the size of the wind speed.
10. A trajectory mapping apparatus, the apparatus comprising:
the device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a backward trajectory drawing request when the pollutant concentration value of at least one target pollutant exceeds a preset threshold value, and the backward trajectory drawing request comprises an identifier of the at least one target pollutant;
the determining module is used for determining a plurality of backward track point data according to the backward track drawing request, wherein the backward track point data comprises a pollutant concentration value of the at least one target pollutant and position information of backward track points;
the drawing module is used for drawing a backward track graph according to the plurality of backward track point data, and the backward track graph is used for representing the transmission path and the concentration change condition of the at least one target pollutant in a past preset time period;
wherein the determination module is to:
determining a target grid of the backward track points to be acquired in an environmental air quality numerical prediction mode;
acquiring wind speed vectors of all vertexes of the target grid at the current moment and a pollutant concentration value of the at least one target pollutant;
determining the wind speed vector of the backward track point to be acquired according to the wind speed vector of each vertex of the target grid;
and determining the pollutant concentration value of the at least one target pollutant of the backward tracing point to be acquired according to the pollutant concentration value of the at least one target pollutant of each vertex of the target grid.
11. The apparatus according to claim 10, wherein the backward trajectory drawing request further includes a target trajectory point;
the determination module is to: acquiring backward track point data corresponding to the target track point according to the backward track drawing request; determining at least one backtracking backward track point data according to the backward track point data corresponding to the target track point;
the rendering module is to: and taking the target track point as a termination position, and drawing a backward track graph according to backward track point data corresponding to the target track point and the backward track point data traced back by the at least one backtrack.
12. The apparatus of claim 10, wherein the rendering module is configured to:
determining the color of each backward trajectory point according to the pollutant concentration value of the at least one target pollutant in the plurality of backward trajectory point data, wherein the color of each backward trajectory point is used for expressing the pollutant concentration value of the at least one target pollutant;
and rendering according to the color of each backward track point, and drawing a backward track graph.
13. An electronic device, comprising:
a processor; and
a memory for storing a program, wherein the program is stored in the memory,
wherein the program comprises instructions which, when executed by the processor, cause the processor to carry out the method according to any one of claims 1-9.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111050726.2A CN113763509B (en) | 2021-09-08 | 2021-09-08 | Trace graph drawing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111050726.2A CN113763509B (en) | 2021-09-08 | 2021-09-08 | Trace graph drawing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113763509A CN113763509A (en) | 2021-12-07 |
CN113763509B true CN113763509B (en) | 2022-09-02 |
Family
ID=78794032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111050726.2A Active CN113763509B (en) | 2021-09-08 | 2021-09-08 | Trace graph drawing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113763509B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117541461B (en) * | 2024-01-10 | 2024-05-10 | 广州中望龙腾软件股份有限公司 | Arc scaling drawing method, device, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111611296A (en) * | 2020-05-20 | 2020-09-01 | 中科三清科技有限公司 | PM2.5Pollution cause analysis method and device, electronic equipment and storage medium |
WO2020261238A1 (en) * | 2019-06-28 | 2020-12-30 | Satavia Limited | System and method for generating an aircraft flight trajectory |
CN113009086A (en) * | 2021-03-08 | 2021-06-22 | 重庆邮电大学 | Method for exploring urban atmospheric pollutant source based on backward trajectory mode |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120271561A1 (en) * | 2011-04-22 | 2012-10-25 | Andrew Keller-Goralczyk | System and method for aircraft pollution accountability and compliance tracking |
CN104702685B (en) * | 2015-03-11 | 2018-02-02 | 中山大学 | Pollution sources method for tracing and its system based on back trajectca-rles |
CN104680021A (en) * | 2015-03-11 | 2015-06-03 | 广州旭诚信息科技有限公司 | Method and system for solving backward trajectory of pollutant |
IL249780B (en) * | 2016-12-26 | 2020-08-31 | Wolfson Noah | System and method for predicting presence of hazardous airborne materials in a region to be protected |
CN111612064B (en) * | 2020-05-20 | 2021-02-19 | 中科三清科技有限公司 | PM2.5Method and device for tracing pollution air mass, electronic equipment and storage medium |
CN111753906B (en) * | 2020-06-24 | 2021-01-26 | 中科三清科技有限公司 | Method and device for clustering pollutant transmission tracks, electronic equipment and storage medium |
CN112102433B (en) * | 2020-09-17 | 2021-06-01 | 中科三清科技有限公司 | Method and device for drawing vertical distribution map of air pollutants and storage medium |
CN112988940A (en) * | 2021-04-02 | 2021-06-18 | 中科三清科技有限公司 | Pollution tracing method and device |
-
2021
- 2021-09-08 CN CN202111050726.2A patent/CN113763509B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020261238A1 (en) * | 2019-06-28 | 2020-12-30 | Satavia Limited | System and method for generating an aircraft flight trajectory |
CN111611296A (en) * | 2020-05-20 | 2020-09-01 | 中科三清科技有限公司 | PM2.5Pollution cause analysis method and device, electronic equipment and storage medium |
CN113009086A (en) * | 2021-03-08 | 2021-06-22 | 重庆邮电大学 | Method for exploring urban atmospheric pollutant source based on backward trajectory mode |
Also Published As
Publication number | Publication date |
---|---|
CN113763509A (en) | 2021-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6516025B2 (en) | Information processing method and information processing apparatus | |
CN113763509B (en) | Trace graph drawing method and device | |
US20170323194A1 (en) | Path determination using robust optimization | |
CN111767361A (en) | GIS application based on Bezier curve algorithm | |
US10593075B2 (en) | Visualizing linear assets using client-side processing | |
Broucke et al. | Visualization of real-time heterogeneous smart city data using virtual reality | |
CN111881930A (en) | Thermodynamic diagram generation method and device, storage medium and equipment | |
CN112990604B (en) | Computer-implemented method and computing device for reducing gas emissions | |
CN113283680A (en) | Address selection method, device, equipment and storage medium thereof | |
CN115640694A (en) | Fire-fighting digital twin system, method for deducing fire-fighting plan and related equipment | |
CN109711035A (en) | City model construction method and device | |
CN111046516B (en) | Three-dimensional layout method and device for complex network topology and storage equipment | |
CN113763510B (en) | Trace graph drawing method and forward-direction trace graph drawing device | |
CN114417075A (en) | Method, device, medium and equipment for establishing way-finding grid data index | |
CN110795554A (en) | Target information analysis method, device, equipment and storage medium | |
CN117523128A (en) | Three-dimensional modeling method and system for realizing city information based on big data | |
CN112100306A (en) | Air quality drop area forecast map drawing method and device and storage medium | |
CN109493423B (en) | Method and device for calculating midpoint positions of two points on surface of three-dimensional earth model | |
CN117094242A (en) | Concentration prediction method, concentration prediction device, electronic device, and computer-readable storage medium | |
CN114048279A (en) | Method and device for generating forecast information | |
CN114266876B (en) | Positioning method, visual map generation method and device | |
CN114443787B (en) | Atmospheric pollution characteristic identification method and device | |
CN113643066A (en) | Passenger flow inference model training method and passenger flow inference method and device | |
CN114241157A (en) | Air quality visual display method, device and equipment | |
CN113012555B (en) | Map display method, map display device, electronic equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |