In this class we will explore some data patterns.
Please take this survey and answer the questions.
Prepared by Mehdi Heris
To see this tutorial with all images, download this pdf.
Mehdi Heris How to download and compile census data in GIS using NHGIS website
Today, you will learn how to download census variables as a table and their associated GIS boundaries from NHGIS website and then join the tables with boundaries in ArcGIS.
- This is going to take about 30 minutes or so; why not preparing a cup of coffee frist
- Go to NHGIS website: https://www.nhgis.org/ . this website provides both tables and boundaries for census variables.
- From the left, click on “Select Data”.
- You are in this page:
- You need to know some terms here. Census has multiple datasets. You can filter them based on year or the type of dataset. Click on the “Datasets”.
- In this window, from the left menu you can select the main category of your dataset. In this example, we are going to use Decennial Census, the first category in the menu. This is one of the main census product that has numerous variables.
- Now you will see the sub categories of Decennial Census. You can choose 2000 or 2010. Let’s choose 2010_SF1a category which includes most regular variables of population and housing.
- Submit your selection. You will see the list of variables. Change your view items from 20 to 500.
- Now you can see almost all variables. Click on the “Source Tables” tab.
- Select your variables by clicking on the yellow circle.
- To get more information you can click on the table name and see the properties of that variable.
- Some of the variables are not just one column of data. They could be multiple columns. For example, click on the “table name” for one of variables (i.e. Urban and Rural) and you will see how many variables exist under this specific category. As you see in the below image, Urban and Rural contains 6 variables.
- Select your variables by clicking on the yellow circle and you will see in the little window located on top right, the number of your selections.
- Now you have the tables, let’s go to the GIS Boundary Files tab.
- From this list you can choose the aggregation geographic level. For example, you can choose block level and your population field will be at block level.
- Choose Blocks for Colorado, for example.
- In your Data Cart window you should see the number of GIS files you’ve added.
- Obviously, you could choose multiple boundaries and files.
- Now you have tables and boundaries. Let’s “Continue”.
- You should be in this window:
- You have a red message! It says: One or more tables lack a geographic level selection (see below).
- Now we should define our geographic level. Click on Select geographic level button.
- In this page, select block as your geographic level and submit.
- You should see the summary of your selection
- Then press “Continue”, the green button.
- You will see this page:
- If it says no geography extent is selected, go ahead and choose one (i.e. Colorado).
- Choose comma separated format with headers.
- You should sign in to submit your order. If you do not have an account, create one.
- After signing in, you will see the status of your order. It takes a little while for the website to prepare and complete your order. See the status bar.
- When your order is complete, you should see that in your status bar.
- Now you can download the tables and GIS boundaries.
- When you are downloading the files, your browser may detect it as a threat. Just ignore it and choose keep.
- You’ve downloaded two zipped folders. After copying the folders to your workspace folder, extract (unzip) them.
- Explore the contents of your folders. If there is a zipped folder within them, unzip them as well.
- All right, now let’s dive into the table folder which has CSV extension.
- You will see these two files in the table folder:
- The code book is very helpful. I do suggest have a look at that one. It contains all descriptions of variables.
- The csv file is readable by excel. Go to the Excel and from file>open, open this file. Make sure to change the file type to see this file in the open browser.
- When you open the csv file you will see this spreadsheet:
- I can even hear from here that you are complaining about this table. Yes; it is busy and not clean. Wait a minute. Most of these variables and columns are not useful for our purpose. Therefore, we can simply delete them. But which one. Let’s see what we have. The first column is “GISJOIN”. This is a very important one. We will use this field to connect the rows to the blocks. So we will keep it. The other columns are related to the place. For example, one is about the state; one is for county, one is for the metropolitan area and so on. You probably do not need them. I would delete all place-related columns. Before deleting, we need to find something else.
- Remember that we chose some variables such as population and housing units; those variables are in this table too. You usually find them at the end of the list. They come with some wired codes. See the image below:
- The key is you can find them in the code book file. This is from the code book:
- Now you know what each code means. H7001 is the total population for example.
- All right, we found what we need. The “GISJOIN” column and our variable columns. You can delete the other columns now.
- You need just one row for the header. We have to have only one actually. Let’s rename the headers and keep one row. There is a tiny point here. As we talked in the class, the field caption should not have any space, dash or other characters. Also, you have only 13 character. Therefore, we need to have a short and simple caption. I changed my captions and cleaned my table:
- Your table is ready to go to Arcmap. Save it and close Excel. Open your Arcmap and use “addData” option to see the table and add it to your map (dataframe).
- Open your table; add your GIS layer (shapefile) downloaded from NHGIS.
- Open the table of the block layer too.
- The block layer also has “GISJoin” field. This is the same as what we have in our census table. Yes; they are the key to join two tables. How?
- Notice the census table should be attached to the block layer. Therefore, block level is going to be the guest and census table going to be the host.
- Right click on the block layer which is our host:
- Find the “Joins and Relates option” > Join; you will see this window.
- Make sure the top combo box is “Join attribute from a table”
- Choose the common fields in both tables. Option 2, should be the guest table that your are attaching to the blocks (the census table).
- The common field for join is the ID join. This Id has unique values. Our field was “GISJOIN”.
- Keep all records; press the OK button.
- Now the guest in the host’s home. But remember. The join is not a permanent thing. This join is only a temporary link of two tables. To make it permanent, we need to export our block layer to a new layer.
- Right click on the block layer. Under Data > export data
- Give an appropriate output name and location and save your layer.
- Believe or not you are DONE! How much of your coffee is remained? Mine is gone!
In this task, students will learn how to create a 3D simulation of solar radiation gain. We transfer layers from GIS to Rhino and then we use grasshopper and its plug ins to measure radiation gain. We use Ladybug plug-in to measure hourly radiation gain.
Sample files: file one and file two
In this workshop, students will learn how to create a DEM from contour lines and using the DEM for a number of analyses in designing a site. Download files from this link.
- Create a DEM
- Modify the contour lines based on the site plan
- Creating modified DEM
- Calculate cut and fill
- Create flow direction raster
- Create flow accumulation raster
- Create sink raster
This workshop is designed for senior students of ENVD at CU Boulder. In this workshop, students will learn about obtaining and analyzing GIS data for site analysis.
Download the data from this link: Data
- download the data and extract the zipped folder on your computer (not in the Desktop; in the scratch drive)
- find the city boundary.
- select parcels and buildings inside the city boundary and export them.
- Create a new layer and draw the site boundary
- Create a new building layer and digitize the buildings in your site
- adding attribute fields to the parcel and building layers
- Creating buffer around the bus stops
- transferring variables from one layer to another layer
- Land use classification
- Census data mapping
In this post I try to briefly introduce some resources for finding data. All these resources provide data for free. Most of them are governmental agencies and provide validated and reliable data.
- Aerial imagery
- Digital Elevation (DEM)
- Land Cover
USGS National Land Cover Data
Weather and Climate Data:
Buildings, parcels, census blocks, subdivisions, crime, accident, impervious surfaces, tree canopy, topography, open spaces, and many more.
Buildings, parcels, zoning, land use, etc.
Prepared census data, regional bike facilities, roads, crash data, etc.
stops, routs, park and rides, etc.
buildings, parcels, trails, open spaces, rivers, flood, hydrology, wildfire, zoning, etc.
written by Mehdi Heris
On Wednesday October 15th, we will have our second GeoENVD lecture series. In this meeting we will talk about different resources of open data providing useful data for environmental design analysis.
In this session we will explore available data in historical archives, climate and weather data, GIS files of cities and counties (buildings, parcels, topographic lines, planning data), census data, satellite images and products such as DEMs, lidar data, aerial photos, national datasets provided by USGS, social media, and many others.
Also, our first session about data capturing and interoperability could fit with this topic. our next sessions would be focused on data analysis tools and methods. We will provide the lecture materials in another post.