|CyVerse_logo|_

Home_Icon Learning Center Home

Working with Google Earth Engine API

Description: Run Earth Engine from your Jupyter Notebook or Lab

Dr. Guillermo E. Ponce-Campos from the Tucson ARS Southwest Watershed Research Center has developed some NEON tuturials on Google Earth Engine and an Earth Engine App.

Samapriya Roy has provided us with a Planet Labs & Google Earth Engine Tutorial

Install Earth Engine API

Official Instructions

Requirements: Docker

Build Dependencies:

ezd -p # In this example I'm also installing Portainer.io
sudo usermod -aG docker $USER

Set the paths:

export GCP_PROJECT_ID=gee-projects
export CONTAINER_IMAGE_NAME=gcr.io/earthengine-project/datalab-ee:latest
export WORKSPACE=${HOME}/workspace/datalab-ee
mkdir -p $WORKSPACE
cd $WORKSPACE

Run the Container (detached):

docker run -it -d -p "127.0.0.1:8081:8080" -v "$WORKSPACE:/content" -e "PROJECT_ID=$GCP_PROJECT_ID" $CONTAINER_IMAGE_NAME

Establish a secure connection with Caddy:

echo "$(hostname)
proxy / 127.0.0.1:8081 {
    websocket
    transparent
}
" > Caddyfile
curl https://getcaddy.com | bash -s personal http.nobots
caddy

Use Google Colaboratory

Google has its own Jupyter service called ‘Colaboratory’

https://colab.research.google.com/

Download Data

Fix or improve this documentation


Home_Icon Learning Center Home