1 of 186

Raster Analysis

Common Analytical Functions and Surface Analysis

​

Jeff Jenness

jeffj@jennessent.com (928) 607-4638

2 of 186

Main Topics

2

3 of 186

Main Topics

  • Reminder of what Raster data is

3

4 of 186

Main Topics

  • Reminder of what Raster data is

​

  • A few common ways to analyze raster data

4

5 of 186

Main Topics

  • Reminder of what Raster data is

​

  • A few common ways to analyze raster data
    • Reclassification

5

6 of 186

Main Topics

  • Reminder of what Raster data is

​

  • A few common ways to analyze raster data
    • Reclassification
    • Zonal Analysis

6

7 of 186

Main Topics

  • Reminder of what Raster data is

​

  • A few common ways to analyze raster data
    • Reclassification
    • Zonal Analysis
    • Neighborhood Analysis

7

8 of 186

Main Topics

  • Reminder of what Raster data is

​

  • A few common ways to analyze raster data
    • Reclassification
    • Zonal Analysis
    • Neighborhood Analysis
    • Math with Raster Layers

8

9 of 186

Main Topics

  • Reminder of what Raster data is

​

  • A few common ways to analyze raster data
    • Reclassification
    • Zonal Analysis
    • Neighborhood Analysis
    • Math with Raster Layers

​

  • Analysis of the shape of the landscape

9

10 of 186

Main Topics

  • Reminder of what Raster data is

​

  • A few common ways to analyze raster data
    • Reclassification
    • Zonal Analysis
    • Neighborhood Analysis
    • Math with Raster Layers

​

  • Analysis of the shape of the landscape
    • Slope, Aspect, Insolation, Hillshade, Curvature

10

11 of 186

Main Topics

  • Reminder of what Raster data is

​

  • A few common ways to analyze raster data
    • Reclassification
    • Zonal Analysis
    • Neighborhood Analysis
    • Math with Raster Layers

​

  • Analysis of the shape of the landscape
    • Slope, Aspect, Insolation, Hillshade, Curvature
    • Special Issues with Geographic Data

11

12 of 186

Spatial Data

  • Two Broad Categories: Vector and Raster
    • Vector Data:

12

13 of 186

Spatial Data

  • Two Broad Categories: Vector and Raster
    • Vector Data:
      • Precisely-defined spatial objects like Points, Lines and Polygons

13

14 of 186

Spatial Data

  • Two Broad Categories: Vector and Raster
    • Vector Data:
      • Precisely-defined spatial objects like Points, Lines and Polygons
      • Defined by one or more points called Vertices.

14

15 of 186

Spatial Data

  • Two Broad Categories: Vector and Raster
    • Vector Data:
      • Precisely-defined spatial objects like Points, Lines and Polygons
      • Defined by one or more points called Vertices.
      • Each vertex has X, Y and sometimes Z coordinates.

15

16 of 186

Spatial Data

  • Two Broad Categories: Vector and Raster
    • Vector Data:
      • Precisely-defined spatial objects like Points, Lines and Polygons
      • Defined by one or more points called Vertices.
      • Each vertex has X, Y and sometimes Z coordinates.
      • Points are composed of a single vertex.

16

17 of 186

Spatial Data

  • Two Broad Categories: Vector and Raster
    • Vector Data:
      • Precisely-defined spatial objects like Points, Lines and Polygons
      • Defined by one or more points called Vertices.
      • Each vertex has X, Y and sometimes Z coordinates.
      • Points are composed of a single vertex.
      • Lines (called Polylines in the GIS world) are linear features composed of a series of connected vertices.

17

18 of 186

Spatial Data

  • Two Broad Categories: Vector and Raster
    • Vector Data:
      • Precisely-defined spatial objects like Points, Lines and Polygons
      • Defined by one or more points called Vertices.
      • Each vertex has X, Y and sometimes Z coordinates.
      • Points are composed of a single vertex.
      • Lines (called Polylines in the GIS world) are linear features composed of a series of connected vertices.
      • Polygons are areal features composed of connected vertices, where the last vertex is connected back to the first vertex.

18

19 of 186

Vector Example

19

20 of 186

Vector Example

  • Good for Contiguous Regions with a Constant Value

20

21 of 186

Vector Example

  • Good for Contiguous Regions with a Constant Value
    • Land Ownership, Named Features

21

22 of 186

Vector Example

  • Good for Contiguous Regions with a Constant Value
    • Land Ownership, Named Features
  • Not so good for Constantly Changing Values across the landscape

22

23 of 186

Vector Example

  • Good for Contiguous Regions with a Constant Value
    • Land Ownership, Named Features
  • Not so good for Constantly Changing Values across the landscape
    • Elevation, Habitat Suitability, Solar Insolation

23

24 of 186

Raster Data

  • Remember Two Broad Categories: Vector and Raster
  • Raster Data:

24

25 of 186

Raster Data

  • Remember Two Broad Categories: Vector and Raster
  • Raster Data:
    • Composed of square pixels that completely cover a region. Occasionally they have rectangular pixels.

