Computation of Slope

Similar documents
Preview. Two-Dimensional Motion and Vectors Section 1. Section 1 Introduction to Vectors. Section 2 Vector Operations. Section 3 Projectile Motion

Chapter 1. Linear Equations and Straight Lines. 2 of 71. Copyright 2014, 2010, 2007 Pearson Education, Inc.

Convert Local Coordinate Systems to Standard Coordinate Systems

Surface Analysis. Data for Surface Analysis. What are Surfaces 4/22/2010

Lecture 4. If P1(x1,y1) and P2(x2,y2) are points on a non-vertical line, then the slope m of the line is defined by

Fundamentals of Surveying MSS 220 Prof. Gamal El-Fiky

Geographic Surfaces. David Tenenbaum EEOS 383 UMass Boston

Fall 2016 Semester METR 3113 Atmospheric Dynamics I: Introduction to Atmospheric Kinematics and Dynamics

SNAP Centre Workshop. Introduction to Trigonometry

Algorithms for GIS csci3225

( ) Derivation of Polar Reduction Formula for a Calculator Robert Bernecky April, 2018 ( )

BASIC MATHEMATICS FOR CADASTRAL MAPPING

Math 124 Final Examination Autumn Turn off all cell phones, pagers, radios, mp3 players, and other similar devices.

Answers. Chapter 2. 1) Give the coordinates of the following points:

Kevin James. MTHSC 206 Section 15.6 Directional Derivatives and the Gra

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:

Theodolite and Angles Measurement

Types of Edges. Why Edge Detection? Types of Edges. Edge Detection. Gradient. Edge Detection

Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives

SNAP Centre Workshop. Graphing Lines

Chapter 5. Transforming Shapes

Vector Calculus: Understanding the Cross Product

Understanding Topographic Maps

Jim Lambers MAT 169 Fall Semester Lecture 33 Notes

L7 Raster Algorithms

A SYSTEM OF COORDINATES FOR 3D

THE VIEWING TRANSFORMATION

HP-35s Calculator Program Curves 2A

1 Affine and Projective Coordinate Notation

Astromechanics. 12. Satellite Look Angle

