Code to support: PM2.5 exposure disparities persist despite strict vehicle emissions controls in California
Creators
Description
This Github repository contains the Python code for the paper titled "PM2.5 exposure disparities persist despite strict vehicle emissions controls in California", currently in review at Science Advances. For more information on the analysis, including methodological details, please see the paper: link.
Below are links to the key tools and datasets used in this paper:
- ECHO-AIR: https://echo-air-model.github.io/
- California InMAP Source-Receptor Matrix: https://zenodo.org/record/2589760. (Accessed Mar. 28, 2024)
- Year-2010 race-ethnicity data at Census block level: https://www.nhgis.org/.
This repository contains scripts for reproducing the main text figures. The scripts are organized into two folders, as described below.
Code Description
ECHO-AIR Output Processing
Our estimates of PM2.5 concentration are modeled using ECHO-AIR, a novel open source pipeline based on the InMAP Source-Receptor Matrix. All of the relevant data outputs from ECHO-AIR are included in our data repository.
To simplify the scripts used to reproduce the main text figures, we have first included two pre-processing scripts for summarizing these gridded concentration estimates.
a_pre_process_by_race_ethnicity.py
: summarizes the population-weighted mean exposure concentration and exposure disparity for each racial-ethnic group for each vehicle type.b_pre_process_by_policy.py
: summarizes the population-weighted mean exposure concentration and exposure disparity from each vehicle type for each year for AB617 community residents in aggregate, SB535 community residents in aggregate, AB617 community residents by community, and regional boundaries defined in Koolik et al. (2024)
Main Text Figures
The four figures from the main text of Koolik et al. (2024) are fully reproducible via four scripts included in this repository.
figure01_pwm_and_re.py
: creates the line plots of population-weighted mean exposure and relative disparity in exposure by each demographic groupfigure02_exposure_distributions.py
: creates the distribution of population by race-ethnicity at each decile of exposure to the full vehicle fleet in 2000 and 2019figure03_disparity_by_source.py
: creates the three-panel figure that breaks down absolute and relative disparity by vehicle fleet for Hispanic Californiansfigure04_spatial_heterogeneity.py
: creates the map of contributions to disparity by vehicle type for the full state, three geographic regions, the two aggregate categories of environmental justice communities, and each of California's AB617 communities
Requirements
All six scripts included in this repository are written in Python 3.10.2. For reproducibility, we have tried to minimize the number of libraries used to generate these figures. Each library (and corresponding version) is listed below.
- cmcrameri (v1.7)
- geopandas (v0.10.2)
- matplotlib (v3.5.1)
- numpy (v1.22.3)
- pandas (v1.4.2)
- seaborn (v0.11.2)
Files
lkoolik/mobile_retrospective-1.0.0.zip
Files
(26.5 kB)
Name | Size | Download all |
---|---|---|
md5:8a52fb93c1859a2af17674fba5ea7b76
|
26.5 kB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/lkoolik/mobile_retrospective/tree/1.0.0 (URL)