Earth Engine Data Converters
Earth Engine: https://earthengine.google.com
Geemap: https://geemap.org
Introduction
This notebook contains the materials for the workshop Earth Engine Data Converters at the 第七届地球空间大数据与云计算前沿会议与集中学习.
Agenda
This workshop covers the following topics:
Colab setup
Vector data conversion
Raster data extraction
Exporting Earth Engine data
Creating timelapse animations
Prerequisites
To use geemap and the Earth Engine Python API, you must register for an Earth Engine account and follow the instructions here to create a Cloud Project. Earth Engine is free for noncommercial and research use. To test whether you can use authenticate the Earth Engine Python API, please run this notebook on Google Colab.
Technical requirements
Install packages
Import libraries
Colab setup
Uncomment the following line to get the Earth Engine authorization token. Please treat your token with care and don't share it with anyone. Copy the token to the clipboard.
Open your Google Colab notebook and click on the
secretstab.Create a new secret with the name
EARTHENGINE_TOKEN.Paste the content from the clipboard into the
Valueinput box of the created secret.Toggle the button on the left to allow notebook access to the secret.

Vector data conversion
From GeoJSON
From Shapefile
From GeoDataFrame
To GeoJSON
To Shapefile
To GeoDataFrame
To DataFrame
To CSV
Raster data extraction
Extracting values to points
Extracting pixel values along a transect
Exporting Earth Engine data
Exporting images
Add a Landsat image to the map.
Add a rectangle to the map.
To local drive
Check image projection.
Specify region, crs, and crs_transform.
To Google Drive
Exporting image collections
To local drive
To Google Drive
Exporting feature collections
To local drive
To Google Drive
Creating timelapse animations
Landsat timelapse
Pan and zoom the map to an area of interest. Use the drawing tools to draw a rectangle on the map. If no rectangle is drawn, the default rectangle shown below will be used.
Sentinel-2
Pan and zoom the map to an area of interest. Use the drawing tools to draw a rectangle on the map. If no rectangle is drawn, the default rectangle shown below will be used.
MODIS
MODIS vegetation indices
MODIS temperature