Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b1209e5
Add comments on how the code works.
mattwigway Jul 26, 2014
71fe560
Update docs, get rid of SF3.
mattwigway Jul 26, 2014
378d244
Update summary levels; remove one of the ZCTA types, and the nation/r…
mattwigway Jul 26, 2014
4ccf828
Recode geographic header.
mattwigway Jul 26, 2014
59c1174
Refactor geographic header (geo_lines) function for 2010 geographic h…
mattwigway Jul 26, 2014
7bcff3b
Much refactoring for 2010 census.
mattwigway Jul 26, 2014
8efdab1
Read csv for fields
peteragao Jul 26, 2014
60e0f90
csv of 2010 data field descriptors
peteragao Jul 26, 2014
4657a8c
Remove 2000 files, rename 2010 file.
mattwigway Jul 26, 2014
caa9d19
Seems to be working.
mattwigway Jul 26, 2014
1e0709f
Set width of matrix subset to be 4.
mattwigway Jul 26, 2014
dc4d7a2
Don't print url to stdout.
mattwigway Jul 26, 2014
9339f16
Add option to get a specific county.
mattwigway Jul 26, 2014
961041f
No longer assume that all files have all rows and are in exactly the …
mattwigway Jul 27, 2014
8cd68fb
Fix bug with matrices with >= 10 columns
mattwigway Jul 27, 2014
793600c
Updated field offsets.
mattwigway Jul 27, 2014
8ee268f
Allow county option to be omitted.
mattwigway Jul 27, 2014
fa2e0a5
Handle --state in a halfway-reasonable way since there are no nationa…
mattwigway Jul 27, 2014
899a665
Rework column name handling code.
mattwigway Jul 28, 2014
1bb90d6
rm stuff no longer needed.
mattwigway Jul 28, 2014
6f4905b
Add a script to compare census2text.py with the Census Bureau API.
mattwigway Jul 28, 2014
6997346
Better docstring/comment in test.
mattwigway Jul 28, 2014
7f5fded
Fix bug with running from other direction.
mattwigway Jul 30, 2014
36f86e4
Rename new census2text for 2010 census.
mattwigway Jul 31, 2014
98291aa
Update README for 2010.
mattwigway Jul 31, 2014
c9afbde
Missed one when renaming census2text2010.py
mattwigway Jul 31, 2014
8dcaa8e
Put back accidentally-deleted files from 2000.
mattwigway Aug 10, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 34 additions & 3 deletions README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ 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
2000 and 2010 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
--------------
census2text2000.py
------------------

Usage: census2text.py [options] [list of table IDs]
Help: census2text.py --help
Expand Down Expand Up @@ -53,7 +53,38 @@ See also numeric summary levels in:
* http://census-tools.teczno.com/SF1-p083-84-sequence-state.pdf
* http://census-tools.teczno.com/SF1-p087-88-sequence-national.pdf

census2text2010.py
------------------

Usage: census2text2010.py [options] [list of table IDs]

Convert remote U.S. Census 2010 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

Complete documentation of Summary File data is dense but helpful:
http://www.census.gov/prod/cen2010/doc/sf1.pdf

Column descriptions are start on page 183.

Available summary files: SF1.

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

See also numeric summary levels in the SF1 documentation, page 107.

text2geojson.py
--------------

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

test.py
-------

Runs census2text2010.py and compares its output to the Census API for all variables aggregated to Knox County, Tennessee.
Loading