A docker container for assigning census block group and/or tract identifier to geocoded addresses.
docker run --rm -v $PWD:/tmp degauss/census_block_group:0.4.0 my_address_file_geocoded.csv 2010
The first argument (
my_address_file_geocoded.csv) is the name of your geocoded csv file.
The second argument (
2010) is the year for assignment of census geographies. Available years for census block group and census tract identifiers include 1990, 2000, 2010, and 2020. Additionally, tracts identifiers are available for 1970 and 1980.
block group shapefiles for 1990, 2000, and 2010, as well as tract shapefiles for 1970 and 1980, were obtained from NHGIS and transformed using the
00_make_block_group_shp.R file in this repository.
block group shapefiles for 2020 were obtained directly from the U.S. Census Bureau via
The transformed block group shapefiles are stored at
The first 11 characters in a census block group GEOID indicate the census tract, county and state that the block group lies within. The US Census GEOIDs are constructed in a manner that reflects the geographical hierary of the designated area. By using the segments of the GEOID, it is possible to select data based on area types further up in the hierarchy.
|Area Type||GEOID||Number of Digits||Example Area||Example GEOID|
|County||State + County||2+3=5||Hamilton County||39061|
|Census Tract||State + County + Tract||2+3+6=11||Tract 32 in Hamilton County||39061003200|
|Block Group||State + County + Tract +
|2+3+6+1=12||Block Group 1 in Tract 32||390610032001|
For detailed documentation on DeGAUSS, including general usage and installation, please see the DeGAUSS webpage.
Steven Manson, Jonathan Schroeder, David Van Riper, Tracy Kugler, and Steven Ruggles. IPUMS National Historical Geographic Information System: Version 15.0 [dataset]. Minneapolis, MN: IPUMS. 2020. http://doi.org/10.18128/D050.V15.0