An open API service indexing awesome lists of open source software.

https://github.com/ringsaturn/go-aqi

🚧 WIP
https://github.com/ringsaturn/go-aqi

aqi epa mep

Last synced: 2 months ago
JSON representation

🚧 WIP

Awesome Lists containing this project

README

        

# Compute AQI in Go [![Go Reference](https://pkg.go.dev/badge/github.com/ringsaturn/go-aqi.svg)](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)