This library contains custom scripts to prepare a SQLite database utilizing Census LEHD LODES data. There are Python scripts to download, unzip, and save to disk files from one or multiple states' LODES data. The scripts also contain functions to facilitate the creation of a Spatialite database which enables a user to query, aggregate, and analyze LODES data using SQL queries. There are also scripts which offer basics for connecting to the SQLite database in Python, which allows for querying and pulling data into Jupyer Notebooks or other Python-based analysis frameworks.
LODES Dataset Construction Workflow
This project has a few key functions. The first key use is to allow a user to download and unzip an entire state's LODES dataset- all OD, RAC, and WAC files. The second key use is to allow a user to build a Spatialite database with the organized LODES data. Lastly, the scripts have utility for loading in geometries into the Spatialite database.
- Download
- Unzip
- Build Spatialite
- Load LODES into Spatialite
- Load geometries into Spatialite.
- Download, unzip, and load all data into Spatialite.
Contact cgilchriest@dallascollege.edu or lmic@dallascollege.edu
- More complex analysis functions for college-specific applications
- Visualization functions
Developed by Camille Gilchriest while at Dallas College LMIC, Fall 2022. Code uploaded Spring 2024. Siginificant revision and organization support from Ammar Nanjiani.
This project is in progress.