25

26 of 186

Raster Data

  • Remember Two Broad Categories: Vector and Raster
  • Raster Data:
    • Composed of square pixels that completely cover a region. Occasionally they have rectangular pixels.
    • Each pixel has a value (such as a color or number) which represents the general raster value within the pixel area.

26

27 of 186

Raster Data

  • Remember Two Broad Categories: Vector and Raster
  • Raster Data:
    • Composed of square pixels that completely cover a region. Occasionally they have rectangular pixels.
    • Each pixel has a value (such as a color or number) which represents the general raster value within the pixel area.
    • Not as precisely defined as vector data. The pixel value is a general descriptor of the cell, not the value at an exact location.

27

28 of 186

Raster Data

  • Remember Two Broad Categories: Vector and Raster
  • Raster Data:
    • Composed of square pixels that completely cover a region. Occasionally they have rectangular pixels.
    • Each pixel has a value (such as a color or number) which represents the general raster value within the pixel area.
    • Not as precisely defined as vector data. The pixel value is a general descriptor of the cell, not the value at an exact location.
    • Good at describing constantly changing values over the landscape.

28

29 of 186

Raster Example

  • They are often images, but with spatial parameters so we know exactly where they are located.
  • The pixel size is called the Resolution.

29

30 of 186

More on Rasters

  • All rasters are composed of either a single or multiple raster bands. Images commonly have at least three raster bands for different electromagnetic wavelengths.

30

31 of 186

Numeric Rasters

  • Rasters do not have to show imagery.

31

32 of 186

Numeric Rasters

  • Rasters do not have to show imagery.
  • Many rasters contain some kind of numeric values that describe or measure the landscape in some way.

32

33 of 186

Numeric Rasters

  • Rasters do not have to show imagery.
  • Many rasters contain some kind of numeric values that describe or measure the landscape in some way.
    • DEM: Digital Elevation Model, containing elevation or bathymetric values

33

34 of 186

Numeric Rasters

  • Rasters do not have to show imagery.
  • Many rasters contain some kind of numeric values that describe or measure the landscape in some way.
    • DEM: Digital Elevation Model, containing elevation or bathymetric values
    • Slope, Aspect, Curvature, Surface Area rasters

34

35 of 186

Numeric Rasters

  • Rasters do not have to show imagery.
  • Many rasters contain some kind of numeric values that describe or measure the landscape in some way.
    • DEM: Digital Elevation Model, containing elevation or bathymetric values
    • Slope, Aspect, Curvature, Surface Area rasters
    • Streamflow, flow direction, contributing area (watershed)

35

36 of 186

Numeric Rasters

  • Rasters do not have to show imagery.
  • Many rasters contain some kind of numeric values that describe or measure the landscape in some way.
    • DEM: Digital Elevation Model, containing elevation or bathymetric values
    • Slope, Aspect, Curvature, Surface Area rasters
    • Streamflow, flow direction, contributing area (watershed)
    • Habitat quality

36

37 of 186

DEM: Digital Elevation Model

  • Each raster cell contains elevation or bathymetric values.

37

38 of 186

Common Raster Analysis Methods

  • We will look at 4 common methods in this lab.

38

39 of 186

Common Raster Analysis Methods

  • We will look at 4 common methods in this lab.
    • Reclassification

39

40 of 186

Common Raster Analysis Methods

  • We will look at 4 common methods in this lab.
    • Reclassification
    • Zonal Statistics

40

41 of 186

Common Raster Analysis Methods

  • We will look at 4 common methods in this lab.
    • Reclassification
    • Zonal Statistics
    • Neighborhood Focal Statistics

41

42 of 186

Common Raster Analysis Methods

  • We will look at 4 common methods in this lab.
    • Reclassification
    • Zonal Statistics
    • Neighborhood Focal Statistics
    • Math with Raster Layers

42

43 of 186

Common Raster Analysis Methods�Reclassification

43

44 of 186

Common Raster Analysis Methods�Reclassification

  • Just means to assign a new value based on an old value.

44

45 of 186

Common Raster Analysis Methods�Reclassification

  • Just means to assign a new value based on an old value.
  • Usually used to categorize regions on the landscape that lie within some range of values.

45

46 of 186

Common Raster Analysis Methods�Reclassification

  • Just means to assign a new value based on an old value.
  • Usually used to categorize regions on the landscape that lie within some range of values.
  • Produces a new raster.

46

47 of 186

Common Raster Analysis Methods�Reclassification

  • Just means to assign a new value based on an old value.
  • Usually used to categorize regions on the landscape that lie within some range of values.
  • Produces a new raster.
  • Makes it easy to summarize an area based on proportion of cells that fall in each category.

47

48 of 186

Reclassification

48

49 of 186

Common Raster Analysis Methods�Zonal Statistics

49

50 of 186

Common Raster Analysis Methods�Zonal Statistics

  • Calculates general descriptive statistics (mean, minimum, maximum, etc.) on all raster cells within zones.

50

51 of 186

