Debian Codegraph @

examples/realdata/census_2000/README.txt

raw
1 GEOGRAPHIC HEADER FILE
2 ----------------------
3
4 The file 'usgeo_excerpt.upl' in this directory is the first 1000 rows of the "Geographic Header File"
5 distributed with the "Race and Hispanic or Latino Summary File" dataset from the 2000 US Census.
6
7 <http://www2.census.gov/census_2000/datasets/Race_Hispanic_Latino_Summary_File/USGEO.UPL.ZIP>
8
9 The file 'census2000_geo_schema.csv' is suitable for use with the 'in2csv' tool to convert the
10 sample file into CSV. Note that 'usgeo_excerpt.upl' is in ISO-8859-1 (latin-1) encoding.
11
12 Thus, to convert the fixed-width geographic header file to CSV, use:
13
14 % in2csv -e iso-8859-1 -f fixed -s census2000_geo_schema.csv usgeo_excerpt.upl > usgeo.csv
15
16 As is standard with csvkit tools, the output csv is UTF-8 encoded. To see that it worked, try:
17
18 % csvcut -c 64 usgeo.csv
19
20 This will print the NAME column to STDOUT.
21
22 The documentation for that dataset notes, "The geographic header record is standard across all
23 electronic data products from Census 2000." Therefore, the same schema can also be used to convert
24 the geographic header files for the more in-depth files accompanying the SF1 and other data sets.
25
26 VOTING RIGHTS DETERMINATION
27 ---------------------------
28 By law, the Director of the Census is to determine which political subdivisions are subject to the minority
29 language assistance provisions of Section 203 of the Voting Rights Act.
30
31 <http://www.census.gov/mp/www/cat/decennial_census_2000/voting_rights_determination_file_on_cd-rom.html>
32
33 The file VROUTFSJ.TXt is the result of the report, limited to the subdivisions so identified.
34 <http://www2.census.gov/census_2000/datasets/determination/VROUTFSJ.TXt>
35 (This data is actually also made available as CSV, but there is also a complete fixed-width file which might be
36 interesting for analysis outside the specific question of minority language voting assistance which is in the
37 same format as the test file here, but which is much too large to use for an example.)
38
39 To convert the fixed-width voting rights determination file to CSV, use:
40
41 % in2csv -f fixed -s determination_schema.csv VROUTFSJ.TXt > determination.csv
42
43 To see that it worked, try:
44
45 % csvcut -c 18 determination.csv
46
47 For complete documentation of the meaning of the fields described in determination_schema.csv consult:
48 <http://www2.census.gov/census_2000/datasets/determination/vr_doc_rev7.wpd>