Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Scripts for dealing with U.S. Census data

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.mkd
Octocat-spinner-32 SF1.txt
Octocat-spinner-32 SF2.txt
Octocat-spinner-32 SF3.txt
Octocat-spinner-32 census2text.py
Octocat-spinner-32 setup.py
Octocat-spinner-32 text2geojson.py
README.mkd

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).

Something went wrong with that request. Please try again.