public static void main(String[] args) {
		make_translate();
		
		String delimiter = "\t";
		String infile = "C:\\Users\\kbaas.000\\Documents\\autoredistrict_data\\vtd_data.txt";
		String outfile = "C:\\Users\\kbaas.000\\Documents\\autoredistrict_data\\vtd_data_out.txt";
		
		Vector<String[]> records = readDelimited(new File(infile),delimiter,"\n");
		
		int source_col = 0;
		int geoid_col = 0;
		String[] hss = records.get(0);
		for( int i = 0; i < hss.length; i++) {
			if( hss[i].equals("SLDL_2010")) {
				source_col = i;
				break;
			}
		}
		for( int i = 0; i < hss.length; i++) {
			if( hss[i].equals("GEOID10")) {
				geoid_col = i;
				break;
			}
		}
		String[] hss2 = new String[hss.length+5];
		for( int i = 0; i < hss.length; i++) {
			hss2[i] = hss[i].trim();
		}
		
		hss2[hss.length+0] = "SLDL10_1";
		hss2[hss.length+1] = "SLDL10_2";
		hss2[hss.length+2] = "SLDL10_4";
		hss2[hss.length+3] = "SLDL10_8";
		hss2[hss.length+4] = "SLDL10_16";
		
		records.set(0,hss2);
		
		for( int j = 1; j < records.size(); j++) {
			String[] ss = records.get(j);
			
			String[] ss2 = new String[ss.length+5];
			for( int i = 0; i < ss.length; i++) {
				ss2[i] = ss[i].trim();
			}
			int n1 = Integer.parseInt(ss[source_col]);
			int n2 = translation_lookup[n1];
			int n4 = (n2 + n2 % 2)/2;
			int n8 = (n4 + n4 % 2)/2;
			int n16 = (n8 + n8 % 2)/2;
			
			ss2[ss.length+0] = ""+n1;
			ss2[ss.length+1] = ""+n2;
			ss2[ss.length+2] = ""+n4;
			ss2[ss.length+3] = ""+n8;
			ss2[ss.length+4] = ""+n16;
			
			if( fix_geoid) {
				ss2[geoid_col] = "0"+ss2[geoid_col];
			}
			records.set(j, ss2);
			
		}
		
		
		
		writeDelimited(new File(outfile),delimiter,"\n",records);
		
	}