In January 2025, the Eaton and Palisades fires burned thousands of homes in Los Angeles County. A wildfire’s impact depends not only on where it burns but also on who lives there: communities differ in their resources to evacuate, recover and rebuild. Here we will combine fire perimeters with the Environmental Justice Index to look at the social dimensions of these two fires. In this discussion section, you will:
explore the EJI metadata and choose variables that could influence a community’s response to a wildfire
spatially join census tracts with the fire perimeters
clip census tracts to the fire perimeters and compare clipping with a spatial join
make maps of the fire perimeters over a basemap
compare an EJI variable across the two fire areas and discuss what the differences could mean for wildfire relief
The work in this section will be part of your final project blog post that will go on your website!
Setup
Find fire perimeters for the Eaton and Palisades fires that occurred in Los Angeles County in 2025. There are several datasets with this information online. You will need to independently select one from a reputable source (it may be more than one file). These are the same files you will use for assignment 4.
Add the fire perimeter datasets to the data directory in your eds220-discussion-sections directory.
Download the 2024Environmental Justice Index data for California in the geodatabase data format. Add it to the data directory in your eds220-discussion-sections directory.
About the data
The Environmental Justice Index (EJI) is a national, place-based tool that measures the cumulative impacts of environmental burden on human health and health equity. It is produced by the Centers for Disease Control and Prevention (CDC) and the Agency for Toxic Substances and Disease Registry (ATSDR) [1].
The EJI ranks every census tract in the United States on 36 environmental, social and health factors, grouped into three modules:
Social vulnerability: racial/ethnic minority status, socioeconomic status, household characteristics and housing type.
Environmental burden: air pollution, potentially hazardous and toxic sites, built environment, transportation infrastructure and water pollution.
Health vulnerability: pre-existing chronic disease burden.
The 2024 release also includes a separate climate burden module with indicators for extreme heat, wildfire and other extreme events. You can interactively explore this dataset through the EJI explorer.
The EJI download includes a data dictionary describing every variable. The first letters of each column name tell you what kind of value it holds:
E_: estimates. For example, E_NOINT is the percentage of persons without internet in the census tract.
EPL_: percentile ranks of those estimates, from 0 to 1. For example, EPL_NOINT is the tract’s percentile rank for E_NOINT.
SPL_: summed ranks for domains, modules or the overall score. For example, SPL_EJI is the sum of the percentile ranks of the environmental burden, health vulnerability and social vulnerability modules (RPL_EBM, RPL_HVM and RPL_SVM).
RPL_: percentile ranks for domains, modules or the overall score, from 0 to 1.
Values of -999 represent “no data”. The census tract boundaries come from the 2020 TIGER/Line Files.
The fire perimeters are polygons outlining the area burned by each fire. Different agencies publish perimeters for the Eaton and Palisades fires, and they may differ in how and when they were mapped. Read the metadata of the dataset you select so you know where its perimeters come from and how current they are.
1. Metadata exploration
Open the data dictionary that came with your EJI download. Update the path to match your data directory:
The skiprows=1 parameter skips the first row of the file, which is a note about the dataset rather than the column names. The encoding='cp1252' parameter tells pandas that the file uses Windows text encoding. Without it, pandas assumes UTF-8 encoding and raises a UnicodeDecodeError when it reaches characters like curly apostrophes.
Take a first look at eji_dictionary on its own. What are its columns? What does each row describe?
In the MODULE column, SVM stands for the social vulnerability module. Run the code below. Then:
Have one person explain to the group what the code is doing.
With your team, select a few variables that, in your opinion, could influence a community’s response to a wildfire. You’ll be working with some of them in the following exercises. The EJI technical documentation describes each indicator: pages 40–41 list all the indicators, and pages 43–60 have a page for each indicator in the social vulnerability module, with its definition, data source and why it matters.
2. Polygon intersection
Open the fire perimeters and the EJI data and do initial data exploration.
Spatially join the EJI data with the Palisades fire perimeter using geopandas.sjoin() to get a geopandas.GeoDataFrame that will only have the census tracts intersecting the Palisades fire perimeter.
Create an exploratory map showing
the census tracts that intersect the Palisades fire perimeter and
the Palisades fire perimeter.
Discuss how big the Palisades fire perimeter is in relation to the census tracts.
Create the corresponding geopandas.GeoDataFrame and exploratory map for the Eaton fire.
Discuss how big the Eaton fire perimeter is in relation to the census tracts intersecting the Eaton fire perimeter.
3. Polygon clipping
Clip the census tracts to the Palisades fire perimeter using geopandas.clip().
Do the same for the Eaton fire perimeter.
Visualize your data.
Discuss with your group the difference between a spatial join (step 2) and clipping (step 3). When transforming geospatial data, make sure you understand the difference and what your goal is!
When a census tract is clipped to the fire perimeter, only part of the tract is left. Do the EJI values of a clipped tract describe the people living inside the fire perimeter, or the whole tract? How does this affect what you can conclude from each method?
4. Visualize fire perimeters with a basemap
To add a basemap to our plot we will be using the contextily library.
Import the contextily library at the top of your notebook as ctx. This library is already installed in the EDS 220 environment.
Use and update the code below to plot the fire perimeters adding a basemap:
fig, ax = plt.subplots(1, 1, figsize=(14, 12))# ADD FIRE PERIMETERS: UPDATE FILL TRANSPARENCY AND COLOR# ADD LEGEND OR ANNOTATION TO IDENTIFY EACH FIRE# Add basemap using contextily# Call it after plotting the perimeters so it covers their extent,# and pass the CRS of your perimeters so the tiles line up with themctx.add_basemap(ax, crs=UPDATE.crs, source=ctx.providers.Esri.WorldStreetMap)# ADD TITLEax.axis('off')plt.tight_layout()plt.show()
5. Visualize EJI data
Decide whether you will use the census tracts from the spatial join (step 2) or from the clipping (step 3) for this map. Assign them to palisades_tracts and eaton_tracts, and write one sentence justifying your choice.
Use and update the code below to plot one of the variables you and your team explored in step 1 as being relevant to a community’s response to a wildfire.
Code
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(20, 10))# UPDATE WITH YOUR EJI VARIABLE FROM STEP 1eji_variable =''# Find common min/max for legend rangevmin =min(palisades_tracts[eji_variable].min(), eaton_tracts[eji_variable].min())vmax =max(palisades_tracts[eji_variable].max(), eaton_tracts[eji_variable].max())# Plot Palisades census tractspalisades_tracts.plot( column=eji_variable, vmin=vmin, vmax=vmax, legend=False, ax=ax1,)ax1.set_title('UPDATE TITLE')ax1.axis('off')# Plot Eaton census tractseaton_tracts.plot( column=eji_variable, vmin=vmin, vmax=vmax, legend=False, ax=ax2,)ax2.set_title('UPDATE TITLE')ax2.axis('off')# Add overall titlefig.suptitle('YOUR VARIABLE HERE - Fire Areas Comparison')# Add shared colorbar at the bottomsm = plt.cm.ScalarMappable(norm=plt.Normalize(vmin=vmin, vmax=vmax))cbar_ax = fig.add_axes([0.25, 0.08, 0.5, 0.02]) # [left, bottom, width, height]cbar = fig.colorbar(sm, cax=cbar_ax, orientation='horizontal')cbar.set_label('YOUR VARIABLE HERE (WITH UNITS)')plt.show()
With your team, write a paragraph discussing how or whether this variable is distributed differently across the two fire perimeters. What kind of implications could this have in terms of wildfire relief?
Then, list at least two things this data cannot tell you about the people affected by the fires. Think about the area each value describes, when the data was collected and what your variable measures.