Exploring data-driven solutions for local environmental groups.
An internal incubator project for the Code for Chicago Brigade. Using publicly available datasets (from sources such as EPA, PurpleAir, and Chicago Data Portal), this project aims to examine the air quality measures throughout Chicago and explore data-driven solutions for local environmental groups.
Possible explorations include studying correlations between air quality and socioeconomic indicators, developing localized air quality reports and warnings.
- Clone the repository.
- Set up a local environment using the requirements.txt file.
pip install -r requirements.txt
- Obtain an EPA AirNow API key here and a PurpleAir API key by emailing [email protected]
- Create a file called
.env
in the root directory. This file is ignored via the.gitignore
file to avoid committing secrets. - Open
.env
in a text editor and add the following as the contents, replacing the second part with your personal API key:
EPA_KEY='REPLACE_ME_WITH_AIRNOW_API_KEY'
PURPLE_AIR_KEY='REPLACE_ME_WITH_PURPLE_AIR_API_READ_KEY'
The map above highlights the lack of official air quality sensors in more urban and industrial areas of Chicago. This map can be created by running src > visualization > map_airnow_sensors.py
- How well is the AirNow data correlated with more localized PurpleAir sensors?
- Start with PurpleAir sensors in the vicinity of McKinley Park
- Can we use open PurpleAir data to create more localized air quality reports and warnings?
- Are the AirNow sensors equitably located?
- Use Census or Social Vulnerability Index data
If you have a feature request or notice a bug, please add an issue. If you would like to contribute to the code base, but are unsure how, please check out the First Contributions repository.