X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=bin%2Fdownload_data;h=da3cb75d38a10503042390dd508ea291dc051f37;hb=eb51c39a919ac83319a6ced262051e6f8b0f00c4;hp=7e59ece5ec7b3ab7c8a4f3d60b9e78e07265b55b;hpb=2f9baf2bf5df3f7fa8191a7898e9ede706f61f7c;p=dead%2Fcensus-tools.git diff --git a/bin/download_data b/bin/download_data index 7e59ece..da3cb75 100755 --- a/bin/download_data +++ b/bin/download_data @@ -17,16 +17,25 @@ from Data import State, County # Create the State objects. -dc = State(11, 'District of Columbia') -md = State(24, 'Maryland') -ny = State(36, 'New York') -pa = State(42, 'Pennsylvania') -va = State(51, 'Virginia') -wv = State(54, 'West Virginia') +de = State(10, 'Delaware', 'DE') +dc = State(11, 'District of Columbia', 'DC') +md = State(24, 'Maryland', 'MD') +nj = State(34, 'New Jersey', 'NJ') +ny = State(36, 'New York', 'NY') +pa = State(42, 'Pennsylvania', 'PA') +va = State(51, 'Virginia', 'VA') +wv = State(54, 'West Virginia', 'WV') # Now we add all of the counties belonging to each state, starting -# with Washington D.C. +# with Delaware. + +de.add_county(1, 'Kent') +de.add_county(3, 'New Castle') +de.add_county(5, 'Sussex') + + +# Washington D.C. dc.add_county(1, 'District of Columbia', True) @@ -59,6 +68,31 @@ md.add_county(45, 'Wicomico') md.add_county(47, 'Worcester') +# New Jersey + +nj.add_county(1, 'Atlantic') +nj.add_county(3, 'Bergen') +nj.add_county(5, 'Burlington') +nj.add_county(7, 'Camden') +nj.add_county(9, 'Cape May') +nj.add_county(11, 'Cumberland') +nj.add_county(13, 'Essex') +nj.add_county(15, 'Gloucester') +nj.add_county(17, 'Hudson') +nj.add_county(19, 'Hunterdon') +nj.add_county(21, 'Mercer') +nj.add_county(23, 'Middlesex') +nj.add_county(25, 'Monmouth') +nj.add_county(27, 'Morris') +nj.add_county(29, 'Ocean') +nj.add_county(31, 'Passaic') +nj.add_county(33, 'Salem') +nj.add_county(35, 'Somerset') +nj.add_county(37, 'Sussex') +nj.add_county(39, 'Union') +nj.add_county(41, 'Warren') + + # New York ny.add_county(1, 'Albany') @@ -395,5 +429,7 @@ wv.add_county(109, 'Wyoming') # Now that the counties have been added, create a list of states to # pass to the download_lines function. -states = [dc, md, ny, pa, va, wv] +states = [de, dc, md, nj, ny, pa, va, wv] +Data.download_sf1(states) +Data.download_blocks(states) Data.download_lines(states)