Geographical Information Systems Institute. Center for Geographic Analysis, Harvard University

Similar documents
Mapping Tabular Data Display XY points from csv

1. Open the New American FactFinder using this link:

Downloading 2010 Census Data

Downloading Census Data from American Factfinder for use in ArcGIS

Geographical Information Systems Institute. Center for Geographic Analysis, Harvard University. LAB EXERCISE 1: Basic Mapping in ArcMap

Downloading Census Data from American Factfinder2 for use in ArcGIS

Introduction to GIS & Mapping: ArcGIS Desktop

Select the Parks within Forest Acres

Lab #7: Mapping US Census Data

How to calculate population and jobs within ½ mile radius of site

How to use Microsoft Access to extract data from the 2010 Census P.L Summary Files

Exercise 1: An Overview of ArcMap and ArcCatalog

ArcGIS 10.x Basic Exercise GMU Libraries

Getting Started with ArcGIS Background and Introduction

Tutorial: Getting Census Data from Geolytics

Working with 2000 Census Data in ArcGIS: Using the US Census Bureau Web Site for SF1 and SF3 Data

Working with International Census Data in GIS

Note: you must explicitly follow these instructions to avoid problems

Geography 281 Mapmaking with GIS Project One: Exploring the ArcMap Environment

Step by Step GIS. Section 1

Section 2: Downloading and Processing Data

Tutorial 4 - Attribute data in ArcGIS

Setting Up & Mapping Network Drives Skip this session if you re in the Data Lab

Lab 1: Exploring ArcMap and ArcCatalog In this lab, you will explore the ArcGIS applications ArcCatalog and ArcMap. You will learn how to use

Introduction to Social Explorer

Geography 281 Mapmaking with GIS Project One: Exploring the ArcMap Environment

Mapping Tabular Data

Geography 281 Map Making with GIS Project Three: Viewing Data Spatially

-In windows explorer navigate to your Exercise_4 folder and right-click the DEC_10_SF1_P1.csv file and choose Open With > Notepad.

QGIS LAB SERIES GST 102: Spatial Analysis Lab 2: Introduction to Geospatial Analysis

The New American FactFinder N E W F U N C T I O N A L I T Y B U T S O M E Q U I R K S

Downloading Census Boundary Files Using Scholars GeoPortal Map and Data Library, Summer 2016

INTRODUCTION TO GIS WORKSHOP EXERCISE

Converting census data into GIS data

(1) How can I use SimplyMap to determine the top PRIZM Segments in my neighborhood?

Quick Guide to American FactFinder

Using Census Geolytics Neighborhood Change Database

USING 2001 CENSUS DATA IN ArcMap 8.2

Project 2 CIVL 3161 Advanced Editing

Searching ReferenceUSA U.S.Businesses Module

USA Census Tutorial Downloading & Mapping American Factfinder Census Data for use in ArcMap

Choropleth Mapping with GIS

Intro to GIS (requirements: basic Windows computer skills and a flash drive)

QGIS Workshop Su Zhang and Laura Gleasner 11/10/2016. QGIS Workshop

Introduction to Geospatial Technology Lab Series. Lab: Basic Geospatial Analysis Techniques

You will demonstrate two strategies commonly used to geocode data, and demonstrate an ability to gather address data from a typical state database.

Downloading shapefiles and using essential ArcMap tools

GIS Virtual Workshop: Buffering

Exercise 1: Getting to know ArcGIS

1. Start ArcMap by going to the Start menu > All Programs > ArcGIS > ArcMap.

Geocoding vs. Add XY Data using Reference USA data in ArcMap

PowerScheduler Course Tally Worksheet instructions.

Using NHGIS: An Introduction

Geocoding Reference USA data in ArcMap 9.3

Tutorial 1: Finding and Displaying Spatial Data Using ArcGIS

SAS Web Report Studio 3.1

Redistricting Data Census P.L Summary File data from the U.S. Census Bureau. NCSL Legislative Summit 2011 San Antonio, TX 08/08/2011

In this exercise we will:

QGIS Workshop Su Zhang and Laura Gleasner 11/15/2018. QGIS Workshop

Exercise Enumeration Areas

Answer the following general questions: 1. What happens when you right click on an icon on your desktop? When you left double click on an icon?