Inverses of Trigonometric. Who uses this? Hikers can use inverse trigonometric functions to navigate in the wilderness. (See Example 3.

Visualisation Pipeline : The Virtual Camera

5.6 Exercises. Section 5.6 Optimization Find the exact maximum value of the function f(x) = x 2 3x.

14.6 Directional Derivatives and the Gradient Vector

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6

Big Mathematical Ideas and Understandings

Mathematics Background


Overview for Families

Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers

v SMS 12.2 Tutorial Observation Prerequisites Requirements Time minutes

ENGI Parametric & Polar Curves Page 2-01

Linear algebra deals with matrixes: two-dimensional arrays of values. Here s a matrix: [ x + 5y + 7z 9x + 3y + 11z

PARAMETRIC EQUATIONS AND POLAR COORDINATES

TIPS4Math Grades 4 to 6 Overview Grade 4 Grade 5 Grade 6 Collect, Organize, and Display Primary Data (4+ days)

Math For Surveyors. James A. Coan Sr. PLS

Introduction to MATLAB

Basics of Computational Geometry

14.5 Directional Derivatives and the Gradient Vector

DOWN PLUNGE CROSS SECTIONS

Geo, Chap 8 Practice Test, EV Ver 1

2D and 3D Transformations AUI Course Denbigh Starkey

Local Linearity (Tangent Plane) Unit #19 : Functions of Many Variables, and Vectors in R 2 and R 3

2 Unit Bridging Course Day 2 Linear functions I: Gradients

Pre-calculus Chapter 4 Part 1 NAME: P.

Module 7 Defining Coordinate Systems

MAT 003 Brian Killough s Instructor Notes Saint Leo University

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

Channel Conditions in the Onion Creek Watershed. Integrating High Resolution Elevation Data in Flood Forecasting

Chapter 2: Transformations. Chapter 2 Transformations Page 1

Lecture 9. Raster Data Analysis. Tomislav Sapic GIS Technologist Faculty of Natural Resources Management Lakehead University

Background for Surface Integration

Unit #19 : Functions of Many Variables, and Vectors in R 2 and R 3

B A

Flow on terrains. Laura Toma csci 3225 Algorithms for GIS Bowdoin College

v Observations SMS Tutorials Prerequisites Requirements Time Objectives

Rational Numbers: Graphing: The Coordinate Plane

Surfaces and Partial Derivatives

Chapter -7- Traversing. 1/28/2018 Assistant Lecturer / Asmaa Abdulmajeed 1. Contents

(Refer Slide Time: 00:03:51)

Vector Addition. Qty Item Part Number 1 Force Table ME-9447B 1 Mass and Hanger Set ME Carpenter s level 1 String

Part Five: Trigonometry Review. Trigonometry Review

G r a d e 1 0 I n t r o d u c t i o n t o A p p l i e d a n d P r e - C a l c u l u s M a t h e m a t i c s ( 2 0 S )

Common Core Standards Addressed in this Resource

Observation Coverage SURFACE WATER MODELING SYSTEM. 1 Introduction. 2 Opening the Data

Unit Circle. Project Response Sheet

Purpose: To explore the raster grid and vector map element concepts in GIS.

Steiner's Porism: An Activity Using the TI-92 Paul Beem Indiana University South Bend, IN

7Coordinate. geometry UNCORRECTED PAGE PROOFS. 7.1 Kick off with CAS

Unit 3 Higher topic list

WHERE THEORY MEETS PRACTICE

3D Mathematics. Co-ordinate systems, 3D primitives and affine transformations

GRADE 6 PAT REVIEW. Math Vocabulary NAME:

Graphics and Interaction Transformation geometry and homogeneous coordinates

A stratum is a pair of surfaces. When defining a stratum, you are prompted to select Surface1 and Surface2.

Chapter 5 Partial Differentiation

ANGLES 4/18/2017. Surveying Knowledge FE REVIEW COURSE SPRING /19/2017

Unit 4 Trigonometry. Study Notes 1 Right Triangle Trigonometry (Section 8.1)

Birkdale High School - Higher Scheme of Work

(Refer Slide Time: 00:04:20)

YEAR 10- Mathematics Term 1 plan

Unit #20 : Functions of Many Variables, and Vectors in R 2 and R 3

about touching on a topic and then veering off to talk about something completely unrelated.

Geographic Information Systems (GIS) Spatial Analyst [10] Dr. Mohammad N. Almasri. [10] Spring 2018 GIS Dr. Mohammad N. Almasri Spatial Analyst

Vector Addition and Subtraction: Analytical Methods

Trigonometric Ratios and Functions

Coordinate Geometry. Coordinate geometry is the study of the relationships between points on the Cartesian plane

Quaternions and Euler Angles

Name: Block: What I can do for this unit:

Chapter 23. Linear Motion Motion of a Bug

Transcription:

Computation of Slope Prepared by David R. Maidment and David Tarboton GIS in Water Resources Class University of Texas at Austin September 2011, Revised December 2011 There are various ways in which slope can be computed depending on the nature of the information available and the method to be used. A Line in a 3D space The simplest way to think about slope is to consider two points in a three dimensional space and a line that connects them. Suppose there are two such points, A and B, and they have coordinates (xa, ya, za,) and (xb, yb, zb,). If we connect them by a line drawn from A to B then the components of the vector AB are ( x, y, z), where x = (xb- xa), y = (yb- ya), z = (zbza). The vector AB can also be thought of as having two components, a rise, which represents the vertical difference, z, between the two points, and a run, x 2 + y 2, which represents the horizontal distance between them. With these definitions, the slope of the line AB is given by Slope = Rise Run (1) In addition, the azimuth of the line AB, or its orientation angle measured clockwise from North, is given by Azimuth = 180 π tan 1 x y (2) Figure 1. Azimuth angle measured clockwise from North Note that due to angles being measured from the y-axis (North), the ratio in (2) is x/ y, not the more common y/ x used for angles from the x-axis. 1

Example The location of two survey benchmarks on 24th St on the University of Texas campus is shown in Figure 2, and Figure 3 shows a photograph of Benchmark B which is located on a bridge over Waller Creek. These benchmarks serve as reference points for the location of campus facilities. The coordinates of these two benchmarks with all dimensions in feet are given by Benchmark Easting Northing Elevation A 819470.95 235256.11 555.42 B 820462.32 235187.15 524.06 Determine the length, slope and azimuth of the line AB. Figure 2. Survey benchmarks on the University of Texas campus 2

Figure 3. Location of Survey Benchmark 2 Solution In the coordinate values, the Easting is x, Northing is y, and Elevation is z, so the x-component of the vector AB is given by x = 820462.32-819470.95 = 991.37, and similar computations for y and z produce the following values in feet: x y z AB 991.37-68.96-31.36 Notice that while x is positive meaning that B is East of A, y is negative meaning that B is slightly South of A, and z is also negative because B is below A, and in fact water flows down 24th St from A to B as it drains towards Waller Creek on our campus. The Length of the line AB is given by Length = x 2 + y 2 + z 2 = 991.37 2 +( 68.96) 2 + ( 31.36) 2 = 994. 26 ft For the line AB, the rise = -31.36 ft, and the run = 991.37 2 + ( 68.96) 2 = 993.77 ft, and substituting these quantities into Eq. (1), Slope = 31.36 993.77 or, Slope = 0.0316 3

This means that the average downhill slope of 24 th St as water drains along it towards Waller Creek is a little more than 3%. Another way of expressing the slope is as an angle in degrees, called the zenith, which may be computed as Zenith = 180 π tan 1 ( 0.0316) or, Zenith = 1.807 Similarly, by substituting into Eq. (2), the azimuth of line AB is given by Azimuth = 180 x tan 1 π y However, the computation of the azimuth is more complicated mathematically than for the zenith because the inverse tangent function is multi-valued. This does not matter for the zenith angle which is limited to the range -90 o to 90 o. However for the azimuth angle which has the range 0 o to 360 o, this multi-valuedness is an issue because the ratio x/ y is the same as the ratio ( x)/( y), but vectors ( x, y) and ( x, y) are in opposite directions. The atan2 function has been developed to resolve this ambiguity. In Excel the atan2 function is defined as follows: atan2(x_num,y_num) returns the arctangent, or inverse tangent, of the specified x- and y-coordinates. The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a point with coordinates (x_num, y_num). The angle is given in radians between -pi and pi, excluding pi. Note that computer programming languages commonly define atan2 differently, with the arguments reversed from Excel, so in using this function you need to check on the convention used. Wikipedia provides a thorough discussion (http://en.wikipedia.org/wiki/atan2). In this instance, we have Azimuth = 180 π 180 atan2 ( y, x) = atan2 ( 68.96, 991.37) = 93.98 π Figure 4. Azimuth of line AB Note again that in the evaluation of atan2, the order of arguments is y, x because we are measuring the angle from the y-axis (North). The atan2 function in Excel returns a value 4

between and, so here with 180/ as a pre-multiplier the range is -180 o to 180 o. In case a negative value is obtained add 360 o to obtain the corresponding angle clockwise from North. So, in summary, there several ways that we can think about the definition of the line AB: A vector that originates at point A, and has components in the (x,y,z) Cartesian coordinate space of (991.37, -68.96, -31.36). A vector of length 994.26 ft that originates at A, which is rotated 93.98 from North in the horizontal plane, and then 1.81 in the vertical plane to reach the point B. The values (994.26, 93.98, -1.81) are its coordinates in a Spherical coordinate space. A vector drawn in the azimuth direction of 93.98 that has a horizontal component or run of 991.37 ft and a vertical component or rise of -31.36 ft. In all these instances, it takes three pieces of information to define the line that originates at point A and ends at point B in a 3D space, in the first instance three length values, in the second instance one length value and two angles, and in the third instance two length values and one angle. These are all valid ways of thinking about how vectors are defined in a 3D space, but the third one is the most useful for defining the slope of the line. A Function in a 2D Space Suppose we have a 2D space (x,y) where x and y are coordinates in the horizontal plane, and we have some arbitrary function F defined over this plane. The value of F could represent any scalar quantity, such as annual precipitation or air temperature. If we wish to define the gradient of this function at a particular location (x,y), we would use the nomenclature: F(x, y) = ( F x, F y ) where F/ x represents the partial derivative of the function in the x-direction, F/ y represents the partial derivative of the function in the y-direction, each evaluated at the point (x,y). In this case, the magnitude of the gradient is given by: And the direction of the gradient is given by F(x, y) = ( F x ) 2 + ( F y ) 2 Direction[ F(x, y)] = atan2 ( F x, F y ) 5

Land Surface Slope Land surface elevation is a function defined on a 2D coordinate space, that is, at any location (x,y) on the land portion of the earth s surface, there is a corresponding elevation value, let s call it Z, which represents the vertical height of the land surface above the geoid surface at that location. Z is capitalized to distinguish the land surface elevation from any quantity defined by a z-coordinate. Now we can define the gradient, or slope of the land surface by a 2D vector: Land Surface Slope = Z(x, y) = ( Z x, Z y ) The magnitude of the land surface slope is given by Slope = ( Z x ) 2 + ( Z y ) 2 To make this computation meaningful, Z needs to be defined in the same length units as x and y, and the result is a dimensionless quantity that represents the slope with positive being upwards. When multiplied by 100, this becomes the percent rise value arising from the slope function in the ArcGIS software. A computation corresponding to that for the zenith angle described earlier gives the slope angle in degrees in the ArcGIS Slope function. In physical geography, the orientation of the land surface is defined by its aspect, which is analogous to the azimuth used in land surveying. For example, we might describe mountainside as having a Westerly aspect if the ridge at its crest lies in the North-South direction, and the land sloping down from that on one side, faces towards the West (and correspondingly an Easterly aspect on the other side of the ridge). By analogy with the azimuth, the ArcGIS aspect function evaluates aspect as: Aspect = atan2 ( Z y, Z x ) Aspect identifies the downslope direction so the partial derivatives in this equation need to be evaluated as positive downslope. ArcGIS uses finite difference approximations for these partial derivatives Figure 5. Mesh used to approximate partial derivatives 6

z x z y (a 2d g) - (c 2f i) 8* x_mesh_spacing (g 2h i) - (a 2b c) 8* y_mesh_spacing The basis for this is illustrated in Figure 6 and amounts to an average of central finite differences over each of the three rows of cells with the middle row counting twice as it appears in averages on each side. Hydrologic Slope Figure 6. Basis for slope finite difference approximation To define slope in hydrology, we are interested in the pathway of water flowing downhill. This means that slope is considered a positive quantity if pointing downhill. The D8 flow direction is a special case, because although it is being defined on a continuously gridded elevation surface, only 8 discrete flow directions are possible, and so effectively, the D8 Slope is computed as D8 Slope = Drop Run Where drop refers to the difference in elevation between the from cell and the to cell, with downwards considered positive, and the run is equal to the cell size for flow along the coordinate directions, and equal to 2 x cell size for flow in the diagonal directions. So, in effect, the D8 flow direction is a slope computation on a set of eight 3D lines like the lines connecting the survey benchmarks in the example described above, where the one giving the maximum downward slope is selected as the direction of steepest descent and its corresponding value (1, 2, 4,., 64, 128) is encoded in the flow direction grid. 7

Slope of a River Suppose we have a river defined on a map as a sequence of stream segments, and we wish to calculate the slope of the river. The picture below shows the Logan River and basin above Logan, Utah, and a digital elevation model of the area. The length of the river is found by adding up the length of each of its segments. In this case the river segments come from the NHDPlus dataset, and these have a LengthKm attribute on them, so the length of the river itself can be found by summing this attribute to yield a result of Length = 53.917 km. A simple way to compute the slope of the river is to dissolve all the stream segments into a single feature for the river, and use the function ZonalStats as Table to find the minimum and maximum elevations that lie under that feature. For the Logan River, this results in the table: 8

Thus, the maximum elevation is 2466.49m and minimum elevation is 1425.81m, so the elevation difference is 1040.68m, and the slope of the river is 1040.68/53917 m/m = 0.0193 or 1.93%. This is an elaborate version of the point to point calculation of slope described earlier where now the length of the line is along a river rather than simply being a geometrically straight line. Now, it could occur that the slope of the river changes as you go down the river (steeper in the headwaters, and flatter downstream). One way to allow for this is to compute a weighted average of slope, Si, of each stream segment, where the weights are the lengths of the stream segments, Li. The FlowLineAttributes flow table of NHDPlus has a Slope attribute, so the overall river slope SR, is computed as: S R = n L is i i=1 n i=1 L i In the case of the Logan river, this computation yields SR = 1.0589/53.917 = 0.01964, or 1.96%, almost the same as the previous result. Here is a picture of the slopes of some individual stream segments: 9