Common Raster Analysis Methods�Zonal Statistics

  • Calculates general descriptive statistics (mean, minimum, maximum, etc.) on all raster cells within zones.
  • Produces a Table of statistics describing each zone (although there are variations that produce other output formats).

51

52 of 186

Common Raster Analysis Methods�Zonal Statistics

  • Calculates general descriptive statistics (mean, minimum, maximum, etc.) on all raster cells within zones.
  • Produces a Table of statistics describing each zone (although there are variations that produce other output formats).
  • Zones can be defined lots of ways.

52

53 of 186

Common Raster Analysis Methods�Zonal Statistics

  • Calculates general descriptive statistics (mean, minimum, maximum, etc.) on all raster cells within zones.
  • Produces a Table of statistics describing each zone (although there are variations that produce other output formats).
  • Zones can be defined lots of ways.
    • Most commonly by a combination of vector objects (points, polylines, polygons) and associated attribute values.

53

54 of 186

Common Raster Analysis Methods�Zonal Statistics

  • Calculates general descriptive statistics (mean, minimum, maximum, etc.) on all raster cells within zones.
  • Produces a Table of statistics describing each zone (although there are variations that produce other output formats).
  • Zones can be defined lots of ways.
    • Most commonly by a combination of vector objects (points, polylines, polygons) and associated attribute values.
    • Also by categorical rasters, such as the reclassified elevation raster from last slide.

54

55 of 186

Zonal Statistics

55

Zonal Statistics for Polygon

Zonal Statistics for Points

56 of 186

Zonal Statistics

56

Zones based on County Name

Zones based on State Name

57 of 186

Zonal Statistics: Caution!

57

The tool doesn’t work with overlapping polygons!

Even worse, it won’t tell you there was a problem.

The solution is to select each polygon individually and run the tool on that single polygon.

58 of 186

Zonal Statistics: Another Caution!

58

The internal methods don’t always give you the correct values!

Point zone value = 16.42?

59 of 186

Common Raster Analysis Methods�Neighborhood Focal Statistics

59

60 of 186

Common Raster Analysis Methods�Neighborhood Focal Statistics

  • Analyzes all raster cells in some neighborhood around each cell.

60

61 of 186

Common Raster Analysis Methods�Neighborhood Focal Statistics

  • Analyzes all raster cells in some neighborhood around each cell.
  • Sometimes called a Moving Window analysis.

61

62 of 186

Common Raster Analysis Methods�Neighborhood Focal Statistics

  • Analyzes all raster cells in some neighborhood around each cell.
  • Sometimes called a Moving Window analysis.
  • Neighborhood analysis produces a new raster, where each raster cell value is a statistic (sum, mean, minimum, etc.) describing all cells in the neighborhood around the original cell.

62

63 of 186

Neighborhood Focal Statistics

63

64 of 186

Neighborhood Focal Statistics

64

65 of 186

Neighborhood Focal Statistics

65

66 of 186

Neighborhood Focal Statistics

66

67 of 186

Neighborhood Focal Statistics

67

68 of 186

Neighborhood Focal Statistics

68

69 of 186

Neighborhood Focal Statistics

69

70 of 186

Neighborhood Focal Statistics

70

71 of 186

Neighborhood Focal Statistics

71

72 of 186

Neighborhood Shapes

72

Circle

Wedge

Rectangle

Irregular

Annulus (aka “Ring”)

Weighted

73 of 186

Common Raster Analysis Methods�Math with Raster Layers

  • Use any standard mathematical operators or functions.

73

74 of 186

Common Raster Analysis Methods�Math with Raster Layers

  • Use any standard mathematical operators or functions.
  • For Example: Adding two raster layers produces a new raster where each cell is the sum of the overlapping cells from the two source raster bands.

74

75 of 186

Common Raster Analysis Methods�Math with Raster Layers

  • Remember you can apply any standard mathematical operators or functions.

75

76 of 186

Common Raster Analysis Methods�Math with Raster Layers

  • A common example: NDVI

76

77 of 186

Common Raster Analysis Methods�Math with Raster Layers

  • A common example: NDVI

77

-

+

=

78 of 186

Done with these 4 common raster analysis methods

    • Reclassification
    • Zonal Statistics
    • Neighborhood Focal Statistics
    • Math with Raster Layers

​

Any questions at this point?

78

79 of 186

Surface Analysis

  • All about describing the shape of the landscape based on a DEM.

79

“Love has boundaries, like a map, and I guess that makes me a cartographer. Don’t take this the wrong way, but you’re too topographical for my taste.”

Jarod Kintz, Love quotes for the ages. Specifically ages 18-81

80 of 186

Surface Analysis

  • All about describing the shape of the landscape based on a DEM.
    • Also known as Terrain Analysis

80

“Love has boundaries, like a map, and I guess that makes me a cartographer. Don’t take this the wrong way, but you’re too topographical for my taste.”

Jarod Kintz, Love quotes for the ages. Specifically ages 18-81

81 of 186

Surface Analysis

  • All about describing the shape of the landscape based on a DEM.
    • Also known as Terrain Analysis
    • Also known as Geomorphology

