F11s2 Assignment 5
Import libraries¶
In [ ]:
Copied!
import ee
import geemap
import ee
import geemap
Create an interactive map¶
In [ ]:
Copied!
Map = geemap.Map(center=[40, -100], zoom=4)
Map = geemap.Map(center=[40, -100], zoom=4)
Add Earth Engine Python script¶
In [ ]:
Copied!
# Add Earth Engine dataset
image = ee.Image("USGS/SRTMGL1_003")
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Chapter: F1.1 Exploring images
# Section: Practice problem (Assignment 5)
# Author: Jeff Howarth
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
image = ee.Image("LANDSAT/LT05/C02/T1_L2/LT05_118038_20000606")
Map.addLayer(image, {"bands": ["SR_B1"], "min": 8000, "max": 17000}, "Layer 1")
Map.addLayer(image.select("SR_B1"), {"min": 8000, "max": 17000}, "Layer 2")
# Add Earth Engine dataset
image = ee.Image("USGS/SRTMGL1_003")
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Chapter: F1.1 Exploring images
# Section: Practice problem (Assignment 5)
# Author: Jeff Howarth
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
image = ee.Image("LANDSAT/LT05/C02/T1_L2/LT05_118038_20000606")
Map.addLayer(image, {"bands": ["SR_B1"], "min": 8000, "max": 17000}, "Layer 1")
Map.addLayer(image.select("SR_B1"), {"min": 8000, "max": 17000}, "Layer 2")
Display the interactive map¶
In [ ]:
Copied!
Map
Map