Efficient Geocoding with ArcGIS Pro

Using 2001 Census Data in ArcView 3.3 with Census Data from the CHASS Census Analyzer and Statistics Canada Digital Cartographic Files

Finding GIS Data and Preparing it for Use

CRA Wiz and Fair Lending Wiz 7.3 Service Pack 1.0: CRA Tables. User Guide

An Introduction to Geographic Information Systems (GIS) using ArcGIS 9.2

GIS Virtual Workshop: Geocoding

Calculate a Distance Matrix of Locations along River Network

LAB 1: Introduction to ArcGIS 8

GIS LAB 1. Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas.

The MAXQDA Stats Data Editor

GPS TO GIS EXERCISE (30 PTS)

Using Census Data to Calculate Social Inequality in Colombia

US Geo-Explorer User s Guide. Web:

Lab 7: Tables Operations in ArcMap

Georeferencing Tutorials and Recommended Practices

Compilation of GIS data for the Lower Brazos River basin

Exercise Producing Thematic Maps for Dissemination

Creating a Smaller Data Set from a Larger Data Set Vector Data

Tennessee Society Sons of the American Revolution On-Line Application Log Database

WOMEN'S INTERAGENCY HIV STUDY SECTION 40: GEOCODING PROTOCOL

Basic Queries Exercise - Haiti

SAFARI DOWNLOAD INSTRUCTIONS

Excel Tables & PivotTables

Euroopa Liit Euroopa Sotsiaalfond. Eesti tuleviku heaks. PC-Axis User Instructions

Visual Studies Exercise.Topic08 (Architectural Paleontology) Geographic Information Systems (GIS), Part I

Note: Use Firefox NOT Internet Explorer for this lab. The U.S. Census website and Internet Explorer do not get along well.

In this exercise, you will convert labels into geodatabase annotation so you can edit the text features.

Quick Reference for the FloridaCHARTS Fetal Death Query

Geog 459: Geographic Information Systems. Lesson 2 Laboratory Exercise

Add to the ArcMap layout the Census dataset which are located in your Census folder.

DAY 7: EXCEL CHAPTER 5. Divya Ganesan February 5, 2013

Explore some of the new functionality in ArcMap 10

Introduction to Geographic Information Systems Spring 2016

Note: Parts of the following memo are modified from internet resources that I found useful.

In this lab, you will create two maps. One map will show two different projections of the same data.

Exercise 3: Creating a Geodatabase

ArcGIS Online (AGOL) Quick Start Guide Fall 2018

Geocoding Address Data

Working with Attribute Data and Clipping Spatial Data. Determining Land Use and Ownership Patterns associated with Streams.

Transcription:

Geographical Information Systems Institute Center for Geographic Analysis, Harvard University LAB EXERCISE 5: Queries, Joins: Spatial and Non-spatial 1.0 Getting Census data 1. Go to the American Factfinder website http://factfinder2.census.gov/. Click on SHOW ME ALL to search for data. If you do not have any specific locations in the US in mind do the following: 2. First click on the Geographies. 3. Then, in the window that appears, select Census Tract as the geographic type, Massachusetts as State and then, Select a county: Middlesex, select one on more geographic areas: All Census Tracts within Middlesex County, Massachusetts. Finally click on ADD TO YOUR SELECTIONS Close this window 4. Then select the variables you are interested in for example you could search for Poverty. In the 2013 ACS 5 year estimates you could select S1701 Poverty status in the past 12 months. Then click on Download. Click on OK to get a zip file of the data. 5. Extract all the files from the zip file after double-clicking on it and then clicking on Extract all files. Step 2 Step 3 Step 4

