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."],[[["Calculates slope, aspect, and hillshade from a Digital Elevation Model (DEM) image."],["Outputs derived bands named 'slope' and 'aspect' in degrees, and 'hillshade' for visualization, while retaining other bands and metadata."],["Employs a 4-connected neighborhood for gradient computation, leading to potential missing values along image edges."],["Requires an input image containing either a single elevation band in meters or a multi-band image with an elevation band named 'elevation'."],["Accessible via the `ee.Algorithms.Terrain(input)` function, returning a processed image."]]],[]]