-
Notifications
You must be signed in to change notification settings - Fork 29
Added EU's CAQI algorithm #8
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
base: master
Are you sure you want to change the base?
Conversation
hrbonz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also provide a reference to the standard in the README? That helps with reviewing the code
aqi/algos/caqi.py
Outdated
|
|
||
|
|
||
| class AQI(PiecewiseAQI): | ||
| """Implementation of the EPA AQI algorithm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the name here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name or the comment?
Because class name(AQI) seems to be used in get_algo implementation?
python-aqi/aqi/algos/__init__.py
Line 20 in 1de8073
| return mod.AQI() |
| POLLUTANT_NO2_1H: Decimal('1.'), | ||
| }, | ||
| 'units': { | ||
| POLLUTANT_O3_1H: 'µg/m³', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are those units correct? O3, CO, SO2, NO2 are traditionally measured in ppm/ppb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aqi/algos/caqi.py
Outdated
| (26, 50), | ||
| (51, 75), | ||
| (76, 100), | ||
| (101, 1000)], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should probably think about adding code to handle open scales like this one. Let me know if you have suggestions here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No suggestions yet:)
Interesting thing is that I did not find algorithm for calculating CAQI in https://www.airqualitynow.eu/download/CITEAIR-Comparing_Urban_Air_Quality_across_Borders.pdf
But I checked output of Your algorithm and it matches official measurement in my city.
|
I have updated README with CAQI |
|
Hey, this thread is old but is there any chance of merging this? Thanks |
Enabling(24h only) CAQI index calculation