Geography 353 Cartography and Visualization

...to Geog 353 Main Page and Course Description
...to Geog 353 Syllabus
...to Geog 353 Course Schedule and Lecture Outlines
...to Geog 353 Laboratory Information and Student Projects


Geog 353 Lab 3: Data Processing: Part 1: Excel
Update: 10/30/09
50 points
Due: Monday October 5

The data (historical population figures, by county, for your state or states) downloaded from the WWW must be processed in order to use in ArcGIS. There are two basic data processing tasks (and two labs) involved in this project.

In this first data processing exercise, you must transform your data (one text file and one Excel file) into a single file in a format you can use in ArcGIS. You will use a spreadsheet (Excel) to perform this exercise, generating a DBF file. Exercise 5 (after you learn a bit about ArcGIS in Exercise 4) will entail importing the file generated in this exercise into ArcGIS, where you will use ArcGIS's equation editor to generate the data on population change that you will eventually map.

Lab 3 Goal: Properly formatted DBF file, entry in your Digital Lab Blog about processing your data. Please be prepared to proudly show the instructor your properly formatted DBF file (with county populations from 1900 to 2000 and the 2008 estimates) when this exercise is due.

The Details:

1) Make sure you have all your census data: the 1900-1990 data (text file), the 2000 data, and the 2008 estimated population data (text or Excel files) for your state or states. Please don't use other forms of the data - PDF, etc. - for this exercise. Ask Krygier if you don't think you have the right data format. Keep these files in your Data folder.


2) Locate Microsoft Excel on your computer. Under the stupid circle menu in the upper left select Open, and navigate to the directory (folder) where your population data file is located. If you have more than one state, work with one state data file at a time, and combine them when all are cleaned up and in the correct format file.


3) Make sure that the Files of Type: shows "all files." Open your file. A wizard window should pop up. This is a tool for turning a simple text file into an Excel file.


4) Look at your data in Excel. Holy mother of pearl!

Ponder this fine state of affairs for a moment. What are the implications of free data from the WWW? Converting data is often a messy and horrifying process. You have a relatively small file or files to deal with for your one (or several) states. What if you had to process data like this for all the counties in the US? Holy crap!

You now must clean up your file, before you convert it to a format ArcGIS likes. A sample of how your data should look is included below. You will have to cut and paste and rearrange things to get it to look like it should. Beware of a few things:


5) A Few More important Modifications of your data for ArcGIS: Things have to be set up just so:


This is what your file should sorta look like...


6) Add the Census 2000 and estimated 2008 data to your file. Add it as a new column called Y2000 and Y2008 adjacent to the Y1990 data in the Excel spreadsheet (as above). Lets assume you are using an Excel file (.xls) downloaded from the Census Bureau: Open that file in Excel. Copy the 2000 column but only the population of your first to your last county. Paste it in your file with the other historical data; after you do this a small window should appear near the bottom of the column: click on it. Select the option to format the column like the destination. This should remove commas and any other formatting. If you use some other source, you could cut and paste, or import the file and combine with the rest of the population data. Ask your instructor for help if you need it.


7) Really Important! More than one state? Create a cleaned up text file for each, then open the alphabetically 1st state and save it under a different name (as a text file). Then open, copy, and paste your other states into the new file in alphabetical order. Keep one set of headers (Y2000, Y1990, etc.) at the top of the file. Keep the individual state text files.


8) And...finally...save the file as a DBF4 or Dbase4 file:


You should always be ready for some kind of wipe out when working with computers and software.


9) Don't panic.

10) Open your cleaned up file (statename.txt) in Excel. Save As... an Excel spreadsheet format file (.xls) in your Data folder.

11) An alternative to Microsoft Office (Word, Excel, etc.) is Open Office. Open Office is open source and free and well worth a look as an alternative to Microsoft products. For the fall of 2009, follow the instructors guidance to install Open Office on your computer. Place a shortcut on the desktop. Open the software.

12) Under the File menu select Open and navigate to your .xls file of state (or states) population data. Open the file, then from the File menu select Save As... and select DBF as the file format. Save the file in your Data folder. For those of you with more than one state, create a DBF file for the combined state file.


Your file should now work in ArcGIS (and we will certainly find out in Lab 5). Be aware that you may have to come back to Open Office to fix problems in the data that will only show up later. Those of you with one state should have four versions of your data safely stowed in your Data folder:


Those of you with more than one state should have a few extra files in you Data folder:

Make sure you have copies of these files backed up.


Yeesh! Jot down a few inspired paragraphs about the joy of processing data for such mapping projects in your digital lab blog. What if you had a really big project, like mapping all the counties in the entire US?


E-mail: jbkrygier@owu.edu

...to Geog 353 Main Page and Course Description
...to krygier teaching page.
...to krygier top page.

OWU Home
OWU Geology and Geography Home