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

Code Editor (JavaScript)

 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 

Colab (Python)

 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 
Create a Mobile Website
View Site in Mobile | Classic
Share by: