Skip to content

migurski/census-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

census-tools

These tools help make it easy to extract data from the online zip file of the 2000 U.S. Census without having to download them first. You can choose from a number of different summary levels like state, county, tract, and block, filter by geographic bounds, select the specific topics you're interested in, and convert everything to simple tables or GeoJSON data.

census2text.py

Usage: census2text.py [options] [list of table IDs]
Help: census2text.py --help

Convert remote U.S. Census 2000 data to local tab-separated text files.

Examples:

Housing basics for counties in Rhode Island.

census2text.py --state 'Rhode Island' H1 H3 H4

Age breakdowns for census tracts around Oakland, CA.

census2text.py --state California --bbox 37.86 -122.35 37.70 -122.10 --geography tract P12

Family type and employment state for counties around New England.

census2text.py --file SF3 --bbox 47.7 -80.7 38.4 -66.4 P44

Complete documentation of Summary File data is dense but helpful:

See Chapter 7, page 228 for explanation of column names in output.

Other summary files have similar docs:

Available summary files: SF1, SF3.

Available table IDs for each summary file:

Available summary levels: county, state, block, tract.

See also numeric summary levels in:

text2geojson.py

Accepts text format from census2text.py, and converts it to useful GeoJSON (http://geojson.org).

About

Scripts for dealing with U.S. Census data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages