F48a 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: F4.8 Data Fusion: Merging Classification Streams
# Checkpoint: F48a
# Authors: Jeff Cardille, Rylan Boothman, Mary Villamor, Elijah Perez,
# Eidan Willis, Flavie Pelletier
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
events = ee.ImageCollection("projects/gee-book/assets/F4-8/cleanEvents")
print(events, "List of Events")
print("Number of events:", events.size())
print(
ui.Thumbnail(
events,
{
"min": 0,
"max": 3,
"palette": ["black", "green", "blue", "yellow"],
"framesPerSecond": 1,
"dimensions": 1000,
},
)
)
# -----------------------------------------------------------------------
# CHECKPOINT
# -----------------------------------------------------------------------
# Add Earth Engine dataset
image = ee.Image("USGS/SRTMGL1_003")
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Chapter: F4.8 Data Fusion: Merging Classification Streams
# Checkpoint: F48a
# Authors: Jeff Cardille, Rylan Boothman, Mary Villamor, Elijah Perez,
# Eidan Willis, Flavie Pelletier
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
events = ee.ImageCollection("projects/gee-book/assets/F4-8/cleanEvents")
print(events, "List of Events")
print("Number of events:", events.size())
print(
ui.Thumbnail(
events,
{
"min": 0,
"max": 3,
"palette": ["black", "green", "blue", "yellow"],
"framesPerSecond": 1,
"dimensions": 1000,
},
)
)
# -----------------------------------------------------------------------
# CHECKPOINT
# -----------------------------------------------------------------------
Display the interactive map¶
In [ ]:
Copied!
Map
Map