Comments (7)
I already wanted to do it, but one threshold is an 8 hour rolling average of CO (irrc). Currently it is not easy to get data from different time ranges. I have to do some refactoring first.
Thanks for the suggestion and the CLI utility!
from open-meteo.
A value for AQI would be a really nice addition! +1
from open-meteo.
First draft on localhost... Wdyt?
Based on https://www.eea.europa.eu/themes/air/air-quality-index Thresholds are explained after clicking "About the European Air Quality Index". The only annoyance is that the index range from 0 to 100 is not well defined in the specification and I had to "invent" it. It is similar however to the old common air quality index
from open-meteo.
Looks promising!
I agree that the info doesn't make it completely clear. My understanding from a quick read is that the following is key:
The index corresponds to the poorest level for any of five pollutants, according to the table shown below.
(though a subset of the "five" pollutants is used in different scenarios)
So the index is not some sort of amalgamation/combination of all five (or subset of five) values but rather it's just based on the value for the worst one.
Just thinking aloud, let's say the poorest level for a particular location is a value of 125 for O3, based on a scale of 0 to 800 (because "Air quality measurements that exceed the maximum values in the ‘extremely poor’ category are not taken into account for the index calculation, since these values are typically found to be erroneous"). So the Index would be 100 * 125 / 800 = 15.6?
from open-meteo.
PR merged! Final version now contains European and U.S. AQI
The tables now only show thresholds in ug/m3 or ppm. Each threshold is evaluated as a piecewise linear function as explained on wikipedia. So 125 ugm3 ozone would be in the range of 100-130 (moderate) and result in an index value of ~56 (index 40-60 is moderate).
Both EU and US indices use different scales
from open-meteo.
@patrick-zippenfenig great work! It would be nice to add the MEP index for China too... if I have a moment to try and figure out how you've done it for the others, I could attempt a PR... wouldn't completely trust myself though!
from open-meteo.
Based on https://www.eea.europa.eu/themes/air/air-quality-index Thresholds are explained after clicking "About the European Air Quality Index". The only annoyance is that the index range from 0 to 100 is not well defined in the specification and I had to "invent" it. It is similar however to the old common air quality index
The official website uses a scale from 1.00 to 6.00+. See API calls:
I believe the app uses the same API to be able to render a progressive circle:
from open-meteo.
Related Issues (20)
- Requests called from a server located in Singapore are experiencing ETIMEDOUT errors. HOT 3
- read ECONNRESET with large list HOT 2
- Air Quality History HOT 1
- No wind_gusts_10m data returned HOT 1
- How to Calculate Number of Requests for an API Call ? HOT 1
- API "timezone" query returns all null for self-hosting HOT 3
- Historical data returning "Failed to fetch" HOT 3
- [BUG] ICON-D2-EPS has no `rain` values HOT 1
- [Feature request] Add daily average cloud cover to historical endpoint HOT 2
- Current condtions HOT 1
- What is the difference between weather forecast data and historical weather data for same days? HOT 1
- [BUG] Weather code `null`s for ECMWF ensemble HOT 1
- Feature Request: Finer vertical resolution HOT 2
- [Feature Request] Add China AQI Index HOT 1
- Downloading ECMWF data fails HOT 21
- openapi.yml gpt API specs issues HOT 4
- How frequently is the best_match model's data refreshed? HOT 1
- Add ICON visibility variable HOT 1
- GraphCast returning questionable data HOT 3
- Bad request for Wairiki Fiji HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-meteo.