81

“Love has boundaries, like a map, and I guess that makes me a cartographer. Don’t take this the wrong way, but you’re too topographical for my taste.”

Jarod Kintz, Love quotes for the ages. Specifically ages 18-81

82 of 186

Surface Analysis

  • We will look at slope, aspect, insolation (solar radiation), hillshade and curvature.

82

83 of 186

Surface Analysis

  • We will look at slope, aspect, insolation (solar radiation), hillshade and curvature.
    • Technically, insolation does not describe the shape of the landscape directly, but it is almost entirely defined by the shape of the landscape.

83

84 of 186

Surface Analysis

  • We will look at slope, aspect, insolation (solar radiation), hillshade and curvature.
    • Technically, insolation does not describe the shape of the landscape directly, but it is almost entirely defined by the shape of the landscape.
  • There are many, many other ways to describe the shape of the landscape that we won’t go into.

84

85 of 186

Slope

85

86 of 186

Slope

  • Slope is usually defined in either Degrees or Percent.

86

87 of 186

Slope

  • Slope is usually defined in either Degrees or Percent.

87

    • Percent Slope is defined as “Rise over Run”.

88 of 186

Slope

  • Slope is usually defined in either Degrees or Percent.

88

    • Percent Slope is defined as “Rise over Run”.
      • 100% slope means that you have climbed vertically as much as you have moved horizontally.

89 of 186

Slope

  • Slope is usually defined in either Degrees or Percent.

89

    • Percent Slope is defined as “Rise over Run”.
      • 100% slope means that you have climbed vertically as much as you have moved horizontally.
      • Notice that 100% slope does not mean a vertical cliff!

90 of 186

Slope

  • Slope is usually defined in either Degrees or Percent.

90

    • Percent Slope is defined as “Rise over Run”.
      • 100% slope means that you have climbed vertically as much as you have moved horizontally.
      • Notice that 100% slope does not mean a vertical cliff!
    • Percent Slope ranges from 0% to Infinity.

91 of 186

Slope

  • Slope is usually defined in either Degrees or Percent.

91

    • Percent Slope is defined as “Rise over Run”.
      • 100% slope means that you have climbed vertically as much as you have moved horizontally.
      • Notice that 100% slope does not mean a vertical cliff!
    • Percent Slope ranges from 0% to Infinity.
    • Slope in Degrees ranges from 0° to 90°

92 of 186

Slope

  • Slope is usually defined in either Degrees or Percent.

92

    • Percent Slope is defined as “Rise over Run”.
      • 100% slope means that you have climbed vertically as much as you have moved horizontally.
      • Notice that 100% slope does not mean a vertical cliff!
    • Percent Slope ranges from 0% to Infinity.
    • Slope in Degrees ranges from 0° to 90°
    • Conversion Factors:

93 of 186

Slope Statistics

  • You cannot calculate the mean and standard deviation of slope values if they are in Percent!

93

94 of 186

Slope Statistics

  • You cannot calculate the mean and standard deviation of slope values if they are in Percent!

94

    • Given two slope values at 0° and 90°, clearly the average slope would be 45°.

​

95 of 186

Slope Statistics

  • You cannot calculate the mean and standard deviation of slope values if they are in Percent!

95

    • Given two slope values at 0° and 90°, clearly the average slope would be 45°.

​

​

    • If you tried this with % Slope values, your average slope would be a vertical cliff.

​

96 of 186

Slope Statistics

  • You cannot calculate the mean and standard deviation of slope values if they are in Percent!

96

    • Given two slope values at 0° and 90°, clearly the average slope would be 45°.

​

​

    • If you tried this with % Slope values, your average slope would be a vertical cliff.

​

​

    • If you want to calculate the average slope, your slope values must be in Degrees instead of Percent. You can always convert the average back to Percent if you want.

97 of 186

Aspect

97

If you do not change direction, you may end up where you are heading. Lau Tzu

98 of 186

Aspect

  • Aspect plays a major role in microclimate, vegetation density and species composition.

98

99 of 186

99

What do you do with Aspect?

  • Circular Variable:

100 of 186

100

What do you do with Aspect?

  • Circular Variable:
    • The difference between 0° and 1° is the same as the difference between 0° and 359°!

101 of 186

101

What do you do with Aspect?

  • Circular Variable:
    • The difference between 0° and 1° is the same as the difference between 0° and 359°!
    • You can’t use arithmetic mean and standard deviation! The Focal Statistics and Zonal Statistics tools do not give you correct statistics.

102 of 186

102

What do you do with Aspect?

  • Circular Variable:
    • The difference between 0° and 1° is the same as the difference between 0° and 359°!
    • You can’t use arithmetic mean and standard deviation! The Focal Statistics and Zonal Statistics tools do not give you correct statistics.
  • There are measures of dispersion and central tendency, though…

103 of 186

103

