CN111125113A - Method and device for storing air pollutant data - Google Patents

Method and device for storing air pollutant data Download PDF

Info

Publication number
CN111125113A
CN111125113A CN201911359159.1A CN201911359159A CN111125113A CN 111125113 A CN111125113 A CN 111125113A CN 201911359159 A CN201911359159 A CN 201911359159A CN 111125113 A CN111125113 A CN 111125113A
Authority
CN
China
Prior art keywords
air pollutant
pollutant data
stored
picture
storing
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.)
Granted
Application number
CN201911359159.1A
Other languages
Chinese (zh)
Other versions
CN111125113B (en
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 CN201911359159.1A priority Critical patent/CN111125113B/en
Publication of CN111125113A publication Critical patent/CN111125113A/en
Application granted granted Critical
Publication of CN111125113B publication Critical patent/CN111125113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Abstract

The invention provides a method and a device for storing air pollutant data. The method comprises the following steps: the method comprises the steps of obtaining air pollutant data of a plurality of places at a plurality of moments, converting the air pollutant data into stored values, storing the stored values corresponding to the air pollutant data of the plurality of places in a picture, and storing description information of the picture, wherein each pixel point in the picture is used for storing the stored values corresponding to the air pollutant data of one place at two or four moments, wherein each pixel point in the picture comprises R, G, B, A four channels, and each channel is used for storing the stored value corresponding to the air pollutant data of one moment, or two channels are used for storing the stored value corresponding to the air pollutant data of one moment. According to the method, the air pollutant data are stored by utilizing the four channels of the RGBA picture according to the type of the air pollutant, so that the data at multiple moments are stored in one picture, the data storage capacity is reduced, and the storage space is saved.

Description

Method and device for storing air pollutant data
Technical Field
The invention relates to the technical field of environmental processing, in particular to a method and a device for storing air pollutant data.
Background
Air pollution is a major component of environmental pollution and is affected by a number of factors, including weather conditions, different times of day, different days of the week, industrial activities, traffic intensity, etc. The air pollutants are monitored or predicted, and pollution prediction and prevention are carried out according to the monitoring or prediction result.
In the existing scheme, values of air pollutants at different places at different moments are monitored or predicted, the monitored or predicted values of the air pollutants are stored, an air pollutant distribution diagram is obtained according to the values of the air pollutants at the same moment and the positions, the air pollutant distribution diagram is further displayed and stored, and the air pollution distribution condition is intuitively reflected through the air pollutant distribution diagram.
However, in the existing solutions, the storage space for storing the values of the air pollutants at different locations at various times is large.
Disclosure of Invention
The invention provides a method and a device for storing air pollutant data, which are used for solving the problem that the storage space occupied for storing values of air pollutants at different places at various moments is large in the prior art.
In a first aspect, the present invention provides a method for storing air pollutant data, including:
acquiring air pollutant data of a plurality of places at a plurality of moments;
converting the air pollutant data to a stored value;
storing the stored values corresponding to the air pollutant data of the plurality of places in a picture, and storing the description information of the picture, wherein each pixel point in the picture is used for storing the stored value corresponding to the air pollutant data of one place at two or four moments, each pixel point in the picture comprises R, G, B, A four channels, each channel is used for storing the stored value corresponding to the air pollutant data of one moment, or two channels are used for storing the stored value corresponding to the air pollutant data of one moment.
Optionally, the converting the air pollutant data into a stored value includes:
converting the air pollutant data into a single-channel storage value or a double-channel storage value according to the value range of the air pollutant data;
the storing the stored values corresponding to the air pollutant data of the plurality of locations in a picture comprises:
storing the single-channel storage value corresponding to the air pollutant data of each place in one channel of the corresponding pixel point;
or storing the two-channel storage value corresponding to the air pollutant data of each place in two channels of the corresponding pixel point.
Optionally, the converting the air pollutant data into a single-channel stored value according to the value range of the air pollutant data includes:
converting the air pollutant data to a single channel stored value according to the following formula:
Figure BDA0002336722210000023
wherein floor is a downward integer arithmetic, V is the air pollutant data, V is1And storing a value for the single channel, wherein Max is the maximum value of the value range of the air pollutant data, and Min is the minimum value of the value range of the air pollutant data.
Optionally, the converting the air pollutant data into a two-channel stored value according to the value range of the air pollutant data includes:
converting the air pollutant data to a two-channel stored value according to the following equation:
Figure BDA0002336722210000021
Figure BDA0002336722210000022
wherein floor is a downward integer arithmetic, V is the air pollutant data, V is21A stored value, V, for a first channel of the two channels22And the stored value of the second channel in the two channels is Max which is the maximum value of the value range of the air pollutant data, and Min which is the minimum value of the value range of the air pollutant data.
Optionally, the description information of the picture is stored in the picture;
the description information of the picture comprises one or more of the following information: the time, precision, value range or channel combination of the air pollutant data stored in the picture.
Optionally, the description information of the picture is stored in a first row of pixel points in the picture;
and storing values corresponding to the air pollutant data of the plurality of places from the second row of pixel points in the picture.
Optionally, each pixel point in the picture is used for storing a storage value corresponding to air pollutant data of one place at two or four moments as a storage value corresponding to air pollutant data of an adjacent moment.
In a second aspect, the present invention provides an apparatus for storing air pollutant data, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring air pollutant data of a plurality of places at a plurality of moments;
a conversion module for converting the air pollutant data into stored values;
the first storage module is used for storing stored values corresponding to the air pollutant data of the plurality of places in pictures; each pixel point in the picture is used for storing a stored value corresponding to air pollutant data of one place at two or four moments, wherein each pixel point in the picture comprises R, G, B, A four channels, each channel is used for storing a stored value corresponding to air pollutant data of one moment, or two channels are used for storing a stored value corresponding to air pollutant data of one moment;
and the second storage module is used for storing the description information of the picture.
Optionally, the conversion module is specifically configured to:
converting the air pollutant data into a single-channel storage value or a double-channel storage value according to the value range of the air pollutant data;
the storing the stored values corresponding to the air pollutant data of the plurality of locations in a picture comprises:
storing the single-channel storage value corresponding to the air pollutant data of each place in one channel of the corresponding pixel point;
or storing the two-channel storage value corresponding to the air pollutant data of each place in two channels of the corresponding pixel point.
Optionally, the converting module converts the air pollutant data into a single-channel stored value according to the value range of the air pollutant data, and includes:
converting the air pollutant data to a single channel stored value according to the following formula:
Figure BDA0002336722210000031
wherein floor is a downward integer arithmetic, V is the air pollutant data, V is1And storing a value for the single channel, wherein Max is the maximum value of the value range of the air pollutant data, and Min is the minimum value of the value range of the air pollutant data.
Optionally, the converting module converts the air pollutant data into a two-channel stored value according to the value range of the air pollutant data, and includes:
converting the air pollutant data to a two-channel stored value according to the following equation:
Figure BDA0002336722210000041
Figure BDA0002336722210000042
wherein floor is a downward integer arithmetic, V is the air pollutant data, V is21A stored value, V, for a first channel of the two channels22And the stored value of the second channel in the two channels is Max which is the maximum value of the value range of the air pollutant data, and Min which is the minimum value of the value range of the air pollutant data.
Optionally, the description information of the picture is stored in the picture;
the description information of the picture comprises one or more of the following information: the time, precision, value range or channel combination of the air pollutant data stored in the picture.
Optionally, the description information of the picture is stored in a first row of pixel points in the picture;
and storing values corresponding to the air pollutant data of the plurality of places from the second row of pixel points in the picture.
Optionally, each pixel point in the picture of the first storage module is configured to store a stored value corresponding to air pollutant data of one place at two or four moments as a stored value corresponding to air pollutant data of an adjacent moment.
In a third aspect, the present invention provides an apparatus for storage of air pollutant data, comprising:
a memory for storing processor-executable instructions;
a processor for implementing the method according to any of the above first aspects when the computer program is executed.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the method of storing air pollutant data as described in the first aspect above when executed by a processor.
According to the method and the device for storing the air pollutant data, the air pollutant data are converted into the stored values by acquiring the air pollutant data of a plurality of places at a plurality of moments, the stored values corresponding to the air pollutant data of the plurality of places are stored in the picture, the description information of the picture is stored, each pixel point in the picture is used for storing the stored values corresponding to the air pollutant data of one place at two or four moments, wherein each pixel point in the picture comprises R, G, B, A four channels, each channel is used for storing the stored value corresponding to the air pollutant data at one moment, or two channels are used for storing the stored value corresponding to the air pollutant data at one moment. According to the air pollutant type, the four channels of the RGBA picture are used for storing the air pollutant data, so that the data at multiple moments are stored in one picture, the data storage amount is reduced, and the storage space is saved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic view of the distribution of an air pollutant;
FIG. 2 is a schematic flow chart of a method for storing air pollutant data according to the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for storing air pollutant data according to the present invention;
fig. 4 is a schematic structural diagram of an air pollutant data storage device according to the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terms to which the present invention relates will be explained first:
air pollutants: refers to a substance that causes air pollution by a mixture of gaseous, volatile, semi-volatile, and particulate substances, including: sulfur dioxide SO2Nitrogen dioxide NO2Inhalable particulate matter PM10Fine particulate matter PM2.5CO and ozone O3And the like.
Fig. 1 is a schematic diagram of distribution of air pollutants, and an application scenario of the present invention is described below with reference to fig. 1.
Air pollution is a major component of environmental pollution and is affected by a number of factors, including weather conditions, different times of day, different days of the week, industrial activities, traffic intensity, etc. In the invention, the values of the air pollutants at different places and different moments are monitored or predicted, and the monitored or predicted values of the air pollutants are stored in the form of a picture with a color mode of RGBA, wherein R (red), G (green), B (blue) and A (alpha) channels of each pixel point in the picture are used for storing the stored values corresponding to the air pollutant data at two or four moments of one place, and the A channel is generally used for representing the transparency and translucency of one picture.
As shown in fig. 1, a distribution diagram of fine particles is drawn according to a stored concentration value of fine particles in a range of China at a certain time, wherein values of fine particles corresponding to different colors are defined, and the distribution condition of the fine particles can be visually displayed, so that pollution prediction and prevention of the fine particles can be performed according to a monitoring or prediction result.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of a method for storing air pollutant data according to the present invention, as shown in fig. 2, the method of this embodiment is executed by a terminal device or a server, where the terminal device may be a computer, a mobile phone, a tablet device, and the like, and the present invention is not limited thereto, and the method of this embodiment is as follows:
s201, acquiring air pollutant data of a plurality of places at a plurality of moments.
In this embodiment, according to the type of the air pollutant, data of different types of air pollutants at multiple times at multiple locations are obtained respectively, and the air pollutant data at which times need to be stored may be determined according to the type of the air pollutant, in a possible implementation manner, the air pollutant data may be stored at fixed time intervals, for example, in 24 hours of a day, the air pollutant data at 0 point, 6 points, 12 points, and 18 points of each day may be stored at fixed time intervals of 6 hours, or the air pollutant data at the whole time of each point of each day, such as the air pollutant data at 1 point, 2 points, 3 points, and the like, may be stored at fixed time intervals of 1 hour. In another possible implementation, the air pollutant data may be stored at a user-defined critical moment, for example, at 24 hours of the day, the data of a serious pollution moment may be stored, for example, the air pollutant data of a certain air pollutant at 8 o 'clock, 11 o' clock, 15 o 'clock and 19 o' clock may be stored.
And S202, converting the air pollutant data into a stored value.
In this embodiment, the precision and the value range of the air pollutant data of different types are different, the precision of the air pollutant data may be an integer or one decimal, and according to practical experience, the value range of the air pollutant data detected at present is in a range greater than or equal to 0 and less than or equal to 3840. Therefore, when the type of the air pollutants is determined, the accuracy and the value range of the air pollutants data can be determined.
In the RGBA color space combination, R represents Red (Red), G represents Green (Green) B represents Blue (Blue), and a represents Alpha (transparency), that is, there are R, G, B, A four channels of the picture defined by the RGBA color space, where each channel can store an integer greater than or equal to 0 and less than or equal to 255, and if any two channels in the RGBA color space are used to store data, an integer greater than or equal to 0 and less than or equal to 65535 can be stored.
For example, according to the value range of the air pollutant data, the air pollutant data can be converted into a single-channel storage value or a dual-channel storage value, the single-channel storage means that one channel can completely store the air pollutant data of a plurality of places at one moment, and the dual-channel storage means that two channels can completely store the air pollutant data of a plurality of places at one moment.
And when the difference value between the maximum value and the minimum value in the value range of the air pollutant data is smaller than or equal to 255, converting the air pollutant data into a single-channel storage value. And when the difference value between the maximum value and the minimum value in the value range of the air pollutant data is larger than 255, converting the air pollutant data into a two-channel storage value.
Illustratively, the air pollution data may be converted to a single-channel stored value according to the following formula:
Figure BDA0002336722210000071
wherein, floor is the operation of taking integer downwards, V is the air pollutant data, V1And storing a value for a single channel, wherein Max is the maximum value of the value range of the air pollutant data, and Min is the minimum value of the value range of the air pollutant data.
Correspondingly, the single-channel stored value of the air pollutant data stored by the formula is acquired, and the single-channel stored value of the air pollutant data can be converted into the air pollutant data according to the following formula:
Figure BDA0002336722210000072
wherein V is air pollutant data, V1And storing a value for a single channel, wherein Max is the maximum value of the value range of the air pollutant data, and Min is the minimum value of the value range of the air pollutant data. In one possible implementation, the air contaminant data may be converted to a two-channel stored value according to the following equation:
Figure BDA0002336722210000081
Figure BDA0002336722210000082
wherein, floor is the operation of taking integer downwards, V is the air pollutant data, V21The stored value, V, for the first channel of the two channels22The value stored in the second channel of the two channels is Max, the maximum value of the value range of the air pollutant data is Max, and Min is the minimum value of the value range of the air pollutant data.
Correspondingly, the dual-channel stored value of the air pollutant data stored by the formula is acquired, and the dual-channel stored value of the air pollutant data can be converted into the air pollutant data according to the following formula:
Figure BDA0002336722210000083
wherein V is air pollutant data, V21The stored value, V, for the first channel of the two channels22The value stored in the second channel of the two channels is Max, the maximum value of the value range of the air pollutant data is Max, and Min is the minimum value of the value range of the air pollutant data.
In another possible implementation, the two-channel stored values of air pollutant data may be stored bitwise. Where the value of the air contaminant data is converted to binary, it may be defined that one of the two channels represents the lower bits of the stored value and the other channel represents the upper bits of the stored value, stored in binary bits.
S203, storing the stored values corresponding to the air pollutant data of the multiple places in the picture, and storing the description information of the picture, wherein each pixel point in the picture is used for storing the stored value corresponding to the air pollutant data of one place at two or four moments.
Each pixel point in the picture comprises R, G, B, A four channels, and each channel is used for storing a storage value corresponding to air pollutant data at a moment, or two channels are used for storing a storage value corresponding to air pollutant data at a moment.
In this embodiment, stored values corresponding to air pollutant data of a plurality of locations and description information of a picture are stored in the picture. The picture is defined by an RGBA color space, each pixel point in the picture includes R, G, B, A four channels, and each pixel point corresponds to a place, for example, the picture defined by the RGBA color space with 200 pixels × 200 pixels is superimposed with a map of the actually acquired place, and each pixel point corresponds to a place in the map. Optionally, the format of the picture may be png format.
Illustratively, stored values corresponding to air pollutant data of a plurality of locations are stored in a picture, and in one possible implementation, when the air pollutant data is converted into single-channel stored values, the single-channel stored values corresponding to the air pollutant data of each location are stored in one channel of corresponding pixel points, and each pixel point is used for storing the stored values corresponding to the air pollutant data of one location at four moments. Optionally, the stored values corresponding to the air pollutant data of one place at four times are stored in the picture as the stored values corresponding to the air pollutant data of adjacent times.
In another possible implementation manner, when the air pollutant data is converted into the two-channel stored value, the two-channel stored value corresponding to the air pollutant data of each location is stored in two channels of the corresponding pixel point, and each pixel point is used for storing the stored value corresponding to the air pollutant data of one location at two moments. Two of the channels of pixels may store stored values corresponding to air contaminant data at one time of a site from any two of the four channels of R, G, B, A, for example, the R and G channels may be selected to store stored values corresponding to air contaminant data at one time, and the corresponding B and a channels are used to store stored values corresponding to air contaminant data at another time. Optionally, the stored values corresponding to the air pollutant data of one place at two times are stored in the picture as the stored values corresponding to the air pollutant data at adjacent times.
Illustratively, the description information of the picture includes one or more of the following information: the time, the precision, the value range, the combination mode of the channels or the type of the air pollutants data stored in the picture. The description information of the picture can be converted into a character string by a preset coding mode, the character string is converted into bytes (range 0-255) by the preset coding mode, and the description information of the picture is stored in the form of bytes, for example, the precision of the air pollutant data can be set to be 0 when rounding, the precision of the air pollutant data can be set to be 1 when a fraction of a bit is reserved, and the precision of the air pollutant data can be 0 when rounding.
In one possible implementation manner of storing the description information of the picture, the description information of the picture is stored in a first row of pixel points in the picture; the stored values corresponding to the air pollutant data for the multiple locations are stored starting from the second row of pixel points in the picture.
In another possible implementation manner, the description information of the picture is stored in any row of pixels in the picture, and the stored values corresponding to the air pollutant data of a plurality of places are stored in other rows of the picture except the row in which the description information of the picture is stored according to different positions.
In yet another possible implementation, the description information of the picture is stored in the name of the picture.
In this embodiment, by acquiring air pollutant data of a plurality of locations at a plurality of times, converting the air pollutant data into stored values, storing the stored values corresponding to the air pollutant data of the plurality of locations in a picture, and storing description information of the picture, each pixel in the picture is used to store one stored value corresponding to the air pollutant data of one location at two or four times, wherein each pixel in the picture includes R, G, B, A four channels, and each channel is used to store one stored value corresponding to the air pollutant data of one time, or two channels are used to store one stored value corresponding to the air pollutant data of one time. According to the air pollutant type, the four channels of the RGBA picture are used for storing the air pollutant data, so that the data at multiple moments are stored in one picture, the data storage amount is reduced, and the storage space is saved.
Fig. 3 is a schematic structural diagram of a storage apparatus for air pollutant data according to the present invention, and as shown in fig. 3, the storage apparatus 30 for air pollutant data according to the present embodiment includes:
an obtaining module 301, configured to obtain air pollutant data of multiple locations at multiple times;
a conversion module 302 for converting air pollutant data into stored values;
a first storage module 303, configured to store stored values corresponding to air pollutant data of multiple locations in a picture; each pixel point in the picture is used for storing a stored value corresponding to air pollutant data of one place at two or four moments, wherein each pixel point in the picture comprises R, G, B, A four channels, each channel is used for storing a stored value corresponding to air pollutant data of one moment, or two channels are used for storing a stored value corresponding to air pollutant data of one moment;
and a second storage module 304, configured to store description information of the picture.
Optionally, the conversion module 302 is specifically configured to:
converting the air pollutant data into a single-channel storage value or a double-channel storage value according to the value range of the air pollutant data;
storing in a picture stored values corresponding to air pollutant data for a plurality of locations, comprising:
storing the single-channel storage value corresponding to the air pollutant data of each place in one channel of the corresponding pixel point;
or storing the two-channel storage value corresponding to the air pollutant data of each place in two channels of the corresponding pixel point.
Optionally, the converting module 302 converts the air pollutant data into a single-channel stored value according to a value range of the air pollutant data, including:
converting the air pollutant data to a single channel stored value according to the following formula:
Figure BDA0002336722210000111
the floor is an operation of taking an integer downwards, V is air pollutant data, V1 is a single-channel storage value, Max is the maximum value of the value range of the air pollutant data, and Min is the minimum value of the value range of the air pollutant data.
Optionally, the conversion module 302 converts the air pollutant data into a two-channel stored value according to a value range of the air pollutant data, including:
converting the air pollutant data to a two-channel stored value according to the following equation:
Figure BDA0002336722210000112
Figure BDA0002336722210000113
the floor is an operation of taking an integer downwards, V is air pollutant data, V21 is a storage value of a first channel in two channels, V22 is a storage value of a second channel in two channels, Max is a maximum value of a value range of the air pollutant data, and Min is a minimum value of the value range of the air pollutant data.
Optionally, the description information of the picture is stored in the picture;
the description information of the picture includes one or more of the following information: the time, precision, value range or channel combination of the air pollutant data stored in the picture.
Optionally, the description information of the picture is stored in a first row of pixel points in the picture;
the stored values corresponding to the air pollutant data for the multiple locations are stored starting from the second row of pixel points in the picture.
Optionally, each pixel point in the first storage module picture is used to store a stored value corresponding to air pollutant data of one place at two or four moments as a stored value corresponding to air pollutant data of an adjacent moment.
The apparatus of the foregoing embodiment may be configured to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 4 is a schematic structural diagram of a storage device for air pollutant data provided by the present invention, and as shown in fig. 4, the storage device 40 for air pollutant data provided by this embodiment includes:
a memory 401, a memory for storing processor-executable instructions;
a processor 402 for implementing the above-described method of storing air contaminant data when the computer program is executed.
The present invention provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the method of storing air pollution data as described above when executed by a processor.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A method of storing air pollutant data, comprising:
acquiring air pollutant data of a plurality of places at a plurality of moments;
converting the air pollutant data to a stored value;
storing the stored values corresponding to the air pollutant data of the plurality of places in a picture, and storing the description information of the picture, wherein each pixel point in the picture is used for storing the stored value corresponding to the air pollutant data of one place at two or four moments, each pixel point in the picture comprises R, G, B, A four channels, each channel is used for storing the stored value corresponding to the air pollutant data of one moment, or two channels are used for storing the stored value corresponding to the air pollutant data of one moment.
2. The method of claim 1, wherein said converting the air pollutant data to a stored value comprises:
converting the air pollutant data into a single-channel storage value or a double-channel storage value according to the value range of the air pollutant data;
the storing the stored values corresponding to the air pollutant data of the plurality of locations in a picture comprises:
storing the single-channel storage value corresponding to the air pollutant data of each place in one channel of the corresponding pixel point;
or storing the two-channel storage value corresponding to the air pollutant data of each place in two channels of the corresponding pixel point.
3. The method of claim 2, wherein converting the air pollutant data to a single channel stored value according to a range of values of the air pollutant data comprises:
converting the air pollutant data to a single channel stored value according to the following formula:
Figure FDA0002336722200000011
wherein floor is a downward integer arithmetic, V is the air pollutant data, V is1And storing a value for the single channel, wherein Max is the maximum value of the value range of the air pollutant data, and Min is the minimum value of the value range of the air pollutant data.
4. The method of claim 2, wherein said converting the air pollutant data to a two-channel stored value based on a range of values of the air pollutant data comprises:
converting the air pollutant data to a two-channel stored value according to the following equation:
Figure FDA0002336722200000021
Figure FDA0002336722200000022
wherein floor is a downward integer arithmetic, V is the air pollutant data, V is21A stored value, V, for a first channel of the two channels22And the stored value of the second channel in the two channels is Max which is the maximum value of the value range of the air pollutant data, and Min which is the minimum value of the value range of the air pollutant data.
5. The method according to any of claims 1-4, wherein the description information of the picture is stored in the picture;
the description information of the picture comprises one or more of the following information: the time, precision, value range or channel combination of the air pollutant data stored in the picture.
6. The method according to claim 5, wherein the description information of the picture is stored in a first row of pixel points in the picture;
and storing values corresponding to the air pollutant data of the plurality of places from the second row of pixel points in the picture.
7. The method of any one of claims 1-4, wherein each pixel in the picture is used to store a stored value corresponding to air contaminant data for a location at two or four times as a stored value corresponding to air contaminant data for an adjacent time.
8. An air pollutant data storage device, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring air pollutant data of a plurality of places at a plurality of moments;
a conversion module for converting the air pollutant data into stored values;
the first storage module is used for storing stored values corresponding to the air pollutant data of the plurality of places in pictures; each pixel point in the picture is used for storing a stored value corresponding to air pollutant data of one place at two or four moments, wherein each pixel point in the picture comprises R, G, B, A four channels, each channel is used for storing a stored value corresponding to air pollutant data of one moment, or two channels are used for storing a stored value corresponding to air pollutant data of one moment;
and the second storage module is used for storing the description information of the picture.
9. The apparatus of claim 8, wherein the conversion module is specifically configured to:
converting the air pollutant data into a single-channel storage value or a double-channel storage value according to the value range of the air pollutant data;
the storing the stored values corresponding to the air pollutant data of the plurality of locations in a picture comprises:
storing the single-channel storage value corresponding to the air pollutant data of each place in one channel of the corresponding pixel point;
or storing the two-channel storage value corresponding to the air pollutant data of each place in two channels of the corresponding pixel point.
10. The apparatus of claim 9, wherein the converting module converts the air pollutant data into a single-channel stored value according to a value range of the air pollutant data, comprising:
converting the air pollutant data to a single channel stored value according to the following formula:
Figure FDA0002336722200000031
wherein floor is a downward integer arithmetic, V is the air pollutant data, V is1Storing values for the single channel, Max being the air pollution dataMin is the minimum value of the value range of the air pollutant data.
11. The apparatus of claim 9, wherein the conversion module converts the air pollutant data to a two-channel stored value based on a range of values of the air pollutant data, comprising:
converting the air pollutant data to a two-channel stored value according to the following equation:
Figure FDA0002336722200000032
Figure FDA0002336722200000033
wherein floor is a downward integer arithmetic, V is the air pollutant data, V is21A stored value, V, for a first channel of the two channels22And the stored value of the second channel in the two channels is Max which is the maximum value of the value range of the air pollutant data, and Min which is the minimum value of the value range of the air pollutant data.
12. The apparatus according to any one of claims 8-11, wherein the description information of the picture is stored in the picture;
the description information of the picture comprises one or more of the following information: the time, precision, value range or channel combination of the air pollutant data stored in the picture.
13. The apparatus according to claim 12, wherein the description information of the picture is stored in a first row of pixel points in the picture;
and storing values corresponding to the air pollutant data of the plurality of places from the second row of pixel points in the picture.
14. The apparatus according to any one of claims 8-11, wherein each pixel in the picture of the first storage module is configured to store the stored value corresponding to the air pollutant data of one location at two or four time instants as the stored value corresponding to the air pollutant data of the adjacent time instants.
15. An air pollutant data storage device, comprising:
a memory for storing processor-executable instructions;
a processor for implementing the method of any one of claims 1 to 7 when the computer program is executed.
16. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the method of storing air contaminant data according to any one of claims 1 to 7.
CN201911359159.1A 2019-12-25 2019-12-25 Method and device for storing air pollutant data Active CN111125113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911359159.1A CN111125113B (en) 2019-12-25 2019-12-25 Method and device for storing air pollutant data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911359159.1A CN111125113B (en) 2019-12-25 2019-12-25 Method and device for storing air pollutant data

Publications (2)

Publication Number Publication Date
CN111125113A true CN111125113A (en) 2020-05-08
CN111125113B CN111125113B (en) 2020-09-15

Family

ID=70502375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911359159.1A Active CN111125113B (en) 2019-12-25 2019-12-25 Method and device for storing air pollutant data

Country Status (1)

Country Link
CN (1) CN111125113B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069449A (en) * 2020-09-04 2020-12-11 中科三清科技有限公司 Weather forecasting method and device based on initial value set
CN112686001A (en) * 2021-01-05 2021-04-20 中科三清科技有限公司 Transformation method and transmission method of meteorological data, server and data transmission system

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1054384A2 (en) * 1999-05-20 2000-11-22 Mitsubishi Denki Kabushiki Kaisha Method and apparatus for translating and interfacing voxel memory addresses
US20120139931A1 (en) * 1998-06-16 2012-06-07 Graphics Properties Holdings, Inc. Display system having floating point rasterization and floating point framebuffering
US20120166816A1 (en) * 2002-06-24 2012-06-28 Microsoft Corporation Auxiliary Functionality for Pixel Data
CN103024432A (en) * 2012-12-11 2013-04-03 上海卫星工程研究所 Automatic efficient full-covering test method of over-the-ground visible light remote sensing satellite image data
CN103093413A (en) * 2013-01-14 2013-05-08 北京地拓科技发展有限公司 Writing and reading method and writing and reading device of remote sensing image data
CN105204799A (en) * 2015-08-18 2015-12-30 电子科技大学 Method for increasing display refreshing rate of multi-channel deep memory logic analyzer
CN106954068A (en) * 2017-03-09 2017-07-14 广东南方数码科技股份有限公司 A kind of image data storage, read method and system
CN107545212A (en) * 2016-06-27 2018-01-05 石媛 Binary channels cloud data management platform
CN108399605A (en) * 2018-01-09 2018-08-14 网宿科技股份有限公司 Image processing method, terminal device and computer readable storage medium
CN108769510A (en) * 2018-05-02 2018-11-06 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
US10298904B1 (en) * 2009-12-31 2019-05-21 Gene Dolgoff Practical stereoscopic 3-D television system
CN109963066A (en) * 2017-12-25 2019-07-02 深圳市祈飞科技有限公司 A kind of image obtains analytic method and system
CN110175949A (en) * 2018-06-11 2019-08-27 腾讯科技(深圳)有限公司 Image processing method, device, system, storage medium and computer equipment
CN110308868A (en) * 2019-03-19 2019-10-08 泰州悦诚科技信息咨询中心 Adaptive big data storage platform

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120139931A1 (en) * 1998-06-16 2012-06-07 Graphics Properties Holdings, Inc. Display system having floating point rasterization and floating point framebuffering
EP1054384A2 (en) * 1999-05-20 2000-11-22 Mitsubishi Denki Kabushiki Kaisha Method and apparatus for translating and interfacing voxel memory addresses
US20120166816A1 (en) * 2002-06-24 2012-06-28 Microsoft Corporation Auxiliary Functionality for Pixel Data
US10298904B1 (en) * 2009-12-31 2019-05-21 Gene Dolgoff Practical stereoscopic 3-D television system
CN103024432A (en) * 2012-12-11 2013-04-03 上海卫星工程研究所 Automatic efficient full-covering test method of over-the-ground visible light remote sensing satellite image data
CN103093413A (en) * 2013-01-14 2013-05-08 北京地拓科技发展有限公司 Writing and reading method and writing and reading device of remote sensing image data
CN105204799A (en) * 2015-08-18 2015-12-30 电子科技大学 Method for increasing display refreshing rate of multi-channel deep memory logic analyzer
CN107545212A (en) * 2016-06-27 2018-01-05 石媛 Binary channels cloud data management platform
CN106954068A (en) * 2017-03-09 2017-07-14 广东南方数码科技股份有限公司 A kind of image data storage, read method and system
CN109963066A (en) * 2017-12-25 2019-07-02 深圳市祈飞科技有限公司 A kind of image obtains analytic method and system
CN108399605A (en) * 2018-01-09 2018-08-14 网宿科技股份有限公司 Image processing method, terminal device and computer readable storage medium
CN108769510A (en) * 2018-05-02 2018-11-06 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN110175949A (en) * 2018-06-11 2019-08-27 腾讯科技(深圳)有限公司 Image processing method, device, system, storage medium and computer equipment
CN110308868A (en) * 2019-03-19 2019-10-08 泰州悦诚科技信息咨询中心 Adaptive big data storage platform

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069449A (en) * 2020-09-04 2020-12-11 中科三清科技有限公司 Weather forecasting method and device based on initial value set
CN112686001A (en) * 2021-01-05 2021-04-20 中科三清科技有限公司 Transformation method and transmission method of meteorological data, server and data transmission system
CN112686001B (en) * 2021-01-05 2021-12-03 中科三清科技有限公司 Transformation method and transmission method of meteorological data, server and data transmission system

Also Published As

Publication number Publication date
CN111125113B (en) 2020-09-15

Similar Documents

Publication Publication Date Title
CN111125113B (en) Method and device for storing air pollutant data
US20080273804A1 (en) Image Transformation
CN105959724A (en) Video data processing method and device
CN107085761A (en) Road maintenance methods, devices and systems
KR102316376B1 (en) Method of modifying image data, display device performing the same and computer-readable medium storing the same
CN105005429A (en) Method for showing picture through terminal and terminal
CN102663786A (en) Layer superposition method and mobile terminal employing the same
CN111125206B (en) Air pollutant data processing method and device
CN110351540B (en) Method and device for extracting image of vibrating mirror test unit of projector and electronic equipment
CN113709489A (en) Video compression method, device, equipment and readable storage medium
CN106507079B (en) A kind of color rendition method and device
CN107341835B (en) Image processing method, device, electronic equipment and computer readable storage medium
CN110633383A (en) Method and device for identifying repeated house sources, electronic equipment and readable medium
CN110378185A (en) A kind of image processing method applied to automatic driving vehicle, device
CN110968375A (en) Interface control method and device, intelligent terminal and computer readable storage medium
CN110619667B (en) PNG picture compression method and system
CN103207875A (en) Map data processing method and device
EP2025143A1 (en) Method of coding of a digital color image including marking information
CN109379591B (en) Image transcoding method, electronic device and computer readable storage medium
CN106233278A (en) Segment for image creates view data
CN105654017A (en) Two-dimensional code transmission method and two-dimensional code transmission system
CN114782405A (en) Bridge crack detection method and device based on image recognition and machine vision
CN111340811B (en) Resolution method, device and computer storage medium for violation synthetic graph
CN101005619B (en) Loop circuit filtering method
CN110569404A (en) data comparison method and 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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200508

Assignee: Beijing Zhongke Sanqing Environmental Technology Co.,Ltd.

Assignor: 3CLEAR TECHNOLOGY Co.,Ltd.

Contract record no.: X2022980012305

Denomination of invention: Method and device for storing air pollutant data

Granted publication date: 20200915

License type: Common License

Record date: 20220815