An open API service indexing awesome lists of open source software.

https://github.com/innovativeinventor/census-process

Processing pipeline for PL-94 U.S. Census redistricting data @mggg. Live at https://districtr.org
https://github.com/innovativeinventor/census-process

Last synced: 22 days ago
JSON representation

Processing pipeline for PL-94 U.S. Census redistricting data @mggg. Live at https://districtr.org

Awesome Lists containing this project

README

          

## census-process
This is a processing pipeline for PL-94 U.S. Census redistricting data.
It turns raw Census data into usable shapefiles, which can then be imported and analyzed by GIS software like GeoPandas and QGIS.
Additionally, it produces composite racial/ethnic columns like `APBVAP20` (the number of persons that are any part black and of voting age).

You can download these shapefiles here: http://data.mggg.org.s3-website.us-east-2.amazonaws.com/census-2020/.

## Usage
Running `main.py` will produce files inside the `final/` folder.

```
python main.py [state] [census_level] [census_ftp_location]
```

For example,

```
python main.py AL block
```

will produce files in `final/al/`.

If you want to generate shapefiles for the entire country, then run:
```
bash run.sh
```

## Included data/columns
Every racial/ethnic column used at at MGGG is generated by the pipeline.
This includes the following columns, which are broken out by category for easy reference.
All race/ethnic definitions are from the Census (except for the composite columns).

Racial/ethnic columns:
- BPOP20
- OTHERPOP20
- HISP20
- NHPIPOP20
- WPOP20
- AMINPOP20
- ASIANPOP20
- 2MOREPOP20
- TOTPOP20

Corresponding racial/ethnic columns, voting age population:
- BVAP20
- OTHERVAP20
- HVAP20
- NHPIVAP20
- WVAP20
- AMINVAP20
- ASIANVAP20
- 2MOREVAP20
- VAP20

Composite columns:
- APAMIPOP20 (any part american indian)
- APAPOP20 (any part asian)
- NWBHPOP20 (non black, white, or hispanic)
- APBPOP20 (any part black)

Corresponding composite columns, voting age population:
- APAMIVAP20
- APAVAP20
- NWBHVAP20
- APBVAP20

Census columns such as GEOID20 and NAME20 are also included.