What do you do with Aspect?

  • Circular Variable:
    • The difference between 0° and 1° is the same as the difference between 0° and 359°!
    • You can’t use arithmetic mean and standard deviation! The Focal Statistics and Zonal Statistics tools do not give you correct statistics.
  • There are measures of dispersion and central tendency, though…

104 of 186

104

What do you do with Aspect?

  • Mean Direction

105 of 186

105

What do you do with Aspect?

  • Mean Direction

Math was always my bad subject. I couldn't convince my teachers that many of my answers were meant ironically. Calvin Trillin

106 of 186

106

What do you do with Aspect?

  • Mean Resultant Length
    • Component of several measures of dispersion

And by the same token, I appreciate math, because I can't do math. If I have to read a map or figure out the tip on a restaurant bill, I might start to tear up a little bit. Thomas Wilson

107 of 186

107

  • Some people decompose Aspect into Northness and Eastness values, using the sine and cosine of aspect.
  • Make sure you convert Degrees to Radians first!

​

What do you do with Aspect?

108 of 186

108

  • Some people decompose Aspect into Northness and Eastness values, using the sine and cosine of aspect.
    • Or, from any direction of interest: See Trimble and Weitzman 1956 [SE/NW], or Beers et al. 1966 [Any Direction]
  • Make sure you convert Degrees to Radians first!

​

What do you do with Aspect?

Beers, T. W., P. E. Dress, and L. C. Wensel. 1966. Notes and Observations: Aspect Transformation in Site Productivity Research. Journal of Forestry 64:691–692.

Trimble, G. R., and S. Weitzman. 1956. Site Index Studies of Upland Oaks in the Northern Appalachians. Forest Science 2:162–173.

109 of 186

109

  • Some people decompose Aspect into Northness and Eastness values, using the sine and cosine of aspect.
    • Or, from any direction of interest: See Trimble and Weitzman 1956 [SE/NW], or Beers et al. 1966 [Any Direction]
  • Alternatively, simply convert aspect into a Deviation from some Direction of Interest.
  • Make sure you convert Degrees to Radians first!

​

  • Green dashed line:
    • If Aspect ≤ 180, then
      • Deviation = Aspect
    • Else if Aspect > 180, then
      • Deviation = [360 – Aspect]

What do you do with Aspect?

Beers, T. W., P. E. Dress, and L. C. Wensel. 1966. Notes and Observations: Aspect Transformation in Site Productivity Research. Journal of Forestry 64:691–692.

Trimble, G. R., and S. Weitzman. 1956. Site Index Studies of Upland Oaks in the Northern Appalachians. Forest Science 2:162–173.

110 of 186

110

What do you do with Aspect?

I am among those who think that science has great beauty. A scientist in his laboratory is not only a technician: he is also a child placed before natural phenomena which impress him like a fairy tale. Marie Curie

111 of 186

111

What do you do with Aspect?

If you torture data sufficiently, it will confess to almost anything. Fred Menger

112 of 186

112

Trivia Time!

  • What famous statistician invented this type of graph?
    • This person called it a Rose Plot, because the bars extended out like the petals of a flower.

​

113 of 186

113

Trivia Time!

114 of 186

114

Trivia Time!

Florence Nightingale!

In the Crimean War, she

convinced the queen to adopt

medical and sanitary standards

with this chart

115 of 186

115

  • A lot of people just reclassify it into general directions, then summarize their study area according to percentage in each general direction.

What do you do with Aspect?

116 of 186

116

What do you do with Aspect?

  • Some food for thought:
    • Aspect obviously has a great influence on vegetation species composition, structure and microhabitat.

117 of 186

117

What do you do with Aspect?

  • Some food for thought:
    • Aspect obviously has a great influence on vegetation species composition, structure and microhabitat.
    • Why does Aspect have this influence?

118 of 186

118

What do you do with Aspect?

  • Some food for thought:
    • Aspect obviously has a great influence on vegetation species composition, structure and microhabitat.
    • Why does Aspect have this influence?
      • Possibly because of prevailing wind direction.
      • In large part because of how much sunlight hits the area, and at what angle.

119 of 186

119

What do you do with Aspect?

  • Some food for thought:
    • Aspect obviously has a great influence on vegetation species composition, structure and microhabitat.
    • Why does Aspect have this influence?
      • Possibly because of prevailing wind direction.
      • In large part because of how much sunlight hits the area, and at what angle.
    • If aspect is important because of how it influences sun exposure, then perhaps solar insolation would be a better variable to use.
      • Much easier to calculate summary statistics from solar insolation!

120 of 186

Solar Insolation

  • In many cases, it may be a more direct driver for vegetation and microclimate than aspect.

120

121 of 186

Solar Insolation

  • In many cases, it may be a more direct driver for vegetation and microclimate than aspect.
  • All about measuring how much sunlight hits the ground, based on topography.

121

122 of 186

Solar Insolation

  • In many cases, it may be a more direct driver for vegetation and microclimate than aspect.
  • All about measuring how much sunlight hits the ground, based on topography.
    • It does incorporate direct sunlight from the sun, plus diffuse radiation from the sky in general.

122

123 of 186

