ee.Terrain.slope

Calculates slope in degrees from a terrain DEM.

The local gradient is computed using the 4-connected neighbors of each pixel, so missing values will occur around the edges of an image.

UsageReturns
ee.Terrain.slope(input)Image
ArgumentTypeDetails
inputImage

An elevation image, in meters.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!