CN112611843A - Air quality monitoring and displaying method and device, electronic equipment and storage medium - Google Patents

Air quality monitoring and displaying method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112611843A
CN112611843A CN202011540844.7A CN202011540844A CN112611843A CN 112611843 A CN112611843 A CN 112611843A CN 202011540844 A CN202011540844 A CN 202011540844A CN 112611843 A CN112611843 A CN 112611843A
Authority
CN
China
Prior art keywords
air quality
quality data
monitoring
data
corrected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011540844.7A
Other languages
Chinese (zh)
Inventor
陈生园
马瑞
卓流艺
秦东明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
3Clear Technology Co Ltd
Original Assignee
3Clear Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 3Clear Technology Co Ltd filed Critical 3Clear Technology Co Ltd
Priority to CN202011540844.7A priority Critical patent/CN112611843A/en
Publication of CN112611843A publication Critical patent/CN112611843A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • G01N33/0009General constructional details of gas analysers, e.g. portable test equipment
    • G01N33/0062General constructional details of gas analysers, e.g. portable test equipment concerning the measuring method, e.g. intermittent, or the display, e.g. digital
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • G01N33/0009General constructional details of gas analysers, e.g. portable test equipment
    • G01N33/0073Control unit therefor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • G01N33/0009General constructional details of gas analysers, e.g. portable test equipment
    • G01N33/0073Control unit therefor
    • G01N33/0075Control unit therefor for multiple spatially distributed sensors, e.g. for environmental monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Abstract

The invention discloses a method and a device for monitoring and displaying air quality, electronic equipment and a storage medium, wherein the method comprises the following steps: dividing monitoring regions into grids in a one-street one-station mode; establishing a self-established monitoring station in the grid; acquiring first air quality data monitored by at least one nationally owned monitoring station near the grid and second air quality data monitored by the self-built monitoring station; correcting the second air quality data according to the first air quality data; and drawing an air quality rendering graph of a corresponding region according to the corrected second air quality data. The invention solves the problems that in the prior art, monitoring data are inaccurate due to low density of monitoring sites in air quality monitoring and displaying, and the air quality cannot be intuitively reflected due to the fact that the air quality is displayed only in a monochrome rendering mode. The invention realizes accurate acquisition of air quality data and draws the rendering map according to the grade gradient color.

Description