Solar Insolation

  • In many cases, it may be a more direct driver for vegetation and microclimate than aspect.
  • All about measuring how much sunlight hits the ground, based on topography.
    • It does incorporate direct sunlight from the sun, plus diffuse radiation from the sky in general.
    • It does not incorporate reflection from the ground.

123

124 of 186

Solar Insolation

  • In many cases, it may be a more direct driver for vegetation and microclimate than aspect.
  • All about measuring how much sunlight hits the ground, based on topography.
    • It does incorporate direct sunlight from the sun, plus diffuse radiation from the sky in general.
    • It does not incorporate reflection from the ground.
  • Lots of cool options, like calculating for a specific time, day, season or year.

124

125 of 186

Solar Insolation

  • In many cases, it may be a more direct driver for vegetation and microclimate than aspect.
  • All about measuring how much sunlight hits the ground, based on topography.
    • It does incorporate direct sunlight from the sun, plus diffuse radiation from the sky in general.
    • It does not incorporate reflection from the ground.
  • Lots of cool options, like calculating for a specific time, day, season or year.
  • It takes a long time to calculate, though.

125

126 of 186

Solar Insolation

126

127 of 186

Solar Insolation: Optional Output

127

128 of 186

128

129 of 186

Hillshade

129

130 of 186

The “Swiss Method”

130

Beauty is the first test; there is no permanent place in the world for ugly mathematics. G. H. Hardy

131 of 186

The “Swiss Method”

  • Light Source from Multiple Directions

131

Beauty is the first test; there is no permanent place in the world for ugly mathematics. G. H. Hardy

132 of 186

The “Swiss Method”

  • Light Source from Multiple Directions
  • Atmospheric Adjustments

132

Beauty is the first test; there is no permanent place in the world for ugly mathematics. G. H. Hardy

133 of 186

The “Swiss Method”

  • Light Source from Multiple Directions
  • Atmospheric Adjustments
  • Blur the Final Hillshade

133

Beauty is the first test; there is no permanent place in the world for ugly mathematics. G. H. Hardy

134 of 186

MDOW Hillshade��Multidirectional, Oblique-Weighted Hillshade

134

135 of 186

4 illumination sources

135

136 of 186

4 illumination sources

136

137 of 186

Hypsometric Shading

137

138 of 186

Blurring the hillshade

You can easily create this manually if you like, by:

138

139 of 186

Blurring the hillshade

You can easily create this manually if you like, by:

  1. Calculating a neighborhood mean of the DEM before creating the hillshade, or

139

140 of 186

Blurring the hillshade

You can easily create this manually if you like, by:

  1. Calculating a neighborhood mean of the DEM before creating the hillshade, or
  2. Calculating a neighborhood mean of the hillshade after you’ve created it.

140

141 of 186

Blurring the hillshade

You can easily create this manually if you like, by:

  1. Calculating a neighborhood mean of the DEM before creating the hillshade, or
  2. Calculating a neighborhood mean of the hillshade after you’ve created it.

​

Option 1 usually looks a little better.

​

141

142 of 186

142

143 of 186

143

144 of 186

Hillshade Trivia

144

Is this a mountain range or a canyon?

145 of 186

Hillshade Trivia

145

Here is what it looks like using the default sun direction.

146 of 186

Curvature

  • Infinite number of variations. ArcGIS offers 3 types of curvature.

146

147 of 186

Curvature

  • Infinite number of variations. ArcGIS offers 3 types of curvature.
  • It can be used as a measure of exposure because it identifies hills, ridges, valleys and depressions.

147

148 of 186

Curvature

  • Infinite number of variations. ArcGIS offers 3 types of curvature.
  • It can be used as a measure of exposure because it identifies hills, ridges, valleys and depressions.
  • Used a lot in hydrological projects because it shows whether water will converge, diverge, accelerate or decelerate as it flows over a cell.

148

149 of 186

Curvature�This general curvature tells you whether the landscape is concave or convex. Values can be positive or negative.�

149

150 of 186

Curvature

150

151 of 186

Profile Curvature�Suggests whether running water will speed up or slow down as it flows over the point.�

151

Intersect a vertical plane, in direction of aspect, with the surface

152 of 186

Profile Curvature

152

153 of 186

Plan Curvature�Suggests whether water will converge or diverge as it flows over a point.

153

Intersect a horizontal plane with the surface

154 of 186

Plan Curvature

154

155 of 186

Curvature Units

  • This is usually what curvature units mean, although some variations of curvature don’t really have understandable units.

​

  • Often landscape curvature is so flat that curvature is reported in units of

​

  • Curvature calculated on line of intersection between surface and a plane.

155

156 of 186

Warning!�If your DEM is in Geographic coordinates, only use Geodesic methods to calculate surface rasters!

  • Many standard ArcGIS surface tools are only accurate with projected data. Geographic (i.e. Latitude / Longitude) data violate important assumptions of the tools.

156

157 of 186

