zstatmanweil / EJ-analysis-map

A spatial environmental justice analysis of the SDWA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

I am conducting the same type of spatial environmental justice analysis I did for my thesis on disparities in compliance with the Safe Drinking Water Act (SDWA), but this time entirely in Python rather than with desktop geospatial software (e.g., ArcGIS). Additionally, my thesis focused on Pennsylvania, but this project will focus on New Jersey so I can compare my results. This project will give me the opportunity to use geospatial Python libraries (e.g., geopandas, rasterio), build a small web application, and create a beautiful and useful web map where the user can explore drinking water quality and environmental justice concerns.

Research Questions

  1. Are there social disparities in CWS compliance with the SDWA? Are there more violations (total and health-based) in low-income communities, communities with a higher proportion of people of color, and/or rural communities?

  2. How do the results differ depending on the spatial analysis method used to estimate the demographic characteristics of the population served by the CWS?

Project Steps

  • Access Census data through the Census APIs, and use Jypter Notebooks to explore the demographic data by tract, specifically percent below the poverty line and percent people of color.
  • Access the SDWA violation data through the Envirofacts REST API, and use Jupyter Notebooks to explore and organize the data.
  • Make an ad hoc data pipeline for accessing and organizing the public water system data from the Envirofacts REST API so the analysis is reproducible in other states.
  • Etimate the population and the public water systems' sociodemographic characteristics within each water system through areal weighting. Create maps to visualize the results.
  • Etimate the population and the public water systems' sociodemographic characteristics within each water system through dasymetric mapping. Create maps to visualize the results.
  • Make the areal weighting and dasymetric processes reproducible through a chain of Python scripts.
  • Conduct a statistical analysis of the results to determine the correlation, if any, between the EJ variables and the SDWA violations. The negative binomial regression code I created for the Pennsylvania data can be found here:
  • Get the map and statistical results on the web!
    • The map is working! But is unfortunately not on the web. web_app

Website

Notes

A lot of my data analysis has been completed in Jupyter Notebooks, which is usually easily viewable on GitHub but sometimes does not load properly. If not loading, the notebooks can be viewed by cloning the repository and viewing in Jupyter Notebooks. Jupyter Notebooks can be installed as follows if you have Python 3 installed:

python3 -m pip install --upgrade pip

python3 -m pip install jupyter

To run the notebook, run the following command in your Terminal:

jupyter notebook

About

A spatial environmental justice analysis of the SDWA


Languages

Language:Jupyter Notebook 97.5%Language:HTML 1.6%Language:Python 0.5%Language:JavaScript 0.3%Language:CSS 0.1%Language:Dockerfile 0.0%