HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A height raster has cells 30 m apart. Around one cell the heights in metres are, from the…
HardEarth and Environmental ScienceHigh School (11–12)Remote Sensing, GIS and Earth DataNumerical

A height raster has cells 30 m apart. Around one cell the heights in metres are, from the…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A height raster has cells 30 m30\ \text{m}30 m apart. Around one cell the heights in metres are, from the north-west corner row by row: 412,418,431412, 418, 431412,418,431 (north row), 405,414,428405, 414, 428405,414,428 (middle row), 398,409,420398, 409, 420398,409,420 (south row). Use Horn's method. With the heights written a,b,ca, b, ca,b,c in the north row, d,e,fd, e, fd,e,f in the middle row and g,h,ig, h, ig,h,i in the south row, ∂z/∂x=[(c+2f+i)−(a+2d+g)]/(8s)\partial z/\partial x = [(c + 2f + i) - (a + 2d + g)]/(8s)∂z/∂x=[(c+2f+i)−(a+2d+g)]/(8s), and ∂z/∂y=[(a+2b+c)−(g+2h+i)]/(8s)\partial z/\partial y = [(a + 2b + c) - (g + 2h + i)]/(8s)∂z/∂y=[(a+2b+c)−(g+2h+i)]/(8s), the north minus the south. (a) What is ∂z/∂x\partial z/\partial x∂z/∂x? (b) What is ∂z/∂y\partial z/\partial y∂z/∂y? (c) What is the slope, in degrees? (d) What is the gradient, in percent? (e) The same heights belong to a raster with cells of 90 m90\ \text{m}90 m. What is the slope then, in degrees?

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

°
%
°
Need a reminder? The key ideaShowHide

The shoelace formula gives the area of a polygon from its corners in metres. The buffer of a convex polygon has the area A+Pd+πd2A + Pd + \pi d^2A+Pd+πd2. A cell of column jjj and row iii has its centre at E0+(j+12)sE_0 + (j + \tfrac{1}{2})sE0​+(j+21​)s and N0−(i+12)sN_0 - (i + \tfrac{1}{2})sN0​−(i+21​)s. An affine transformation has the form E=a+bj+ciE = a + bj + ciE=a+bj+ci, N=d+ej+fiN = d + ej + fiN=d+ej+fi. The slope has tan⁡θ=zx2+zy2\tan\theta = \sqrt{z_x^2 + z_y^2}tanθ=zx2​+zy2​​.

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. East. The east column sum 431+2×428+420431 + 2 \times 428 + 420431+2×428+420 is 170717071707. The west column sum 412+2×405+398412 + 2 \times 405 + 398412+2×405+398 is 162016201620. The difference is 878787, divided by 8×30=2408 \times 30 = 2408×30=240. So zx=0.3625z_x = 0.3625zx​=0.3625.

Step 2. North. The north row sum 412+2×418+431412 + 2 \times 418 + 431412+2×418+431 is 167916791679. The south row sum 398+2×409+420398 + 2 \times 409 + 420398+2×409+420 is 163616361636. The difference is 434343, divided by 240240240. So zy=0.1792z_y = 0.1792zy​=0.1792.

Step 3. The angle. zx2+zy2=0.4044\sqrt{z_x^2 + z_y^2} = 0.4044zx2​+zy2​​=0.4044, and tan⁡−10.4044=22.02∘\tan^{-1}0.4044 = 22.02^\circtan−10.4044=22.02∘.

Step 4. The gradient. 100×0.4044=40.4 %100 \times 0.4044 = 40.4\ \%100×0.4044=40.4 %.

Step 5. Coarser cells. With s=90 ms = 90\ \text{m}s=90 m the ratio is 0.4044/3=0.13480.4044/3 = 0.13480.4044/3=0.1348, so the angle is 7.68∘7.68^\circ7.68∘.

Answer: 0.36250.36250.3625; 0.17920.17920.1792; 22.02∘22.02^\circ22.02∘; 40.4 %40.4\ \%40.4 %; 7.68∘7.68^\circ7.68∘.

Check. The hillside rises to the east and to the north, so it faces south-west. The same heights spread over larger cells make a gentler slope, which is why a coarse raster underestimates steep land.

Log in to save this for later
← All Problems
← A coast is stored as a raster of 6 rows and 6 columns of cells, each 30 m by 30 m…The annual mean carbon dioxide of a remote station, rounded to 0.1 ppm, was as follows… →
More onRemote Sensing, GIS and Earth Data

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Vector layers and raster layersGIS: Coordinates, Projections and Map Layers

More on this topic

  1. Six yearly values of a quantity, for x = 0, 1, …, 5, are 2.1, 2.9, 3.4, 4.6, 4.9 and 6.0…Advanced
  2. After the monsoon ends, the discharge of a river, in m³/s, was measured every five days from day 0…Hard
  3. A mixed layer of sea water is 100 m deep…Advanced
The annual mean carbon dioxide at Mauna Loa was 316.91 ppm in 1960 and 414.24 ppm in 2020…Hard
  • The yearly global temperature anomalies of a ten-year period, in °C, are: 0.56, 0.61, 0.59, 0.54…Advanced
  • All problems on this topic →