Interactive mapping and analysis of geospatial big data using geemap and Google Earth Engine
This notebook was developed for the geemap workshop at the Society for Range Management (SRM) 2022 Annual Meeting.
Authors: Qiusheng Wu
Link to this notebook: https://gishub.org/SRM
Introduction
Description
Google Earth Engine (GEE) is a cloud computing platform with a multi-petabyte catalog of satellite imagery and geospatial datasets. It enables scientists, researchers, and developers to analyze and visualize changes on the Earth’s surface. The geemap Python package provides GEE users with an intuitive interface to manipulate, analyze, and visualize geospatial big data interactively in a Jupyter-based environment. The topics to be covered in this workshop include:
Introducing geemap
Creating interactive maps
Searching GEE data catalog
Data Visualization
Data Analysis
Data Export
This workshop is intended for scientific programmers, data scientists, geospatial analysts, and concerned citizens of Earth. The attendees are expected to have a basic understanding of Python and the Jupyter ecosystem. Familiarity with Earth science and geospatial datasets is useful but not required.
Useful links
Google Earth Engine and geemap Python Tutorials (55 videos with a total length of 15 hours)
Spatial Data Management with Google Earth Engine (19 videos with a total length of 9 hours)
Prerequisite
A Google Earth Engine account. Sigh up here if needed.
Set up a conda environment
Launch JupyterLab
Open Anaconda Prompt or the Terminal and enter the following commands.
Geemap basics
Install geemap
Import libraries
Create an interactive map
Customize the default map
You can specify the center(lat, lon) and zoom for the default map. You can also set the visibility of the controls.
Add basemaps
Change basemaps interactively

Use drawing tools
Convert GEE JavaScript to Python
https://developers.google.com/earth-engine/guides/image_visualization
You can also convert GEE JavaScript to Python without coding.

Earth Engine datasets
Load Earth Engine datasets
More GEE datasets can be found at https://developers.google.com/earth-engine/datasets/
Search the Earth Engine Data Catalog
Use the datasets module
Use the Inspector tool

Data visualization
Use the Plotting tool

Change layer opacity
Visualize raster data
Visualize vector data
Add a legend
Add a colorbar
Create a split-panel map
Create linked maps
Use timeseries inspector
Using data from the Rangeland Analysis Platform.
Vegetation cover dataset:
ee.ImageCollection('projects/rangeland-analysis-platform/vegetation-cover-v3')Rangeland production dataset:
ee.ImageCollection('projects/rangeland-analysis-platform/npp-partitioned-v3')
Data analysis
Descriptive statistics
Zonal statistics
Zonal statistics by group

Data export
Export ee.Image
Exporting all bands as one single image
Exporting each band as one image
Export an image to Google Drive¶
Export ee.ImageCollection
Extract pixels as a numpy array
Export pixel values to points
Download sample data
Export pixel values as a shapefile
Export pixel values as a csv