F62e 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: F6.2 Scaling Up in Earth Engine
# Checkpoint: F62e
# Authors: Jillian M. Deines, Stefania Di Tommaso, Nicholas Clinton, Noel Gorelick
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# load image collection and mosaic into single image
assetCollection = "projects/gee-book/assets/F6-2/s2_composite_WA"
composite = ee.ImageCollection(assetCollection).mosaic()
# Display the results
geometry = ee.Geometry.Point([-120.5873563817392, 47.39035206888694])
Map.centerObject(geometry, 6)
vizParams = {"bands": ["B4_median", "B3_median", "B2_median"], "min": 0, "max": 3000}
Map.addLayer(composite, vizParams, "median")
# -----------------------------------------------------------------------
# CHECKPOINT
# -----------------------------------------------------------------------
# Add Earth Engine dataset
image = ee.Image("USGS/SRTMGL1_003")
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Chapter: F6.2 Scaling Up in Earth Engine
# Checkpoint: F62e
# Authors: Jillian M. Deines, Stefania Di Tommaso, Nicholas Clinton, Noel Gorelick
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# load image collection and mosaic into single image
assetCollection = "projects/gee-book/assets/F6-2/s2_composite_WA"
composite = ee.ImageCollection(assetCollection).mosaic()
# Display the results
geometry = ee.Geometry.Point([-120.5873563817392, 47.39035206888694])
Map.centerObject(geometry, 6)
vizParams = {"bands": ["B4_median", "B3_median", "B2_median"], "min": 0, "max": 3000}
Map.addLayer(composite, vizParams, "median")
# -----------------------------------------------------------------------
# CHECKPOINT
# -----------------------------------------------------------------------
Display the interactive map¶
In [ ]:
Copied!
Map
Map