Saudia XYZ logo Code: Contours
Main Source: Geemap
Edited by: Saudia.xyz

In [ ]:
# !pip install geemap

Note: Uncomment the following line to install geemap if needed.

In [ ]:
import ee
import geemap
import geemap.colormaps as cm
In [ ]:
# geemap.update_package()
In [ ]:
Map = geemap.Map(center=(24, 45), zoom=5)
Map
In [ ]:
image = ee.Image("USGS/SRTMGL1_003")
In [ ]:
hillshade = ee.Terrain.hillshade(image)
In [ ]:
Map.addLayer(hillshade, {}, "Hillshade")
In [ ]:
Map.addLayer(image, {'min': 0, "max": 5000, "palette": cm.palettes.dem}, "dem", True, 0.5)
In [ ]:
contours = geemap.create_contours(image, 0, 5000, 100, region=None)
In [ ]:
Map.addLayer(contours, {'min': 0, "max": 5000, 'palette': cm.palettes.terrain}, 'contours')