https://github.com/ringsaturn/go-aqi
🚧 WIP
https://github.com/ringsaturn/go-aqi
aqi epa mep
Last synced: 2 months ago
JSON representation
🚧 WIP
- Host: GitHub
- URL: https://github.com/ringsaturn/go-aqi
- Owner: ringsaturn
- License: unlicense
- Created: 2022-04-04T12:41:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-31T05:21:27.000Z (3 months ago)
- Last Synced: 2025-04-02T23:36:12.632Z (3 months ago)
- Topics: aqi, epa, mep
- Language: Go
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Compute AQI in Go [](https://pkg.go.dev/github.com/ringsaturn/go-aqi)
```bash
go get github.com/ringsaturn/go-aqi
```For usage see [examples](_example/).
NOTE: Currently the algo impl is based on the different standard files and
different AQI Standard use different units. Please ensure the input value has
been converted to the algo expect unit.| | CO | PM 2.5 | PM 10 | SO2 | NO2 | Ozone/O3 |
| -------------- | ---------------- | ---------------- | ---------------- | ---------------- | ---------------- | ------------------- |
| MEP(China)[^1] | μg/m3 | μg/m3 | μg/m3 | μg/m3 | μg/m3 | μg/m3 |
| EPA(USA)[^2] | ppm | μg/m3 | μg/m3 | ppb | ppb | ppm |[^1]: [环境空气质量指数(AQI)技术规定](https://www.mee.gov.cn/ywgz/fgbz/bz/bzwb/jcffbz/201203/W020120410332725219541.pdf)
[^2]: [Guideline for Reporting of Daily Air Quality: Air Quality Index](https://www.airnow.gov/sites/default/files/2020-05/aqi-technical-assistance-document-sept2018.pdf)