Stay organized with collections
Save and categorize content based on your preferences.
Calculates slope, aspect, and a simple hillshade from a terrain DEM.
Expects an image containing either a single band of elevation, measured in meters, or if there's more than one band, one named 'elevation'. Adds output bands named 'slope' and 'aspect' measured in degrees plus an unsigned byte output band named 'hillshade' for visualization. All other bands and metadata are copied from the input image. The local gradient is computed using the 4-connected neighbors of each pixel, so missing values will occur around the edges of an image.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["Computes terrain attributes like slope, aspect, and hillshade from a Digital Elevation Model (DEM)."],["Takes an elevation image as input and adds output bands named 'slope', 'aspect', and 'hillshade'."],["Slope is measured in degrees (0-90), aspect in degrees (0=N, 90=E, 180=S, 270=W), and hillshade as an unsigned byte (0-255)."],["Offers functions for individual attribute calculation (ee.Terrain.slope, ee.Terrain.aspect) and combined calculation (ee.Terrain.products)."],["Uses a 4-connected neighborhood for calculations, resulting in missing values at image edges."]]],[]]