Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AQI breakpoints to 2024 values #208

Merged
merged 3 commits into from
Oct 19, 2024

Conversation

MallocArray
Copy link
Contributor

#207

Update breakpoints to follow EPA guidelines from 2024

Also correct the formula to follow what is published on Wikipedia which changes a few values by 1 or 0.1 to match the existing breakpoints, such as Index low previously being 50 when the link shows it should be 51

https://www.epa.gov/system/files/documents/2024-02/pm-naaqs-air-quality-index-fact-sheet.pdf
https://en.wikipedia.org/wiki/Air_quality_index#Computing_the_AQI

@airgradienthq
Copy link
Owner

@MallocArray Thank you for contributing this. We will merge it in parallel of the adjustments we will need to do on the AirGradient dashboard side.

@airgradienthq
Copy link
Owner

@MallocArray is there a reason why you have the upper limit capped at 325 ug/m3?
The PMS sensor delivers data up to 500. Shouldn't we increase that number?

else if (pm02 <= 325.4)

@MallocArray
Copy link
Contributor Author

It is based on the EPA formula found here:
https://en.wikipedia.org/wiki/Air_quality_index#Computing_the_AQI

They changed the breakpoints for the categories of AQI, and the highest PM2.5 range is 325 which will still calculate an AQI up to 500. If the PM2.5 was reported to be higher, it should no longer run through the formula, but report the max AQI value of 500
https://www.epa.gov/system/files/documents/2024-02/pm-naaqs-air-quality-index-fact-sheet.pdf

@airgradienthq
Copy link
Owner

There is the term "beyond index" by the EPA see for example:
https://2009-2017.state.gov/m/pri/gdi/airquality/c70218.htm

Also here it seems the newer version does not have the 500 as upper cap anymore:
image

https://www.epa.gov/system/files/documents/2024-02/pm-naaqs-air-quality-index-fact-sheet.pdf

I would recommend that we do not cap at 500.

@MallocArray
Copy link
Contributor Author

Thank you for the links. It also brought me to the AirNow calculator which also does not cap at 500.
https://www.airnow.gov/aqi/aqi-calculator-concentration/

I'll revise the PR to no longer have an upper limit

@samuelbles07 samuelbles07 changed the base branch from master to develop October 19, 2024 05:14
@samuelbles07
Copy link
Collaborator

We will merge and make the change to accept values higher more than 500

@samuelbles07 samuelbles07 merged commit e47a905 into airgradienthq:develop Oct 19, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants