Dataset: radar elevation
The code below is an example of an elevation dataset. It pulls the digital elevation model (DEM) dataset, calulates the slope for a region around Rio de Janeiro, then highlights all areas on the map with a slope greater than 15 degrees.
// Load the necessary dataset var dem = ee.Image("USGS/SRTMGL1_003"); // Digital Elevation Model (DEM) // Define the study area (Rio de Janeiro) var rio = ee.Geometry.Rectangle(-43.86, -23.15, -43.12, -22.72); // Calculate the slope from the DEM var slope = ee.Terrain.slope(dem).clip(rio); // Threshold the slope to identify areas with steep slopes (>15 degrees) var steep_slope = slope.gt(15); Map.centerObject(rio, 9); Map.addLayer(steep_slope, {min: 0, max: 1, palette: ['white', 'brown']}, 'Steep Slope');