Air quality monitoring and displaying method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of atmospheric environment, in particular to a method and a device for monitoring air quality, electronic equipment and a storage medium.
Background
With the development of times, various industries in China are rapidly developed, but a lot of environmental problems are brought, particularly the problem of air quality is serious, and the air quality monitoring method has bad influence on the health of people in China, so that the air quality monitoring method is more and more important.
At present, most of monitoring of air quality is realized by a state monitoring station or a self-built monitoring station aiming at a certain area. The data of the national monitoring stations are accurate and reliable, but the density of the monitoring stations is low, and the covered area is small. Self-building stations are limited by the accuracy of the monitoring equipment and the cost resulting in insufficient accuracy of the data. The traditional rendering graph output by air quality monitoring usually adopts one color bar (color bar) set at each grade or gradient color set at one interval, generally, one rendering graph can only be set by one color bar scene, the form is single, and different graphs are difficult to generate according to different grade standards and different modes.
Aiming at the problems that monitoring data are inaccurate due to low density of monitoring sites and air quality cannot be intuitively reflected due to the fact that the air quality is displayed only in a monochrome rendering mode in the prior art, an effective solution is not provided.
Disclosure of Invention
In view of this, embodiments of the present invention provide an air quality monitoring and displaying method, an air quality monitoring and displaying device, an electronic device, and a storage medium, so as to solve the problems in the prior art that monitoring data is inaccurate due to low density of monitoring sites in air quality monitoring and displaying, and air quality cannot be intuitively reflected due to the fact that air quality is displayed only in a monochrome rendering manner
Therefore, the embodiment of the invention provides the following technical scheme:
in a first aspect of the present invention, a method for monitoring and displaying air quality is provided, which includes:
dividing monitoring regions into grids in a one-street one-station mode;
establishing a self-established monitoring station in the grid;
acquiring first air quality data monitored by at least one nationally owned monitoring station near the grid and second air quality data monitored by the self-built monitoring station;
correcting the second air quality data according to the first air quality data;
and drawing an air quality rendering graph of a corresponding region according to the corrected second air quality data.
Optionally, the second air quality data is corrected according to the first air quality data, the method further comprising:
reading the first air quality data and the second air quality data;
fitting the first air quality data and the second air quality data to obtain a relational expression of the first air quality data and the second air quality data;
compensating the second air quality data according to the relational expression.
Optionally, an air quality rendering map of a corresponding region is drawn according to the corrected second air quality data, and the method further includes:
acquiring a color index corresponding to the corrected second air quality data;
acquiring a color corresponding to the corrected second air quality data according to the color index;
wherein the color index corresponding to the corrected second air quality data is obtained by the following formula:
cIndex=((V–Nmin)/(Nmax–Nmin))*CLength;
wherein, cndex represents a color index, V represents the corrected second air quality data, Nmin represents the minimum value of the dye concentration data, Nmax represents the maximum value of the dye concentration data, and CLength represents the number of colors of the rendering legend of the environmental pollution.
Optionally, drawing an air quality rendering map of a corresponding region according to the corrected second air quality data further includes:
determining a designated air quality grade according to the second air quality data by using a preset mapping library; searching a designated color bar corresponding to the second air quality data in a plurality of gradient color bars included in the designated air quality grade to draw an air quality rendering graph;
the preset mapping library is preset through the following steps:
setting air quality grade according to the air quality data;
calling a matplotlib open source drawing library to generate a graded color bar for each air quality grade;
setting a gradient number for the color bar corresponding to each air quality grade;
calling a matplotlib open source drawing library to generate a gradient color bar of each air quality grade;
different air quality data within an air quality class are represented by graded gradient color bars.
Optionally, the method further comprises:
and rendering the air quality interpolation graph, the air quality dot graph, the air quality histogram and/or the air quality line graph according to the graded gradually-changing color bars to obtain an air quality rendering graph.
In a second aspect of the present invention, an air quality monitoring and displaying device is provided, which comprises:
the division module is used for dividing the monitoring region into grids according to a one-street one-station mode;
the establishing module is used for establishing a self-established monitoring station in the grid;
the acquisition module is used for acquiring first air quality data monitored by at least one nationwide monitoring station near the grid and second air quality data monitored by the self-built monitoring station;
a correction module for correcting the second air quality data according to the first air quality data;
and the drawing module is used for drawing an air quality rendering map of a corresponding region according to the corrected second air quality data.
Optionally, the correction module includes:
a reading unit for reading the first air quality data and the second air quality data;
the fitting unit is used for fitting the first air quality data and the second air quality data to obtain a relational expression of the first air quality data and the second air quality data;
and the compensation unit is used for compensating the second air quality data according to the relational expression.
Optionally, the rendering module further includes, before:
a first acquiring unit configured to acquire a color index corresponding to the corrected second air quality data;
a second acquiring unit configured to acquire a color corresponding to the corrected second air quality data according to the color index;
wherein the color index corresponding to the corrected second air quality data is obtained by the following formula:
cIndex=((V–Nmin)/(Nmax–Nmin))*CLength;
wherein, cndex represents a color index, V represents the corrected second air quality data, Nmin represents the minimum value of the dye concentration data, Nmax represents the maximum value of the dye concentration data, and CLength represents the number of colors of the rendering legend of the environmental pollution.
In a third aspect of the present invention, there is provided an electronic device comprising:
an electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of any one of the first aspects.
In a fourth aspect of the present invention, there is provided a computer-readable storage medium comprising:
a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, carry out the steps of the method of any of the first aspects above.
The technical scheme of the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method and a device for monitoring and displaying air quality, electronic equipment and a storage medium, wherein the method comprises the following steps: dividing monitoring regions into grids in a one-street one-station mode; establishing a self-established monitoring station in the grid; acquiring first air quality data monitored by at least one nationally owned monitoring station near the grid and second air quality data monitored by the self-built monitoring station; correcting the second air quality data according to the first air quality data; and drawing an air quality rendering graph of a corresponding region according to the corrected second air quality data. The problem of among the prior art air quality monitoring and show because the density of monitoring the website is low, lead to the monitoring data inaccurate to and only adopt the mode of monochromatic rendering to show air quality, lead to can not carrying out visual reflection to air quality is solved. The embodiment of the invention realizes accurate acquisition of air quality data, air quality grade and flexible setting of corresponding colors, and simultaneously supports drawing of rendering graphs according to grade single color and grade gradient color, and also supports multiple time scales (hour, day average, year average, time interval) and multiple elements (AQI and PM)2.5、PM10、SO2、CO、NO2、O3) Rendering the rendering graph.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a method of air quality monitoring and display according to an embodiment of the present invention;
FIG. 2 is a block diagram of an air quality monitoring and display device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of an air quality monitoring and display electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
In accordance with an embodiment of the present invention, there is provided an air quality monitoring and display method embodiment, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that illustrated herein.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In this embodiment, an air quality monitoring and displaying method is provided, which can be used in an environmental pollutant monitoring system, such as an air pollutant monitoring system, fig. 1 is a flowchart of the air quality monitoring and displaying method according to the embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
and S101, dividing the monitoring region into grids according to a one-street one-station mode. Specifically, the one-street one-station grid air monitoring system is a grid air monitoring system covering all streets, and the system is firstly applied to Shenzhen monitoring PM of each street2.5In this way, the monitoring range can be more scientifically arranged. For example, Shenzhen establishes a national first street air monitoring network 'one street and one station' in 2018 in 6 months, the monitoring system has a PM2.5 monitoring station on each street, and the stations are established in a manner of fully considering the interference of factors such as surrounding pollution sources, obstacles, strong magnetic fields and the like, so that the distribution of the monitoring stations is more balanced and scientific.
To further illustrate the one-street one-stop partitioning mode, in the embodiment of the present invention, each street in the monitoring area is regarded as one grid cell, and then the monitoring area is regarded as being composed of a plurality of grid cells. A monitoring station is arranged in each grid unit, so that one street and one monitoring station are realized, and a street and station division mode is realized. For example, a monitoring region is city a, and city a is composed of streets a, b, c and the like, so that the streets a, b, c and the like are regarded as grids, and a monitoring station is set up in each grid, so that the city a can be monitored by using the monitoring stations of all the streets.
And step S102, establishing a self-established monitoring station in the grid. The density of the monitoring stations is increased by setting up the self-built monitoring stations, so that the monitored data are more accurate.
Step S103, acquiring first air quality data monitored by at least one national monitoring station near the grid and second air quality data monitored by a self-established monitoring station.
And step S104, correcting the second air quality data according to the first air quality data. Specifically, the second air quality data has an error compared with the first air quality data, and therefore the second air quality data needs to be corrected, so that accurate second air quality data is obtained to draw an accurate air quality rendering map.
And step S105, drawing an air quality rendering map of the corresponding region according to the corrected second air quality data. The air quality of the monitoring area can be better displayed by drawing the air quality rendering map, the monitoring function is realized, and the user can obtain better experience.
Through the steps, the monitoring areas are generally divided according to the longitude and latitude in the traditional technology, and each monitoring area cannot be finely monitored, so that the rendering map is displayed inaccurately. In addition, for rendering of the rendering map, color bars are arranged according to different grade intervals to form a color bar list corresponding to different data, so that the different data are displayed according to different colors, or a gradient interval is arranged, and intermediate transition colors are arranged, so that the interval is gradually changed according to colors. The embodiment of the invention divides the grids in a one-street one-station mode, and each street in the monitoring area is included in the monitoring range, so that more accurate data can be obtained. In addition, according to the requirements of different levels, the color bars can be generated, the gradient colors can be generated, and meanwhile, the color bars and the gradient colors can be combined to show the rendering graph which is graded according to the standard and has the gradient color display, so that the experience of the user is improved. The problem of among the prior art air quality monitoring and show because the density of monitoring the website is low, lead to the monitoring data inaccurate to and only adopt the mode of monochromatic rendering to show air quality, lead to can not carrying out visual reflection to air quality is solved. The embodiment of the invention realizes accurate acquisition of air quality data, flexible setting of air quality grade and corresponding color, and simultaneously supports drawing of rendering graphs according to grade single color and grade gradient color, and drawing of rendering graphs with multiple time scales and multiple elements.
Step S104 involves correcting the second air quality data based on the first air quality data, which in an alternative embodiment is read. And fitting the first air quality data and the second air quality data to obtain a relational expression of the first air quality data and the second air quality data. The second air quality data is compensated according to the relation. Specifically, since the air quality condition may be affected by many factors, the air quality data of the region may be obtained more accurately by correcting the second air quality data.
To further illustrate the calibration method, in a specific embodiment, first air quality data monitored by the national monitoring station and second air quality data monitored by the self-established monitoring station which is closer to the national monitoring station are acquired in a monitoring area, the first air quality data and the second air quality are acquired through Python programming, and then data fitting is performed to find the relation between the first air quality data and the second air quality data, wherein the relation between the first air quality data and the second air quality data is related to factors such as the distance between the self-established monitoring station and the national monitoring station, weather and the like. When information such as distance, weather and the like is known through the relational expression, a compensation coefficient can be obtained to be used for correcting the second air quality data, and accurate data can be obtained. Those skilled in the art will appreciate that the fitting method described above is only for illustrating the embodiment of the present invention and does not constitute a limitation to the present invention.
Step S105 involves drawing an air quality rendering map of the corresponding region according to the corrected second air quality data, and in an optional embodiment, a color index corresponding to the corrected second air quality data is obtained. And acquiring the color corresponding to the corrected second air quality data according to the color index. Wherein the color index corresponding to the corrected second air quality data is obtained by the following formula:
cIndex=((V–Nmin)/(Nmax–Nmin))*CLength;
wherein, cndex represents a color index, V represents the corrected second air quality data, Nmin represents the minimum value of the dye concentration data, Nmax represents the maximum value of the dye concentration data, and CLength represents the number of colors of the rendering legend of the environmental pollution. The color index and the color of the environment data of each grid are preset, for example, the number of 1-10 is set for 10 grids, 10 colors are put in turn, and the 6 th color is obtained each time the color is corresponding to the calculated number, for example, the number is 6. The color index corresponding to the second air quality data is obtained through a formula mode, so that the color division is finer and more scientific, the index obtained through the mode is easier, the artificial grade division is not needed, and the universality is higher.
Step S105 involves drawing an air quality rendering map of a corresponding region according to the corrected second air quality data, and in a specific embodiment, a preset mapping library is used to determine an assigned air quality level according to the second air quality data, and an assigned color bar corresponding to the second air quality data is searched for in a plurality of gradient color bars included in the assigned air quality level, so as to draw the air quality rendering map. The preset mapping library is preset through the following steps. And setting the air quality grade according to the air quality data. Calling matplotlibThe source drawing library ListedColormap method generates a hierarchical color bar for each air quality level. And setting a gradual change for the color bar corresponding to each air quality grade. And calling a linear segmentedColormap method of a matplotlib open source drawing library to generate a gradient color bar of each air quality grade. Different air quality data within an air quality class are represented by graded gradient color bars. Specifically, each air quality level is represented by a close color and each level is represented by a gradation color, and an air quality rendering map is drawn, for example, the following levels and corresponding colors may be set for an air quality situation of a place: the concentration of the pollutants is 0-50 mu g/m3The corresponding color is green; the concentration of the pollutants is 50-100 mu g/m3The second grade color between the two is yellow; the concentration of the pollutants is 100 mu g/m3The third level color is red. Then, for example, in the range of the first level, green is set to be gradually changed from light green to dark green, each level is set to be gradually changed, and an air quality rendering map is drawn. Any method can be adopted in the embodiment of the invention, and the experience of the user can be improved by flexibly setting the color.
In any of the above embodiments, the air quality interpolation graph, the air quality dot graph, the air quality histogram, and/or the air quality line graph are rendered according to the graded gradient color bar, so as to obtain an air quality rendering graph. Through the drawing of the multiple types of air quality rendering diagrams, a user can check the air quality condition from multiple angles, and the user experience is improved.
In this embodiment, a spatial distribution map drawing device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides an air quality monitoring and displaying device, as shown in fig. 2, including:
the dividing module 21 is used for dividing the monitoring region into grids according to a one-street one-station mode;
the establishing module 22 is used for establishing a self-established monitoring station in the grid;
an obtaining module 23, configured to obtain first air quality data monitored by at least one national monitoring station near the grid and second air quality data monitored by the self-established monitoring station;
a correction module 24 for correcting the second air quality data according to the first air quality data;
and a drawing module 25, configured to draw an air quality rendering map of a corresponding region according to the corrected second air quality data.
Optionally, the correction module includes:
a reading unit for reading the first air quality data and the second air quality data;
the fitting unit is used for fitting the first air quality data and the second air quality data to obtain a relational expression of the first air quality data and the second air quality data;
and the compensation unit is used for compensating the second air quality data according to the relational expression.
Optionally, the rendering module further includes:
a first acquiring unit configured to acquire a color index corresponding to the corrected second air quality data;
a second acquiring unit configured to acquire a color corresponding to the corrected second air quality data according to the color index;
wherein the color index corresponding to the corrected second air quality data is obtained by the following formula:
cIndex=((V–Nmin)/(Nmax–Nmin))*CLength;
wherein, cndex represents a color index, V represents the corrected second air quality data, Nmin represents the minimum value of the dye concentration data, Nmax represents the maximum value of the dye concentration data, and CLength represents the number of colors of the rendering legend of the environmental pollution;
the spatial histogram rendering apparatus in this embodiment is presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and memory executing one or more software or fixed programs, and/or other devices that may provide the above-described functionality.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides an electronic device, which has the distribution diagram drawing apparatus shown in fig. 2.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 3, the electronic device may include: at least one processor 301, such as a CPU (Central Processing Unit), at least one communication interface 303, memory 304, and at least one communication bus 302. Wherein a communication bus 302 is used to enable the connection communication between these components. The communication interface 303 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 303 may further include a standard wired interface and a standard wireless interface. The Memory 304 may be a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 304 may optionally be at least one storage device located remotely from the processor 301. Wherein the processor 301 may be combined with the apparatus described in fig. 2, the memory 304 stores an application program, and the processor 301 calls the program code stored in the memory 304 for performing any of the above-mentioned method steps.
The communication bus 302 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The memory 304 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 304 may also comprise a combination of the above-described types of memory.
The processor 301 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 301 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 304 is also used to store program instructions. The processor 301 may invoke program instructions to implement the air quality monitoring and display method as shown in the embodiment of fig. 1 of the present application.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the processing method of the air quality monitoring and displaying method in any method embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. An air quality monitoring and displaying method is characterized by comprising the following steps:
dividing monitoring regions into grids in a one-street one-station mode;
establishing a self-established monitoring station in the grid;
acquiring first air quality data monitored by at least one nationally owned monitoring station near the grid and second air quality data monitored by the self-built monitoring station;
correcting the second air quality data according to the first air quality data;
and drawing an air quality rendering graph of a corresponding region according to the corrected second air quality data.
2. The air quality monitoring and display method of claim 1, wherein correcting the second air quality data based on the first air quality data comprises:
reading the first air quality data and the second air quality data;
fitting the first air quality data and the second air quality data to obtain a relational expression of the first air quality data and the second air quality data;
compensating the second air quality data according to the relational expression.
3. The air quality monitoring and displaying method according to claim 1, wherein before drawing an air quality rendering map of a corresponding region according to the corrected second air quality data, the method comprises:
acquiring a color index corresponding to the corrected second air quality data;
acquiring a color corresponding to the corrected second air quality data according to the color index;
wherein the color index corresponding to the corrected second air quality data is obtained by the following formula:
cIndex=((V–Nmin)/(Nmax–Nmin))*CLength;
wherein, cndex represents a color index, V represents the corrected second air quality data, Nmin represents the minimum value of the dye concentration data, Nmax represents the maximum value of the dye concentration data, and CLength represents the number of colors of the rendering legend of the environmental pollution.
4. The air quality monitoring and displaying method according to claim 1, wherein drawing an air quality rendering map of a corresponding region according to the corrected second air quality data further comprises:
determining a designated air quality grade according to the second air quality data by using a preset mapping library; searching a designated color bar corresponding to the second air quality data in a plurality of gradient color bars included in the designated air quality grade to draw an air quality rendering graph;
the preset mapping library is preset through the following steps:
setting air quality grade according to the air quality data;
calling a matplotlib open source drawing library to generate a graded color bar for each air quality grade;
setting a gradient number for the color bar corresponding to each air quality grade;
calling a matplotlib open source drawing library to generate a gradient color bar of each air quality grade;
different air quality data within an air quality class are represented by graded gradient color bars.
5. The air quality monitoring and display method according to any one of claims 1-4, wherein the method further comprises:
and rendering the air quality interpolation graph, the air quality dot graph, the air quality histogram and/or the air quality line graph according to the graded gradually-changing color bars to obtain an air quality rendering graph.
6. The utility model provides an air quality monitoring and display device which characterized in that includes:
the division module is used for dividing the monitoring region into grids according to a one-street one-station mode;
the establishing module is used for establishing a self-established monitoring station in the grid;
the acquisition module is used for acquiring first air quality data monitored by at least one nationwide monitoring station near the grid and second air quality data monitored by the self-built monitoring station;
the correction module is used for correcting the second air quality data according to the first air quality data;
and the drawing module is used for drawing an air quality rendering map of a corresponding region according to the corrected second air quality data.
7. The air quality monitoring and display device of claim 6, wherein the correction module comprises:
a reading unit for reading the first air quality data and the second air quality data;
the fitting unit is used for fitting the first air quality data and the second air quality data to obtain a relational expression of the first air quality data and the second air quality data;
and the compensation unit is used for compensating the second air quality data according to the relational expression.
8. The air quality monitoring and display device of claim 6, wherein the mapping module further comprises, prior to:
a first acquiring unit configured to acquire a color index corresponding to the corrected second air quality data;
a second acquiring unit configured to acquire a color corresponding to the corrected second air quality data according to the color index;
wherein the color index corresponding to the corrected second air quality data is obtained by the following formula:
cIndex=((V–Nmin)/(Nmax–Nmin))*CLength;
wherein, cndex represents a color index, V represents the corrected second air quality data, Nmin represents the minimum value of the dye concentration data, Nmax represents the maximum value of the dye concentration data, and CLength represents the number of colors of the rendering legend of the environmental pollution.
9. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of any one of claims 1-5.
10. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any of claims 1-5.
CN202011540844.7A 2020-12-23 2020-12-23 Air quality monitoring and displaying method and device, electronic equipment and storage medium Pending CN112611843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011540844.7A CN112611843A (en) 2020-12-23 2020-12-23 Air quality monitoring and displaying method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011540844.7A CN112611843A (en) 2020-12-23 2020-12-23 Air quality monitoring and displaying method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112611843A true CN112611843A (en) 2021-04-06

