[−][src]Crate aqi
The aqi
crate provides functions for calculating the Air Quality
Index based on concentrations of particuate matter.
The AQI is defined for ozone (O₃), 1.0-2.5 micron particulate matter (PM2.5), 2.5-10 micron particulate matter (PM10), carbon monoxide (CO), sulfur dioxide (SO₂), and nitrogen dioxide (NO₂).
The AQI helps make air quality more understandable to laypersons, normalizing air quality on a scale from 0 to 500, with round-number ranges that indicate qualities such as "Good", "Unhealthy", and "Hazardous".
Further details about AQI in general can be found at https://www.airnow.gov/aqi/aqi-basics/.
Further details about the AQI equation can be found at https://www.airnow.gov/publications/air-quality-index/technical-assistance-document-for-reporting-the-daily-aqi/.
Additionally, this library supports "adjusted" PM2.5 AQI values, using the LRAPA and AQandU conversion formulas.
Structs
AirQuality | Result type for AQI calculations |
Enums
AirQualityLevel | Represents the human-friendly interpretation of the AQI |
Functions
co | Calculates the carbon monoxide Air Quality Index from the provided 8-hour concentration |
no2 | Calculates the nitrogen dioxide Air Quality Index from the provided 1-hour concentration |
ozone1 | Calculates the ozone Air Quality Index from the provided 1-hour concentration |
ozone8 | Calculates the Ozone Air Quality Index from the provided 8-hour concentration |
pm2_5 | Calculates the PM2.5 Air Quality Index from the provided 24-hour concentration |
pm2_5_aqandu | Calcuates the AQandU-adjusted PM2.5 Air Quality Index for the provided 24-hour concentration |
pm2_5_lrapa | Calcuates the LRAPA-adjusted PM2.5 Air Quality Index for the provided 24-hour concentration |
pm10 | Calculates the PM10 Air Quality Index from the provided 24-hour concentration |
so2_1 | Calculates the sulfur dioxide Air Quality Index from the provided 1-hour concentration |
so2_24 | Calculates the sulfur dioxide Air Quality Index from the provided 24-hour concentration |