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
- Host: GitHub
- URL: https://github.com/innovativeinventor/census-process
- Owner: InnovativeInventor
- Created: 2021-08-13T16:22:21.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-19T14:48:17.000Z (over 4 years ago)
- Last Synced: 2025-02-26T14:45:27.014Z (over 1 year ago)
- Language: Python
- Homepage: http://data.mggg.org.s3-website.us-east-2.amazonaws.com/
- Size: 62.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.