Family

ID=75244549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011540844.7A Pending CN112611843A (en) 2020-12-23 2020-12-23 Air quality monitoring and displaying method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112611843A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107340364A (en) * 2017-05-31 2017-11-10 北京市环境保护监测中心 Polluted space analysis method and device based on magnanimity air pollution concentration data
WO2018225030A1 (en) * 2017-06-09 2018-12-13 Sense Square S.R.L.S. Atmospheric pollution source mapping and tracking of pollutants by using air quality monitoring networks having high space-time resolution
CN110426493A (en) * 2019-08-01 2019-11-08 北京软通智慧城市科技有限公司 Air quality monitoring data calibration method, device, equipment and storage medium
CN110514626A (en) * 2019-07-23 2019-11-29 北京英视睿达科技有限公司 The data calibration method and air pollution surveillance system of air pollution surveillance system
CN111220782A (en) * 2020-03-26 2020-06-02 泛测(北京)环境科技有限公司 Particle pollutant detection alarm system in air atmosphere on road

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107340364A (en) * 2017-05-31 2017-11-10 北京市环境保护监测中心 Polluted space analysis method and device based on magnanimity air pollution concentration data
WO2018225030A1 (en) * 2017-06-09 2018-12-13 Sense Square S.R.L.S. Atmospheric pollution source mapping and tracking of pollutants by using air quality monitoring networks having high space-time resolution
CN110514626A (en) * 2019-07-23 2019-11-29 北京英视睿达科技有限公司 The data calibration method and air pollution surveillance system of air pollution surveillance system
CN110426493A (en) * 2019-08-01 2019-11-08 北京软通智慧城市科技有限公司 Air quality monitoring data calibration method, device, equipment and storage medium
CN111220782A (en) * 2020-03-26 2020-06-02 泛测(北京)环境科技有限公司 Particle pollutant detection alarm system in air atmosphere on road

