Geography 387 Lab Home | Geography 387 Home | Geography Home
Lab 9: Raster Spatial AnalysisOutline
1.0 PurposeIn this laboratory exercise we will examine a spatial analysis problem and develop a GIS solution using the raster analytical capabilities of ArcGIS. 2.0 IntroductionThe Scenario You have been hired in your first job as a GIS consultant. An executive from an energy supplier has presented you with an interesting problem. Her company would like to expand into the solar power market, but the company is not sure of which global regions to focus its efforts. The executive also hopes to introduce her company to GIS technology and its potential uses. She has been asked to present her boss with a ranking of regions worldwide based on their potential for solar power generation. The executive has asked you to provide her with information to help her make her rankings of potential new markets for solar power. Basic Information This work will involve some map overlay analysis. You will construct a query with ArcMap's Raster Calculator. This is a very powerful and versatile tool, but for the purposes of your work, we are going to keep the analysis relatively simple. All of the data for this contract will be provided to you (although this is rarely the case in real-world consulting jobs). Each of the data layers used in this exercise were downloaded, re-projected to GCS and converted to the ESRI's GRID raster format. Data sources are given below. The layers used are those thought to relate to mapping the potential supply and demand for solar-generated power. On the supply side, layers include maps of estimated incoming solar radiation, the expected average cloud cover, and global terrain. On the demand side, a global population layer is provided to buffer the solution set and limit it to those areas located close to major global population centers. Your client has decided that solar power production should be a) close to populated areas, b) in low elevation areas, c) in relatively sunny areas, and d) near the equator so that solar intensity will be strong enough to efficiently produce electricity. Data Sources Insolation data source: Derived from a figure in Geosystems (Robert Christopherson) Popden data source: NCGIA Elevation data source: Data set GTOPO30, United States Geological Survey, EROS Data Center Clouds data source: UNEP GRID 3.0 Add and display dataTo begin, download the datasets from the lab9.zip archive and extract the files to your Lab 9 directory. Next, open ArcMap, and add the 4 raster layers provided: clouds, elevation, insolation and popdense. Now we will change the symbology on each of the four raster layers so that they have reasonable display properties. Open the Properties -> Symbology window for the insolation layer. Choose "Classified" in the Show column and change to a ramped color scheme (e.g., shades of red) instead of random colors. Now change the display for the elevation layer. Change from "Stretched" classification to "Classified" classification. Change the number of class breaks to 10, but leave the classification scheme on Natural Breaks (the default). Select an appropriate color scheme for elevation. The Symbology window should look like the one below.
Next, change your clouds layer to show as "Classified" and set it to an appropriate color ramp (e.g., shades of blue). Go ahead and leave your popdense layer as the default gray-scale colors, or change its symbology to a different color scheme if desired.
4.0 Analyze layers using raster calculatorConfirm that the Spatial Analyst toolbar is present at the top of the ArcMap window. If it is not, go to View -> Toolbars and select it from the list, then go to Tools -> Extensions and make sure Spatial Analyst is checked on in the extensions list.
On the Spatial Analyst toolbar, click on the Spatial Analyst button and choose Raster Calculator from the menu. The Raster Calculator window will open (see image below).
First we will create a new raster layer to demonstrate how the Raster Calculator works. In the layers listing in the Raster Calculator window, double-click on popdense, then click on the ">" (i.e., greater than) button to the right. Next, type in 50 in the text box after the > sign. Now evaluate the expression by clicking Evaluate.
The tool should create a temporary raster layer (Calculation) in ArcMap showing all of the areas with a population density greater than 50 (persons per square kilometer). In this raster layer, a cell value of 0 indicates a cell where the population density is less than 50 (the expression was False), and a value of 1 indicates that the population density for the cell is greater than 50 (expression was True). The 0, 1 format is referred to as a "binary map"--based on the query expression, every raster cell is either True or False. Note: Calculation is just a TEMPORARY raster layer and will DISAPPEAR if you were to close your ArcMap session and return to it later. If you would like to make Calculation a permanent raster layer (i.e., save it in your data folder for this lab), you will need to right-click on the layer and select Make Permanent. If you store the raster in a GRID format then the file name can not be more than 13 characters long. The Erdas Imagine (.img) raster format does not have this name-length restriction. It is always a good idea to avoid spaces in your file names when working in ArcGIS. AGAIN: Ouput rasters are TEMPORARY. Be sure to Make Permanent your raster outputs if you expect to use them again -- like when you come back to use them in the next lab session. If you don't make the raster layers permanent, then they will not be saved in your working directory. Now that is clear, let's use the Boolean function AND ("&") to write and evaluate queries that create the following new rasters: Raster 1
Raster 2
Raster 3
If you have problems, the help file on "About Building Expressions" button will be useful. You can read more about the Raster Calculator in the help Contents tab, under Extensions->Spatial Analyst->The Raster Calculator. Give your output rasters useful names, such as cloud60, cloud70, and cloud75.
5.0 Buffer and select citiesNow that you have raster layers with the potential areas for solar power generation, you also need to figure out which major cities could potentially benefit from solar power. Using buffers, we will determine which major cities are within 50 miles of potential power generation regions. As you learned in Lab 8, buffering calculates distances from vector features and then produces polygons that represent the area surrounding the features out to that distance. Begin by adding the world cities shapefile (cities.shp) to the ArcMap TOC. Use Select by Attributes from the Selection menu to find all of the cities with population greater than 1 million people. Export this selection into a new shapefile using Data -> Export Data. Call the exported layer cities_selection.shp or a similar, descriptive name. Add this new layer to your map document. Before moving on from here, choose Clear Selected Features from the Selection menu. This will clear the selected cities.
Now create a 50-mile buffer around the cities_selection shapefile. Refer back to Lab 8 if you forget how to do this vector spatial analysis. Make sure that your units are correct when filling in the distance setting! Also, leave the Dissolve Type as None. Save the buffers to a new shapefile with an appropriate name (e.g., cities_selection_Buffer.shp). Next you will need to find out which of these buffers intersect with the solar power production regions. Before doing the intersection, however, you must decide which of the power region rasters to use in your analysis. Based on your answer for Question 2 above, decide which of the output rasters (cloud60, cloud70, or cloud75) you should use for your project. The fact that potential power regions are cells in a raster layer and cities are points in a vector layer causes a complication in your analysis, since these are different data models. To remedy this problem, you need to convert the raster layer to a vector layer. To do this use the Spatial Analyst -> Convert -> Raster to Features tool to convert your chosen "cloudxx" raster layer into a polygon vector layer. Be sure to set the output path to your working directory. Do not generalize the lines of your new vector layer. Name the output shapefile solar_vector.shp. Note: this is the same process as using the Raster to Polygon tool in ArcTools; it's just a different interface and easier to find in the Spatial Analyst toolbar. |
Map 2 |
For the final map, you will create a large-scale map for your selected city from Question 3. Your client wants you to show the area where the 50-mile buffer around the city and the potential solar generation area (GRIDVALUE = 1 polygons in solar_vector) intersect. Use your skills from Lab 8 and the Intersect tool to find the area where these two layers intersect. You only need to find the intersected area around your selected city. To do this, you should select the buffer and solar_vector polygons near your city before running the Intersect ArcTool. The output features will thus be those intersected areas of selected features in each input layer. First set the selectable layers under Selection->Set Selectable Layers.