Warning!�If your DEM is in Geographic coordinates, only use Geodesic methods to calculate surface rasters!

  • Many standard ArcGIS surface tools are only accurate with projected data. Geographic (i.e. Latitude / Longitude) data violate important assumptions of the tools.
    • Assumption 1: The tools assume the raster cells are square. Geographic raster cells are actually trapezoidal when viewed on the earth’s surface.

157

158 of 186

Warning!�If your DEM is in Geographic coordinates, only use Geodesic methods to calculate surface rasters!

  • Many standard ArcGIS surface tools are only accurate with projected data. Geographic (i.e. Latitude / Longitude) data violate important assumptions of the tools.
    • Assumption 1: The tools assume the raster cells are square. Geographic raster cells are actually trapezoidal when viewed on the earth’s surface.
    • Assumption 2: The X, Y and Z units are all the same.

158

159 of 186

Here is the problem:

  • All surface tools rely on both the east-west and north-south gradients over every cell.

159

Given 9 elevation values…

Z1 ---- Z2 ---- Z3

| | |

| | |

| | |

Z4 ---- Z5 ---- Z6

| | |

| | |

| | |

Z7 ---- Z8 ---- Z9

160 of 186

Here is the problem:

  • Unfortunately the cells are trapezoids, not squares!
  • Therefore the cell size is different for the east-west and north-south gradients, and even for each row in the east-west calculations.

160

161 of 186

Here is the problem:

  • Consequently, ArcGIS underestimates the east-west gradient, which screws up all the other surface calculations.

​

​

​

​

​

​

​

​

​

​

​

161

162 of 186

Another (more general) Problem with Units:

Remembering back to the

equations:

​

​

​

​

​

​

162

Given 9 elevation values…

Z1 ---- Z2 ---- Z3

| | |

| | |

| | |

Z4 ---- Z5 ---- Z6

| | |

| | |

| | |

Z7 ---- Z8 ---- Z9

163 of 186

Another (more general) Problem with Units:

Remembering back to the

equations:

​

​

​

​

​

​

​

​

  • These equations also assume that the Z-units are the same as the X- and Y-units.

163

Given 9 elevation values…

Z1 ---- Z2 ---- Z3

| | |

| | |

| | |

Z4 ---- Z5 ---- Z6

| | |

| | |

| | |

Z7 ---- Z8 ---- Z9

164 of 186

Another (more general) Problem with Units:

Remembering back to the

equations:

​

​

​

​

​

​

​

​

  • These equations also assume that the Z-units are the same as the X- and Y-units.
  • If your elevation units are in Feet, but your raster coordinate system uses Meters (and therefore your cell sizes are in meters), then you must remember to set a correction factor in the tool to convert Feet to Meters!

164

Given 9 elevation values…

Z1 ---- Z2 ---- Z3

| | |

| | |

| | |

Z4 ---- Z5 ---- Z6

| | |

| | |

| | |

Z7 ---- Z8 ---- Z9

165 of 186

Another (more general) Problem with Units:

Remembering back to the

equations:

​

​

​

​

​

​

​

​

  • These equations also assume that the Z-units are the same as the X- and Y-units.
  • If your elevation units are in Feet, but your raster coordinate system uses Meters (and therefore your cell sizes are in meters), then you must remember to set a correction factor in the tool to convert Feet to Meters!
  • This is a common user error. ArcGIS lets you set an elevation correction factor (called a z-factor) to avoid this error, but it is up to you to remember to set it!

165

Given 9 elevation values…

Z1 ---- Z2 ---- Z3

| | |

| | |

| | |

Z4 ---- Z5 ---- Z6

| | |

| | |

| | |

Z7 ---- Z8 ---- Z9

166 of 186

Surface Analysis: Major Points to Remember:�These are very common errors people make…

166

167 of 186

Surface Analysis: Major Points to Remember:�These are very common errors people make…

  • It is fine to calculate slope as either Percent Slope or Degrees Slope. However, you can’t calculate descriptive statistics if your slope values are in Percent.

167

168 of 186

Surface Analysis: Major Points to Remember:�These are very common errors people make…

  • It is fine to calculate slope as either Percent Slope or Degrees Slope. However, you can’t calculate descriptive statistics if your slope values are in Percent.
    • Percent slope works fine if you want to reclassify into, say, harvestable vs. non-harvestable slopes.

168

169 of 186

Surface Analysis: Major Points to Remember:�These are very common errors people make…

  • It is fine to calculate slope as either Percent Slope or Degrees Slope. However, you can’t calculate descriptive statistics if your slope values are in Percent.
    • Percent slope works fine if you want to reclassify into, say, harvestable vs. non-harvestable slopes.
    • 100% Slope is not equal to a vertical cliff. It is equal to a 45° slope.

169

170 of 186

Surface Analysis: Major Points to Remember:�These are very common errors people make…

  • It is fine to calculate slope as either Percent Slope or Degrees Slope. However, you can’t calculate descriptive statistics if your slope values are in Percent.
    • Percent slope works fine if you want to reclassify into, say, harvestable vs. non-harvestable slopes.
    • 100% Slope is not equal to a vertical cliff. It is equal to a 45° slope.
  • Aspect is a circular variable and therefore you can’t use traditional methods to calculate descriptive statistics.