Similar Documents

Publication Publication Date Title
US20200149888A1 (en) Method and device for monitoring water volume change, computer device and storage medium
KR20200131831A (en) Sensor calibration
CN103699809B (en) Water and soil loss space monitoring method based on Kriging interpolation equations
CN111998918A (en) Error correction method, error correction device and flow sensing system
CN110929661A (en) Parking space detection method and system capable of parking based on convolutional neural network
CN112052801B (en) HSD data fire point real-time monitoring automatic analysis system based on Himawari-8
CN108174350B (en) Positioning method and device
LU501209B1 (en) Method and apparatus for improving spatial resolution of data, computer-readable storage medium, and terminal device
US10021668B2 (en) Wireless characteristic display apparatus, wireless characteristic display method, and computer readable medium
CN112559619A (en) Method and device for drawing spatial distribution map, electronic equipment and readable storage medium
CN112611843A (en) Air quality monitoring and displaying method and device, electronic equipment and storage medium
CN112817918B (en) High-resolution three-number data conversion method, terminal equipment and storage medium
CN108734393A (en) Matching process, user equipment, storage medium and the device of information of real estate
CN115841193B (en) Method and device for predicting forest pests
CN115620148B (en) Integrated pixel-level variation sample labeling and model optimizing method and device
CN108038086B (en) DEM data error evaluation and correction method based on pixel scale
CN113436193B (en) Urban black and odorous water body monitoring method and device
CN115423702A (en) Method and system for manufacturing large-area space-borne optical and SAR (synthetic Aperture Radar) image DOM (document object model)
CN114625821A (en) Perception data processing method, electronic device and program product
CN112085685B (en) Space-time fusion method capable of eliminating brick effect and based on space mixing decomposition
CN113077629B (en) Dynamic traffic flow measuring and calculating method and device, electronic equipment and storage medium
De Vito et al. Hyper resoluted air quality maps in urban environment with crowdsensed data from intelligent low cost sensors
CN110738711A (en) Automatic tool and method for producing drought index and making thematic map of temperature vegetation
CN110389947A (en) A kind of blacklist generation method, device, equipment and medium
CN115690585B (en) Method and system for extracting wheat tillering number based on digital photo

Legal Events

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

Application publication date: 20210406