A22a Checkpoint
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: A2.2 Benthic Habitats
# Checkpoint: A22a
# Authors: Dimitris Poursanidis, Aurélie C. Shapiro, Spyros Christofilakos
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Section 1
# Import and display satellite image.
planet = ee.Image("projects/gee-book/assets/A2-2/20200505_N2000").divide(10000)
Map.centerObject(planet, 12)
visParams = {"bands": ["b3", "b2", "b1"], "min": 0.17, "max": 0.68, "gamma": 0.8}
Map.addLayer(
{
"eeObject": planet,
"visParams": visParams,
"name": "planet initial",
"shown": True,
}
)
# ------------------------------------------------------------------------------
# CHECKPOINT
# ------------------------------------------------------------------------------
# Add Earth Engine dataset
image = ee.Image("USGS/SRTMGL1_003")
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Chapter: A2.2 Benthic Habitats
# Checkpoint: A22a
# Authors: Dimitris Poursanidis, Aurélie C. Shapiro, Spyros Christofilakos
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Section 1
# Import and display satellite image.
planet = ee.Image("projects/gee-book/assets/A2-2/20200505_N2000").divide(10000)
Map.centerObject(planet, 12)
visParams = {"bands": ["b3", "b2", "b1"], "min": 0.17, "max": 0.68, "gamma": 0.8}
Map.addLayer(
{
"eeObject": planet,
"visParams": visParams,
"name": "planet initial",
"shown": True,
}
)
# ------------------------------------------------------------------------------
# CHECKPOINT
# ------------------------------------------------------------------------------
Display the interactive map¶
In [ ]:
Copied!
Map
Map