Then use the selection tool
to select the appropriate polygons from the solar_vector and buffer layers for your city. Just click on the area where the two layers intersect and both polygons will be selected. See the example below:

Now use the Intersect tool in ArcTools to produce an output layer showing the intersected area (in green below).
Map 3 |
Question 4:Is there uncertainty in this analysis? If you believe that there is uncertainty, which dataset or analytical step introduces the biggest uncertainty? Which dataset or analytical step was relatively certain? |
Question 5:What other datasets do you think would be useful for this analysis? Why? |
This lab focused on a site-selection spatial analysis. The analysis used a combination of vector and raster datasets to arrive at a final anwer. Most of your new GIS skills have been used at some point in the analysis, including spatial selection, raster selection, atribute selection, vector overlay, attribute summary, and map design. In Advanced GIS (Geog 487), you will strengthen these skills without the structure and help found in these"cook book" labs. If you do not take Advanced GIS, your client and your instructor both wish you luck as you apply your new skills to real-world problems!
Submit electronic files via email to your instructor, with the subject "G387, Lab 9, [your last name]".
The majority of the text in this lab was created by Sean Bennison in the Geography Dept. at UC Santa Barbara. The lab was modified by Matthew Clark for instruction at Sonoma State University.
This page was last modified on Aug 25, 2009 by Matthew Clark.