6. ACS_13_5YR_S1701_metadata has documentation about the names of the variables. The file ACS_13_5YR_S1701_with_ann.csv can be edited in Excel. I edited this file in Excel to remove the detailed header row since ArcMap can only read one header row. (The name of the file depends on the year if you download ACS data for 2011 it will be labelled ACS_11_5YR_S1701_with_ann.csv). Further, it is saved as ACS_13_5YR_S1701_with_ann.xlsx 7. Add in ArcMap the census tracts shapefile: census_tract_2010_esri from USA_Data\USA_Census 8. Then add the table ACS_13_5YR_S1701_with_ann.xlsx to ArcMap. 9. Open the attribute table for the tracts shapefile and the table. (Right-click against the shapefile in the TOC and Open Attribute Table or Open). 10. To see them both use the Arrange Tables option in the Table Options menu. Do they have any common fields? They have a common field: FIPS2 and Geoid2 (for 2013 data) Note: For the step of joining a table with the shapefile data the key variables should be of the same Type both should be text or integers. You can find out the type by right clicking on the column name and selecting properties. The column names for the ACS table are explained in the file ACS_13_5YR_S1701_metadata. 1.1 Joining tables Now you can join the non-spatial data table to the spatial tracts data using the common key FIPS2 and Geo.id2 (or GEOid2). 1. Right click on the tracts shapefile (not the excel file because you want to join the excel file to the spatial file so you can map the variables later) in the TOC and click on Joins and Relates. Then click on Join to get a new window called Join Data. Complete the details of the join as shown (See screenshot). Click OK. 2

2. Now the attributes from the ACS table will be visible in the tracts attribute table. 3. To save just this dataset right-click on the tracts dataset in the TOC and then select Data and Export Data to save this new dataset to your desktop you might call it MA_MiddlesexCounty_tracts_join_with_ACS poverty for example. Note: To save it so that the headers for the variables are saved you have to save it to a geodatabase as a File and Personal Geodatabase Feature Class. I have saved this joined data in a geodatabase named as MA_Middlesex_tracts.gdb 4. You can now map a variable of your choice. (Right click on the layer census_tract_2010_esri in the TOC, Properties, Symbology, Quantities, change the Value field) 1.2 Attribute Queries We can now perform an attribute query. For example you might want to select all tracts in Middlesex county (or the state for which you downloaded data) that have 20% percent of its residents living below poverty level (these queries will depend on the variables you downloaded). As the table and the map window are dynamically linked, your selection results will be visible in both places. 5. On the main menu bar at the top of the geographic data view, click on selection and then Select by Attributes. A select by attribute window appears. Or, in the corner of the table itself click on the Table Options pull down menu 3

and click Select by Attributes or click on the icon for Select by Attribute at the top of the table. 6. Regardless of which screen you use to access the Select by Attributes window, a similar screen becomes visible (the Select by Attribute dialog accessed from the table screen does not contain the Layer line because you are already working in a table for a specific layer). Under fields, scroll down to a variable you want to query (HC03_EST_VC01for example) and double click on it. Then click on > = and then type 20 as shown in the screenshot. This will select all the tracts in Middlesex County, MA where more than 20% of the population are below the poverty line. 7. Click Apply and then the tracts are highlighted in both the map as well as the table. 8. Click on any column in the table to highlight it and then click on the right mouse button. From the accompanying menu, you can select Sort Ascending or Sort Descending. 9. (Optional) Right click and open the attribute table. You can add fields to a table. In the Table Options menu, select Add Field called PcMinority of type Double. 10. (Optional) Right click on the newly added column Pcminority and select Field Calculator. Double click on the fields as shown in the screenshots that follow to compose the new variable. 11. Note that you might get an error where the population is 0 (a divide by 0 error) so you might need to first do an attribute query (see screenshot) to select only tracts which have a population greater than 0. 12. You can also calculate statistics by selecting Statistics. For example one could calculate the average minority percentage in tracts where there is greater than 20% population below poverty population. Right click on the column PcMinority column and select Statistics to get a screen as shown below. The mean percentage minority in high poverty tracts is about 42%. 4

1.3 Spatial Queries 13. Add the rail network layer MA_railroad. 14. On the main menu bar, click on selection, and then select by location. In the example shown you will select all the census tracts (in Middlesex County) that are within 0.25mile of a rail line as shown in the screenshot. Note that if any part of the tract is within ¼ of a mile the entire tract will be selected. 1.4 Spatial Join You can also spatially join two datasets. You will overlay the rail road data to the Middlesex tracts and calculate the length of railroad in each tract. 15. Right-click on the census tracts shapefile in the TOC, then select Joins and Relates to get the window as shown in the screenshot where you specify the layer that needs to be joined spatially. The result of the spatial join is saved in new variables in the new shapefile that includes data from both the joined shapefiles. 16. You can then symbolize by length of railroad in a tract. 5