Lesson 7: Agriculture
Lesson 7 Introduction and Action List
Introduction
Due to the economic importance of wine grape cultivation in California, grape farmers and winemakers in wine producing regions could benefit greatly from the use of Geographic Information Systems. In this lesson’s activity, you will learn more about how raster GIS data might be used to locate suitable vineyard lands for a small portion of Napa County. The input data layers used to complete this analysis include elevation/aspect, climate, soils, landuse, and hydrography. These layers represent important environmental characteristics that must be considered when identifying suitable sites for grape cultivation.
At the successful completion of this lesson, students should be able to:
- Describe the difference between discrete and continuous data,
- Convert between vector and raster data formats,
- Create hillshade and aspect layers from elevation data,
- Interpolate a continuous surface from sample points,
- Create buffer zones around raster features,
- Perform distance calculations,
- Reclassify continuous surface grids into discrete categories, and
- Perform map algebra calculations.
Problem
“Wine is an expensive, time-consuming endeavor and returns on investment can take years, if not decades, to realize.” Passy, C. (2013, August, 13). How to make it in the wine business. (MarketWatch [1])
If a new viticulture business wants to be successful, a good location is critical. California is recognized as one of the top winemaking regions in the world, ranking sixth in terms of production. It accounts for more than 90 percent of total U.S. wine production. California wineries earn an estimated $5.9 billion in revenues and produce over 400 million gallons of wine annually. They produce both a variety of world-class wines, and a wide range of affordable quality wines for everyday consumption.
California’s wines are a reflection of the state’s unique location and landscape. Its location on the Pacific Ocean and northern latitude creates a temperate marine environment. The climate in this environment has an abundance of sunny days, as well as ocean breezes that act as a moderating influence. The climate along the coast and nearby mountain ranges and river valleys tends to be cool to mild year-round. Inland valleys and plateaus, in contrast, usually have warm to hot summers and colder winters.
The California landscape consists of more than 150,000 square miles spread across a coastline, coastal and inland mountain ranges, rolling hills, desert plateaus and river valleys. The soil types throughout the state vary significantly in consistency and content, reflecting the complex geological makeup of the state. These varying climates and diverse soils create numerous sub-regions ideally suited for wine grape cultivation.
For the purposes of this lesson’s activity, the criteria for a suitable vineyard site are:
- Outside the floodplain and more than 100 meters from a stream
- Landuse type of agriculture or undeveloped
- Aspect (slope orientation) between 112 – 337 degrees or flat land
- Average maximum wind speed of 25 mph or less
- Average minimum temperature greater than 35 degrees
- Soil depth between 31 and 72 inches
- Medium – to highly drained soils (values of 1.5 – 3)
This project is meant for educational purposes only. Some of the data layers used in this assignment are not real and were compiled for the purpose of this project.
Important Key Words
Make sure you are familiar with these key terms that can be found throughout this lesson and course.
Aspect
Hillshade
Reclassify
Discrete
Continuous
Inverse distance weighted
Kriging
Interpolation
Dissolve
Action list
Lesson 7 will take one week to complete. Specific directions for the assignments below can be found within this lesson.
- Read the Lesson 7 Concept Gallery content.
- Work through the Lesson 7 exercises.
- Part I – Getting Started
- Part II – Performing Surface Operations
- Part III – Buffering and Reclassifying Raster Data
- Part IV – Combining Raster Layers and Identifying Suitable Lands for Vineyard Development
- Submit the Lesson 7 Assignment.
Any Questions?
If you have any questions now or at any point during this lesson, please feel free to post them to help-from-instructors or arcgis-pro-assignment-questions channels in Slack.
Lesson 7: Additional Concepts
Discrete vs. Continuous Data
A spatial phenomenon is continuous when any small change in location results in a small change in the attribute value. For example, elevation is a continuous phenomenon, while a property boundary is discrete.
Interpolation is commonly used to estimate values at specific points within a continuous data layer. It is logical to assume that elevations will predictably and gradually vary between two points. A point midway between two points will have an intermediate elevation value. This is not a logical conclusion for discrete data. If today a property line follows one boundary and this time next year the line follows another boundary, then we cannot say that in half the time, the boundary was halfway between the old and new locations. At a certain point in time, the placement of the boundary was abruptly changed. It had two distinct locations. So, we say that a property line changes discretely.
Discrete Data:
Discrete data are map features of varying sizes that can be delimited in space by distinct boundaries. Another term often applied to this type of data is categorical data. There are a variety of numbering schemes that can be utilized in classifying this type of data. The most common ones include the following: nominal, ordinal, interval, and ratio.
Nominal classes represent categories with no particular order. Usually, these are characteristics that are not associated with quantities, such as soil type, vegetation, or landuse. In this case, cell numbers are essentially used as “codes” to identify types or characteristics.
Ordinal classes are those that have a sequence, such as “poor,” “good,” “better,” and “best.” An ordinal class numbering scheme is often created from a nominal scheme, in which classes have been ranked using some criteria. For example, potential habitat sites identified for a particular animal may be ranked in terms of their overall suitability (e.g., 1 to 4).
Interval classes also have natural sequences, but the distance between values is also meaningful. This type of scheme, for instance, might be used for temperature data (Fahrenheit or Celsius).
Ratio classes differ from interval classes only in that ratio classes have a natural zero point, such as rainfall amounts.
The particular class numbering scheme used will depend upon the variable analyzed and the way in which it contributes to your specific analysis. It should be recognized, however, that one numbering scheme can easily be re-numbered (i.e., “recoded” or “re-classified”) to another scheme.
Continuous Data:
Continuous data are quantitative in nature (i.e., they relate to the measurement of a characteristic), and reflect related, continuous data values. Some examples of continuous data layers include elevation, slope, temperature, depth to ground water, and heavy metal concentrations in soil. Depending upon the phenomenon being represented, data values may be stored as either integer or decimal values.
Generally, the raster (grid) GIS model is well suited to treating information as a continuous geographic distribution; elevations fit into this category. In contrast, the vector model treats the geographic phenomena as discrete, identifiable entities, each with a location. As such, vector-based models decompose the real world into spatial objects and then populate the GIS database with features that have attributes given as the characteristics of the real world. As you probably recall from Geography 482, in this approach, the object is described by one or more attributes. For example, a land parcel may have a polygon representing it in the real world, a polygon and point representing its cartographic form at differing levels of graphic generalization, and attributes describing its area, owner and name.
Raster Format Data
There are basically only two formats used by most systems for representing geographic data: vector and raster. As you have learned in previous coursework, the vector format is used to depict points, lines, and polygons that are referenced to real-world objects. The primary limitation of the vector model is the inability to represent, analyze, and process continuous data. The raster data model gives you superior analytical capabilities for continuous data and fast processing of map layer overlay operations. It is the best format for applications such as slope, aspect, elevation, land cover types, remote sensing, satellite imagery, aerial photographs, scanned maps, reflectance, and brightness.
The raster format uses the concept of a rectangular grid for storing spatial data. With this format, data is organized in a row/column structure. The elemental unit is referred to as a “cell” or “grid cell” (see Figure cg 7.4). The raster model lends itself well to portraying area-based characteristics because the cells are area based. The size of the area represented by a cell is the cell resolution. Each cell represents a square parcel of the real world. A value representing an attribute of the real world is assigned to each cell. Soil type is one example. Raster map layers are two-dimensional Cartesian planes. As also shown in Figure cg 7.4, all cells in the grid are usually assigned “file coordinates” based on their row/column position within the plane. Depending upon the specific GIS software, the upper left or lower left cell also has a geographic or map coordinate associated with it. With this type of structure, it’s then possible to automatically calculate the geographic location of any cell within the grid layer based on known cell size (e.g., the number of meters or feet represented by each cell) and the row/column position. For this reason, it is often said that geographic locations within a raster layer are “implicitly” rather than “explicitly” stored, as is the case with vector data.
Cell Size
The raster data model represents features as a matrix of cells in continuous space. Each layer represents one attribute (although other attributes can be attached to a cell). Most analysis occurs by combining the layers to create new layers with new cell values. The cell size you use for a raster layer will affect the results of the analysis and how the map looks. The cell size should be based on the original map scale and the minimum mapping unit. Using too large a cell size will cause some information to be lost. Using a cell size that is too small requires a lot of storage space, and takes longer to process, without adding additional precision to the map.
The default cell size (or resolution) for analysis results is set to the largest cell size of the raster datasets in the table of contents (Maximum of Inputs). The default cell size when a feature dataset is used is the width or the height (whichever is shortest) of the extent of the feature dataset, divided by 250 to get 250 cells.
Cells in different raster datasets do not need to be stored in the same resolution, but the cell resolution should be the same when processing between multiple datasets. If a cell size finer than the input raster datasets is specified, no new data is created. When multiple raster datasets are input into any Spatial Analyst function and their resolutions are different, one or more of the input datasets will be automatically resampled using the nearest neighbor assignment to the coarsest input.
The default cell size can be changed by going to Environment Settings, which can be found in the Geoprocessing menu > Environments…. You will then need to expand the Raster Analysis category and select from the Cell size pull-down menu. The cell size you specify will be applied to all subsequent results. For functions that accept nonraster data, you can specify the cell size for your output raster dataset directly on the function dialog box. The default is whatever is set in the Raster Analysis Cell Size category of the Environment Settings (whether this is the default or a cell size you specified). Caution must be taken when specifying a finer cell size than the coarsest input because the resolution of the output cannot be more accurate than the coarsest of the inputs. Specifying a cell size of 10 meters when the input raster datasets are 50 meters creates an output raster with a cell size of 10 meters, but the accuracy is still 50.
During analysis, be sure to keep your goals in mind. If you are studying species richness at a local scale, you would not want your cell size to be five kilometers, and you would not want to use 100 meter cells when studying the effects of global warming over the Earth.
References
Environmental Systems Research Institute, Inc. (Esri). (2021). ArcGIS [computer software]. Redlands, CA.
Distance Calculations
GIS programs provide the ability to conduct various distance calculations from a single cell, a string of cells (i.e., a line), or a group of cells (i.e., a region). Such calculations may include the generation of a buffer zone (see Figure cg 7.6) or the estimation of incremental distances from one or more features (see Figure cg 7.7).
Calculating the distance from features in this manner can be used to factor various different constraints into an analysis. Areas can be designated for environmental protection. In the case of this exercise, the hydrography features were buffered to ensure that potential vineyard sites would not contaminate water bodies with fertilizers or pesticides. Alternatively, incremental distances can be indicated to reflect the diffusion of pollution impact on areas surrounding a known or potential hazard.
The distance between cells in a raster is measured based on the centers of the cells. For a cell’s adjacent neighbors, this distance is equal to the cell size. For its diagonal neighbors and for disconnected cells farther away, Euclidean geometry is typically used to calculate distance (see Figure cg 7.8).
Combining Operations for Derivative Mapping
There are numerous approaches one could use to categorize data analysis capabilities typically found within contemporary GIS packages. One approach would be to describe them in terms of the two basic analytical operations that can be carried out in any contemporary GIS software: database query (or primary data extraction) and derivative mapping.
With database query operations, we are simply extracting information about a map or combination of maps for display and examination. This often involves the use of various “identification” or “selection” tools, but may also involve the use of assorted measurement and statistical functions as well. The key distinguishing feature of this kind of analysis, however, is that we have not extracted any more information than was explicitly stored in the system. Typically, when engaged in database query activities, we are seeking spatial patterns in the data that may provide additional information about relationships between different data layers or attributes associated with those layers.
Conversely, in the case of derivative mapping, one typically combines selected components of a GIS database to create new derivative or secondary map layers. For example, digital elevation data could be processed to derive a slope layer, and this resulting map could then be combined with information on soil types and rainfall to produce a new map of soil erosion potential. Unlike database query activities where we simply extract information that was already in the database, with derivative mapping we utilize our knowledge of the relationships between database elements to create something completely new.
Most spatial analyses performed with grid cell software typically involve a combination of operations to derive a final map. Raster analysis commonly assimilates multiple layers of data after some deliberate manipulation to isolate the relevant parts. For example, consider an analysis where one uses soils and topographic information to quantify the erosion potential of a particular area. As shown in Figure cg 7.9, this analysis could involve the following steps:
- Reclassify the original soils and topographic layers to identify areas with high erodibility rates (i.e., k factors) and steep slopes.
- Use map algebra to multiply these recoded values by “weights,” which reflect the relative importance of each layer in determining erosion potential.
- Finally, overlay and sum the cell values in the two maps to produce an “index” map whose values depict inherent erosion potential. In this particular case, low values indicate greater erosion potential.
As alluded to above, some GIS packages require that this analysis be performed using various functions in discrete steps. More commonly, however, contemporary GIS packages provide the ability to string together a series of functions or commands using macros, scripts, or some form of higher-level map algebra language.
Lesson 7 Activity, Part I: Getting Started
This exercise guides you through Part I of this week’s exercise.
If you have any questions now or at any point during this lesson, please feel free to post them to help-from-instructors or arcgis-pro-assignment-questions channels in Slack.
We have been working in ArcGIS Pro with mostly vector data until now. In general, vector-based formats can only accommodate discrete data. In this lesson, you will be introduced to the Spatial Analyst tools and continuous raster data. The operability of discrete versus continuous data varies depending upon the particular software package used. With raster (cell-based) formats, however, it is possible to handle either type. Spatial Analyst adds a comprehensive, wide range of cell-based GIS operators to ArcGIS Pro. In this lesson, we will be converting vector data to raster format to facilitate the use of both types of data.
Concept Gallery: Learn more about Discrete vs. Continuous Data and Raster Format Data in the Concept Gallery.
A. Download the Lesson Data
Download the Lesson 7 data (Lesson7ArcGIS_Pro.zip [2]) and unzip them in your course folder.
B. Organize the Data
Note: Do not place spaces in directory or file names. This can result in fatal program errors, especially when working with raster data. (e.g., c:\483\lesson 7 should be changed to c:\483\lesson_7).
- Open ArcGIS Pro and start a new blank project called GEOG483_Lesson7 in your Lesson7 folder. Uncheck Create a new folder for this project.
- Click Add Data.
- Browse to your Lesson7 folder. Double-click the viticulture geodatabase and add the climate, elevation, floodplain, hydro, landuse, and soils layers.Metadata for data that you will be using in this lesson:
- Projection: Universal Transverse Mercator-1927 projection.
- Zone: 10
- Spheroid: Clarke 1866
- Longitude of Central Meridian: -123
- Latitude of Projection Origin: 0
- False Easting: 500,000
- False Northing: 0
- Make sure the Map Units are set to Meters. Set the Display Units to US Feet.
- Modify the symbology and drawing order of layers in the Table of Contents, as necessary.
C. Specify the Geoprocessing Environment Settings
You will set the extent and cell size, which will be applied to layers that are created.
- Select the Analysis tab and click Environments to open the Environments panel.
- Expand the Workspace category, change the Current Workspace to your Lesson 7 geodatabase viticulture.gdb. Also, change the Scratch Workspace to your Lesson 7 geodatabase viticulture.gdb.
- Expand the Processing Extent category and choose Same as layer > elevation from the pull-down menu. Keep the other defaults.
- Expand the Raster Analysis category and type 10 in the text box next to Cell Size. If you look at the properties of the elevation layer, you will see that the cell size is 10. Alternatively, we could choose Same as layer elevation since the elevation layer has the cell size we want to use.
- Click OK.
All layers that are now created will be saved in your Lesson7 viticulture geodatabase. They will have the extent of the elevation layer and they will have a cell size of 10. Zoom in on the elevation layer. With the Map tab selected, use the Measure tool to measure the size of each cell.
Concept Gallery:
Learn more about Cell Size in the Concept Gallery in Lesson 7.
D. Perform a Dissolve
Note: You should take screen captures as you go through the lesson; the project deliverables require some images of the process you followed in the analysis.
You will do a new kind of spatial operation in this step – a dissolve. It is not entirely necessary in this situation, but you might want to use it in the upcoming final project for this class.
- Click the List By Drawing Order button at the top of the Table of Contents.
- The landuse raster layer should be above the elevation and floodplain layers in the Table of Contents, so you can see it in the data frame.
- Open the attribute table and notice that there are 80 records, which means there are also 80 features. Scroll down through the Landuse Type field (Lu_Type) and notice that there are many features that have the same value. Suppose you want to be able to click in an area of agricultural land in the data frame and have all of the agricultural land area selected. As the layer is now, you would have to highlight 39 different polygons or do an attribute query. Sometimes it is desirable to have one feature for every unique value in a field. A dissolve does this. Another situation where a dissolve would be useful is if you have a streets layer that you want to label. There may be many segments that make up one particular street. You may not want a text label placed next to every segment because the map would be too cluttered. You could dissolve the layer on the street name field so that you would have only one feature for every street name.
- With the Analysis tab selected, click Tools.
- Click Data Management Tools > Generalization > Dissolve.
- Select landuse from the drop-down list next to the Input Features text box.
- Save the shapefile as landuse_dslv in the Output Feature Class text box.
- Select LU_TYPE as the Dissolve Field. There is no need to specify any Statistics Fields, but feel free to add one – maybe the sum of the perimeter field. Click Run. [See Figure 7.1]
- Open the attribute table of the new layer and notice that there are only four records now, one for each landuse type.
E. Convert Vector Data to a Raster Format
In the last part of this lesson, you will combine all of the different layers to find the suitable vineyard sites. In order to do that, all the layers must be in the same format. You will now convert the vector data to raster data.
- In Tools, double-click Conversion Tools > To Raster > Polygon to Raster.
- Choose landuse_dslv for Input Features.
- Choose LU_TYPE for Value field. The attributes in the Lu_type field of the landuse layer will be used for the cell values. Make sure the Cellsize is set to 10. (We specified that earlier).
- Save the layer as lu_raster in the Output Raster Dataset text box. Click Run. The new layer will not be added to the top of the Table of Contents, so you may have to turn off a few layers or drag it to the top in order to see it in the map display.
Note: If one of your raster conversions fails during creation or if you make a mistake while creating a new raster layer and want to redo a step, give the new raster layer a slightly different name. (e.g., lu_raster2) Remember this throughout the lesson.
- Remove the landuse_dslv layer from the Table of Contents. Remember, removing that layer will NOT delete the layer; it only removes the reference to the data so that it is not visible in the map.
- In Tools, double-click Conversion Tools > To Raster > Polyline to Raster.
- Select hydro for Input Features.
- Choose HYDRO_ID for Value field.
- Save the layer as hydro_raster and click Run.
- Repeat steps 1 through 4 above to convert the floodplain coverage to a raster named flood_raster. Choose TYPE for Value field.
F. Save the Project
You have just completed Part I of this lesson, which involved organizing the data and converting data from vector to raster format. In Part II, you will continue processing the new and existing raster data by performing several types of surface operations.
Lesson 7 Activity, Part II: Performing Surface Operations
This exercise guides you through Part II of this week’s exercise.
If you have any questions now or at any point during this lesson, please feel free to post them to help-from-instructors or arcgis-pro-assignment-questions channels in Slack.
A. Create Hillshade and Aspect Layers from the Elevation Layer
Spatial Analyst can compute the hillshade for a surface. The resulting layer represents the hypothetical illumination of the surface. When used as a background, hillshading gives layers a more 3-dimensional appearance that aids in visualization of the actual terrain.
ArcGIS Pro Help: Find out more about Hillshading, in the ArcGIS Pro Help. Click the question mark (?) button in the upper right corner of the window to open the Help. Type Hillshade and choose How Hillshade Works to understand more about how a hillshade is created. Click Hillshade (Spatial Analyst) to read more about the specifics of the Spatial Analyst tools used in this lesson.
- Open your project if it isn’t already open.
- In Tools, click Spatial Analyst Tools > Surface > Hillshade.
- Select the elevation layer from the Input raster pull-down menu, save the Output raster as hillshade, accept all other defaults listed on the Hillshade pane and click Run.
- The hillshade layer will appear in the Table of Contents. Examine the result and drag it to the bottom of the Table of Contents so that it is below the elevation layer. You can compare this raster layer to the World Hillshade basemap that was automatically added to your Project at the beginning. You might also want to look at the Layer Properties for that layer to see how it was created.
- Click the elevation layer in the Table of Contents. Click the Raster Layer option that appears to the right of the Share ribbon.
- Set the Transparency to 50%. Turn off any layers obscuring the elevation and hillshade layers so that you can see it in the map. Toggle the elevation layer on and off to see how the transparency affects the display of the layers.
The aspect of a location refers to the orientation of its slope. When deriving aspect in ArcGIS, the steepest down-slope direction from each cell to its neighbors is found. The values of the output raster layer represent the compass direction of the aspect; 0 degrees is north, 90 degrees is east, 180 degrees is south, 270 degrees is west, and flat areas receive a value of -1. - In Tools, click Spatial Analyst Tools > Surface > Aspect and create an Aspect layer, using an approach similar to the one you used to create the hillshade. Use the elevation layer as input and call the resulting raster layer aspect.
- Examine the result.
B. Interpolate Raster Layers from Sample Points
ArcGIS Pro Help: Find out more about Inverse Distance Weighted (IDW) interpolation in the ArcGIS Pro Help. Open the help, type IDW, and click How IDW Works from the choices listed to read about inverse distance weighted (IDW) interpolation. Then click IDW (Spatial Analyst) to read more about the specifics of the tools used in this lesson. Additional reading about this topic and other interpolation methods such as kriging and splining can be found by searching on Comparing Interpolation Methods.
The Soils layer is a set of sample points with depth and drainage attributes. By using a surface interpolation, a continuous raster layer can be created.
- In Tools, click Spatial Analyst Tools > Interpolation > IDW.
- In the IDW (Inverse DistanceWeighted) dialog box, select soils for Input point features and select SOILDEPTH from the Z value field (elevation units) drop-down box.
- For Output raster save the layer as soildepth.
- Type the numeral 4 into the Power text box, keep all other defaults, and click Run. [See Figures 7.2 & 7.3]. *(You will use this power for the rest of the raster layers you create in this part.)*
Note: The power controls how the sample points around an output cell contribute to that cell's value. The higher the power, the less influence far away points have. The lower the power, the greater influence far away points have. A lot depends on the phenomenon you're trying to interpolate. Some surfaces are smooth (like temperature) and some have greater variation across distance (like precipitation). In other words, you'd want to use a higher power for precipitation than for temperature. As you saw in the help, the optimal power value can be attained by using the Geostatistical Analyst, which we do not cover in this class (but which is used in Geog 586: Geographic Information Analysis). If you do not use that, it is another case of knowing the data and maybe having an expert who knows what to be looking for in the interpolation to determine what power is best in certain situations.
- Examine the resulting layer. If the extent of the soildepth layer is not the same as the elevation layer, go back to Environments and make sure the Processing Extent is Same as layer elevation. Uncheck the layer in the Table of Contents so it is not displayed in the data view.
- Repeat the steps above to create a surface representing soil drainage. Use the DRAINCODE attribute for the Z value field. Call the layer soildrainage.
- Remove the soils layer from the map document.
C. Interpolate Temperature and Wind Speed Raster Layers from a Series of Sample Points
We already used interpolation to create soil depth and drainage layers. Now, we’ll use the climate layer to generate minimum temperature and maximum wind speed layers.
- Using the climate layer, repeat the procedure described earlier to produce an average minimum temperature layer (mintemp) and an average maximum wind speed layer (maxwind). Select MIN_TEMP as the Z value field for the temperature layer and MAX_WIND for the wind speed layer. Remember to change the power.
- Remove the climate layer from the map document when you are finished adding the two new layers.
D. Save the Project
You have just completed Part II of this lesson, which involved creating several types of raster surfaces (hillshade, soils, and climate) from existing point and raster data. In Part III, you will continue processing the raster data by performing a number of reclassifications to update existing cell values.
Lesson 7 Activity, Part III: Buffering and Reclassifying Raster Data
This exercise guides you through Part III of this week’s exercise.
If you have any questions now or at any point during this lesson, please feel free to post them to help-from-instructors or arcgis-pro-assignment-questions channels in Slack.
A. Insert a Buffer Around Features in a Layer
In raster analyses, buffering operations can be performed by “growing” features out a certain distance, or a specific number of cells. ArcGIS Pro calculates the distance from raster features, displaying them as a continuous set of incremental bands. Any of these ranges can then be reclassified to define a buffer or to find features within a specific distance.
Concept Gallery: Learn more about Distance Calculations in the Concept Gallery in Lesson 7.
- Open your Lesson7 Project if it isn’t already open.
- In Tools, click Spatial Analyst Tools > Distance > Distance Accumulation. Select the hydro_raster layer as the Input raster or feature source data and specify the Output distance raster as dist_hydro. Keep all other defaults and click Run.
- Turn off all of the layers except dist_hydro and hydro. Make sure hydro is above dist_hydro in the Table of Contents. Click some different points in the map. Each value is the distance from the stream in the hydro layer.
B. Reclassify the Distance to Hydro and Landuse Layers
Most spatial analyses performed with raster software involve a combination of operations to derive a final map. Complicated analyses weight data, multiplying the cell values in a specific raster layer by a certain factor, to reflect their relative importance with respect to other layers. This gives each layer more or less impact on the result. Although weighting is a useful operation, it is not always appropriate. For the purposes of this exercise, we take a different approach. First, we reclassify the data to isolate certain criteria as necessary conditions for good grape growing. This exercise is simplified by limiting the classification to two categories: desirable (given a value of 1) and undesirable (given a value of 0). We then multiply the reclassified layers together using the Raster Calculator, which allows us to determine the optimal sites for vineyard development.
Concept Gallery: Learn more about Combining Operations for Derivative Mapping in the Concept Gallery in Lesson 7.
- In Tools, click Spatial Analyst Tools > Reclass > Reclassify. Select dist_hydro from the Input raster pull-down menu.
- Click the Classify… button.
Remember that one of our criteria is land outside the floodplain and more than 100 meters from a stream. - Change the Classification Method: to Equal Interval, set the number of Classes: to 2. You will see two values appear in the Classes text box. Change the first value to 100, hit Enter on your keyboard. [See Figure 7.4] You will notice that Equal Interval gets changed to Manual Interval when you are done with this tool. That is fine.
- Click OK. The Start value in the first row should be 0 and the End value in the firts row should be 100. Change the value in the first row of the New column to 0.
- In the second row, the Start column should be 100. The End column value will be the maximum value of the data (e.g., 100 – your max. value may include decimals.) The value in the New column should be changed to 1. Hit Enter on your keyboard to make sure the value sticks. When you have two classes that include the same value, the value will go in the first of the two. So in this case, if there are any cells with a value of 100, they will get a new value of 0. Save the raster as hydro_buffer (Output raster). [See Figure 7.5]
- Click Run to complete the reclassification
- To avoid confusion, drag the original dist_hydro layer to the bottom of the Table of Contents or remove it from the data frame.
Note: If you want, you can make only the desirable cells visible by making the undesirable cells transparent. Open the Symbology pane and click the colored box next to the 0 value of your newly reclassified raster layer. The color selector will pop up. Click No color. An alternative way to display the raster layers is to choose "No color" for the desirable cells and choose a color for the undesirable cells. With all of the criteria layers turned on you'll be able to get a preview of which cells meet all of the criteria (they will be the cells with no color).
- In Tools, click Spatial Analyst Tools > Reclass > Reclassify. Select the lu_raster layer from the Input raster pull-down menu.
- Select LU_TYPE from the Reclass field drop-down menu. Agricultural and undeveloped land are desirable, so we will give them a New value of 1. Forest and urban land are undesirable, so those cells will get a New value of 0.
- In the first row, make sure it has the Value as ag and change the New value to 1.
- In the second row, make sure it has the Value as forest and change the New value to 0.
- In the third row, make sure it has the Value as undeveloped and change the New value to 1.
- In the fourth row, make sure it has the Value as urban and change the New value to 0.
- Save the raster layer as rc_lu_raster and click Run.
C. Reclassify the Aspect Raster Layer
In the previous step and the next two steps, you use the Reclassify tool to update cell values in each of the raster layers. You create a binary classification by calculating cells equal to “1” only where existing values meet the layer-specific criteria specified for this analysis. All other cells will be given a value of “0.” You can also think of this as a “True” or “False” type of classification, where cells that meet a particular set of criteria are assigned to “True” and all others are “False.” For example, by default, the Aspect layer created in Part II, Step B uses a total of 9 classes to represent aspect. For this analysis, however, we’re only interested in flat land (values of -1) and land that is oriented to the SE, S, SW, W or NW (112 – 337 degrees). You will assign a “1” to everything that falls within this range and a “0” to everything outside of the range. In this step we are grouping the ranges into broader categories and then assigning binary values of either 1 or 0 to isolate desirable and undesirable areas respectively.
- In Tools, click Spatial Analyst Tools > Reclass > Reclassify. Select the aspect layer from the Input raster pull-down menu.
- Click the Classify… button and set the Method: to Equal Interval and number of Classes: to 4.
- In the Classes text box, change the four values to -.000001, 112, 337, and 360, and click OK.
- As you can see above, we are only interested in the old values in rows 1 and 3 (values of -1- -.000001 and 112-337), so those are the rows that will get a New value of 1. In the first row, you’ll see that the old values are -1 to -1E-06. Make sure there is a 1 in the New column.
- In the second row (-1E-06 to 112), type 0 in the New column.
- In the third row (112 to 337), type 1 in the New column.
- In the fourth row (337 to 360), type 0 in the New column.
- Save the layer as rc_aspect and click Run.
D. Reclassify Various Raster Layers to Create Binary Cell Values
Raster Layer | Old Values | New Value |
---|---|---|
MaxWind | 15-25 25-35 |
1 0 |
MinTemp | 35-41 28-35 |
1 0 |
SoilDepth | 31-72 18-31 |
1 0 |
SoilDrainage | 1.5-3 1-1.5 |
1 0 |
- Use the information contained in Table 7.1 to reclassify data values associated with the MaxWind, MinTemp, SoilDepth, and SoilDrainage layers. Please note that the desirable values are listed first for each raster layer.
Use a process similar to the one described in the previous step to complete each reclassification.Note: It is a good idea to change the name of each reclassified layer so that you can easily differentiate between the different layers. We suggest that each name be preceded with an "rc" (for reclassified).
- Modify the symbology, visibility and drawing order of layers in the Table of Contents as necessary.
Again, you might want to make the undesirable areas transparent so that only the desirable areas are visible (or vice versa).
E. Save the Project
You have just completed Part III of this lesson, which involved reclassification for the purpose of synthesizing the data. In Part IV, you will use Spatial Analyst’s Raster Calculator to combine data contained in several raster layers into a single output layer. This overlay operation will then enable you to identify areas that meet all of the required criteria for land that is suitable for vineyard development.
Lesson 7 Activity, Part IV: Combining Raster Layers
This exercise guides you through Part IV of this week’s exercise.
If you have any questions now or at any point during this lesson, please feel free to post them to help-from-instructors or arcgis-pro-assignment-questions channels in Slack.
A. Combine Flood_raster and Hydro_Buffer Layers with the Raster Calculator
In the following steps, you will use Spatial Analyst’s Raster Calculator to combine multiple raster layers into a single layer.
This is a little reminder that a value of 0 indicates that the location is NOT optimal for the cultivation of a new vineyard, and a value of 1 delineates prime areas for vineyard development. Corresponding cell values from the input raster layers will be multiplied together to enumerate the output raster. Cells in the output layer will contain values equal to 0 or 1 and will represent the product of cell values in the input layers. For example, in this step you will combine the floodplain data with the buffered streams to produce a single composite raster layer. All cells in the output layer will have values equal to 1, only if corresponding cells in both of the input layers are equal to 1 (e.g., 1 x 1 = 1). All other cells will have a value of 0. In this scenario, zero values are produced by the following cell value combinations: 0 x 0 = 0, 1 x 0 = 0 or 0 x 1 = 0.
- In Tools, click Spatial Analyst Tools > Map Algebra > Raster Calculator to begin building an expression that will enable you to multiply two raster layers together.
- Double-click the hydro_buffer layer located in the Map Algebra expression list box. Double-click the multiplication operator.
- Finish the expression by double-clicking the flood_raster layer from the list box.
- Rename the Output raster to flood_hydro.
- Click Run to perform the calculation.
Examine the results of this operation. You should notice that cell values in the output layer represent the product of corresponding cell values contained in the two input layers. All of the cells that represent floodplain, stream buffers, or both will have a value of 0. All other cells will have a value of 1. For the purposes of this analysis, we are interested in all of the non-zero cells, as these are not located within a floodplain or within 100 meters of a stream or river.
B. Combine the Remaining Raster Layers into a Single Layer and Display the Suitable Vineyard Sites
Raster Layer | Cell Value | Description |
---|---|---|
flood_hydro | 1 0 |
Outside floodplain or stream buffer Inside floodplain or stream buffer |
rc_lu_raster | 1 0 |
Agriculture or Undeveloped Forest or Urban |
rc_aspect | 1 0 |
SE, S, SW, W, or NW orientation NNW, N, NE or E orientation |
rc_maxwind | 1 0 |
Average maximum wind speed less than 25 mph Average maximum wind speed greater than 25 mph |
rc_mintemp | 1 0 |
Average minimum temp greater than 35 degrees F. Average minimum temp less than 35 degrees F. |
rc_soildepth | 1 0 |
Soil depth between 31 – 72 inches Soil depth of less than 30 inches |
rc_soildrain | 1 0 |
Medium to Highly drained soils Low drained soils |
- Open the Raster Calculator and build an expression to multiply all of the layers listed in Table 2 together. Your layer names may be slightly different.
- Rename the Output raster as suitablesites.
- Click Run to execute the calculation.
C. Display the Analysis Results
In this step, you will manipulate elements in the data frame to facilitate better visualization of the optimal vineyard sites.
- Drag the suitablesites layer to the top of the Table of Contents and place the hydro vector layer, flood_hydro raster layer, and hillshade raster layer in that order just below.
Remember that a hillshade operation was performed on the elevation layer. Overlaying the suitablesites layer on the hillshade layer allows for the visualization of the optimal sites within the context of the actual terrain. - Modify the symbology used to display the suitablesites layer. Make all cells with a value of 0 transparent – No Color.
- Choose a prominent and appropriate color to symbolize the suitable vineyard sites (those with a value of 1).
- Select suitable symbolization for the hydro and flood_hydro layers.
When symbolizing the floodplain, you do not want the non-floodplain area (VALUE field = 1) to obscure the other features in the data frame, so you can choose No Color. You could display the area within the floodplain as a partially transparent color.
D. Calculate the Number of Acres of Suitable Land
Now that you’ve completed the analysis, you might be curious about how much land was suitable for grape cultivation.
- Open the attribute table of the suitablesites layer and look at the number of cells that have a value of 1 (suitable).
- To calculate the area of the suitable land in square meters, you first need to remember what cell size was used. How do you calculate the area (square meters in this case) of each cell using the cell size?
- Multiply the number of square meters by 10.7639 to get the area in square feet.
- Divide the number of square feet by 43,560 to get the area in acres.
Try This!
In this lesson you found suitable sites for a vineyard. A new criterion has now been added – the vineyards cannot be located on public lands.
- Download the ownership layer (TryThis7.zip [3]).
- Factor the ownership data into the equation.
- How much suitable area (in acres) was eliminated because you could only consider private land? Hint: Subtract the area of the new suitable sites from the area of the old suitable sites. (This is something else to remember for the final project.)
- Create a map layout of the Try This results.
That’s it for Part IV…and Lesson 7!
[1] https://www.marketwatch.com/story/how-to-invest-in-a-winery-2013-08-13
[2] https://pennstateoffice365-my.sharepoint.com/:f:/g/personal/exf107_psu_edu/EpJzHk-fRldKqRrxD6HwEu4B_8bl3PHxV94-EPtCFDDPhA?e=qpVb5t
[3] https://pennstateoffice365-my.sharepoint.com/:f:/g/personal/mgz1_psu_edu/EvbraVkPmGxEmfrRs417y_cBjgbHfppoFPWAKyL6CJ1rEQ?e=lquvNY