ee.Terrain.hillshade
Computes a simple hillshade from a DEM.
Usage | Returns |
---|
ee.Terrain.hillshade(input, azimuth, elevation) | Image |
Argument | Type | Details |
---|
input | Image | An elevation image, in meters. |
azimuth | Float, default: 270 | The illumination azimuth in degrees from north. |
elevation | Float, default: 45 | The illumination elevation in degrees. |
Examples
var elevation = ee.Image('NOAA/NGDC/ETOPO1').select('bedrock');
var exaggeration = 20;
var hillshade = ee.Terrain.hillshade(elevation.multiply(exaggeration));
Map.addLayer(hillshade, null, 'ETOPO1 Hillshade');
Python setup
See the
Python Environment page for information on the Python API and using
geemap
for interactive development.
import ee
import geemap.core as geemap
elevation = ee.Image('NOAA/NGDC/ETOPO1').select('bedrock')
exaggeration = 20
hillshade = ee.Terrain.hillshade(elevation.multiply(exaggeration))
m = geemap.Map()
m.add_layer(hillshade, None, 'ETOPO1 Hillshade')
m
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Computes a hillshade, which is a shaded relief map, from a Digital Elevation Model (DEM) to visualize terrain."],["The `ee.Terrain.hillshade()` function takes an elevation image, azimuth, and elevation as input to generate the hillshade."],["Users can customize the illumination direction by specifying the azimuth (direction) and elevation (angle) of the light source."],["An example is provided using the ETOPO1 bedrock elevation data to demonstrate hillshade creation and visualization."]]],["The core content details how to compute a hillshade from a digital elevation model (DEM) using the `ee.Terrain.hillshade` function. This function takes an elevation image (`input`), an illumination azimuth (`azimuth`, default 270 degrees), and an illumination elevation (`elevation`, default 45 degrees) as arguments, and it returns a hillshade image. The examples showcase using elevation data, multiplying it by an exaggeration factor, then applying the function to produce the final hillshade image.\n"]]