170

171 of 186

Surface Analysis: Major Points to Remember:�These are very common errors people make…

  • It is fine to calculate slope as either Percent Slope or Degrees Slope. However, you can’t calculate descriptive statistics if your slope values are in Percent.
    • Percent slope works fine if you want to reclassify into, say, harvestable vs. non-harvestable slopes.
    • 100% Slope is not equal to a vertical cliff. It is equal to a 45° slope.
  • Aspect is a circular variable and therefore you can’t use traditional methods to calculate descriptive statistics.
  • Many surface variables require that your DEM be projected!
    • Slope and Aspect exceptions in newer versions of software, but curvature and hillshades still require projected data.

171

172 of 186

Neighborhood and Surface Analysis Tip

  • Remember that all Neighborhood tools require all cells in the neighborhood to accurately calculate the new cell value.

172

173 of 186

Neighborhood and Surface Analysis Tip

  • Remember that all Neighborhood tools require all cells in the neighborhood to accurately calculate the new cell value.
  • Most surface analysis functions (slope, aspect, hillshade and curvature) are neighborhood functions that use a 3x3 or 5x5 cell neighborhood.

173

174 of 186

Neighborhood and Surface Analysis Tip

  • Remember that all Neighborhood tools require all cells in the neighborhood to accurately calculate the new cell value.
  • Most surface analysis functions (slope, aspect, hillshade and curvature) are neighborhood functions that use a 3x3 or 5x5 cell neighborhood.
  • Therefore neighborhood and surface tools cannot accurately calculate values for the outermost rows and columns, or any cells next to “No Data” cells.

174

175 of 186

Neighborhood and Surface Analysis Tip

  • Remember that all Neighborhood tools require all cells in the neighborhood to accurately calculate the new cell value.
  • Most surface analysis functions (slope, aspect, hillshade and curvature) are neighborhood functions that use a 3x3 or 5x5 cell neighborhood.
  • Therefore neighborhood and surface tools cannot accurately calculate values for the outermost rows and columns, or any cells next to “No Data” cells.
  • Consequently the new raster will either be smaller (fewer rows and columns) than the original raster, or the outermost cells will not be calculated with full data.

175

176 of 186

Neighborhood and Surface Analysis Tip

  • Remember that all Neighborhood tools require all cells in the neighborhood to accurately calculate the new cell value.
  • Most surface analysis functions (slope, aspect, hillshade and curvature) are neighborhood functions that use a 3x3 or 5x5 cell neighborhood.
  • Therefore neighborhood and surface tools cannot accurately calculate values for the outermost rows and columns, or any cells next to “No Data” cells.
  • Consequently the new raster will either be smaller (fewer rows and columns) than the original raster, or the outermost cells will not be calculated with full data.

176

177 of 186

Neighborhood and Surface Analysis Tip

177

178 of 186

Neighborhood and Surface Analysis Tip

178

179 of 186

Neighborhood and Surface Analysis Tip

179

180 of 186

Neighborhood and Surface Analysis Tip

180

181 of 186

Neighborhood and Surface Analysis Tip

181

182 of 186

Neighborhood and Surface Analysis Tip

  • Takeaway message: If you want to calculate neighborhood or surface rasters accurately within some area, make sure your original DEM or source raster is larger than that area!

182

183 of 186

Neighborhood and Surface Analysis Tip

  • Takeaway message: If you want to calculate neighborhood or surface rasters accurately within some area, make sure your original DEM or source raster is larger than that area!
    • For Surface rasters (slope, aspect, hillshade, curvature), your original DEM should be at least 1 – 2 cells larger than your area (curvature requires a 5x5 neighborhood, so you need a 2-cell buffer).

183

184 of 186

Neighborhood and Surface Analysis Tip

  • Takeaway message: If you want to calculate neighborhood or surface rasters accurately within some area, make sure your original DEM or source raster is larger than that area!
    • For Surface rasters (slope, aspect, hillshade, curvature), your original DEM should be at least 1 – 2 cells larger than your area (curvature requires a 5x5 neighborhood, so you need a 2-cell buffer).
    • For other neighborhood rasters, your original raster should be larger than your area by at least ½-neighborhood size.

184

185 of 186

Neighborhood and Surface Analysis Tip

  • Takeaway message: If you want to calculate neighborhood or surface rasters accurately within some area, make sure your original DEM or source raster is larger than that area!
    • For Surface rasters (slope, aspect, hillshade, curvature), your original DEM should be at least 1 – 2 cells larger than your area (curvature requires a 5x5 neighborhood, so you need a 2-cell buffer).
    • For other neighborhood rasters, your original raster should be larger than your area by at least ½-neighborhood size.
    • Solar Insolation requires a much larger region than your area (typically about 200 cells) because it accounts for shadows from far away.

185

186 of 186

Issues with Directional Data

  • If you are interested, I have attached a discussion on special issues with working with directional data.
  • See Appendix to lab exercise document.

186