Earth Engine Studio guide
Examples
Runnable Earth Engine Studio example scripts in JavaScript and Python, each with an Open in Studio link and its source.
Each example below opens directly in Studio from the public
example repository. Open in Studio
previews the repository, asks you to confirm it, and then opens the file as a
read-only web repository; save a copy to your own folder or repository before
you change it. Running an example needs a signed-in Google
account and an Earth Engine-enabled Cloud project; see
Getting started.
The same catalog appears in Studio under Scripts → Built-in examples.
Studio basics
| Example |
Language |
What it shows |
Links |
| Sentinel-2 map layer |
JavaScript |
Adds NDVI, mosaics Sentinel-2, and draws a true-color layer. |
Open in Studio · Source |
| Collection summary |
JavaScript |
Prints count, scene IDs, cloud values, and first image. |
Open in Studio · Source |
| NDVI bands |
JavaScript |
Maps over images, adds NDVI, and selects derived bands. |
Open in Studio · Source |
| Plotly and ui.Chart |
JavaScript |
Opens native Plotly and Earth Engine time-series tabs with interactive callbacks. |
Open in Studio · Source |
| Map layer opacity |
JavaScript |
Adds visible and hidden layers with separate opacity values. |
Open in Studio · Source |
| Animated wind field |
JavaScript |
Renders ERA5 particles and zoom-adaptive equal-area globe arrows without polar clustering. |
Open in Studio · Source |
| Local folder downloads |
JavaScript |
Registers a tiny elevation raster and three-point table for local-download testing. |
Open in Studio · Source |
UI Apps
| Example |
Language |
What it shows |
Links |
| Interactive Console widgets |
JavaScript |
Prints live UI controls in Console without opening an App. |
Open in Studio · Source |
| Styled App and header |
JavaScript |
Builds an App with a page header, reusable classes, scoped CSS, and callbacks. |
Open in Studio · Source |
| Map overlay App |
JavaScript |
Adds interactive controls over an App map while preserving Studio’s main Map. |
Open in Studio · Source |
| Cartographic display overlays |
JavaScript |
Explores rotating north symbols, adaptive graticules, WebGL scale styles, units, layouts, and decorative map annotations. |
Open in Studio · Source |
| Split-map App |
JavaScript |
Composes two independent ui.Map widgets in a horizontal SplitPanel. |
Open in Studio · Source |
| Linked-map App |
JavaScript |
Synchronizes two App maps so panning or zooming either viewport moves both. |
Open in Studio · Source |
| Angled SplitPanel App |
JavaScript |
Uses Studio’s draggable angled wipe to compare two linked maps. |
Open in Studio · Source |
| CORINE metadata legend |
JavaScript |
Builds a 44-class map legend automatically from homogeneous ImageCollection metadata. |
Open in Studio · Source |
| Continuous color bars |
JavaScript |
Reuses logarithmic map visualization parameters in horizontal custom-tick and vertical automatic-tick color bars. |
Open in Studio · Source |
| Embedded chart dashboard |
JavaScript |
Embeds a Plotly chart in an App and routes point clicks back to the Worker. |
Open in Studio · Source |
Map Experiments
| Example |
Language |
What it shows |
Links |
| Client-side point symbols |
JavaScript |
Combines local GeoJSON, literal Earth Engine points, and WRI global power plants with MapLibre symbols, multiline labels, property overrides, zoom visibility, effects, and screen-stable orientation. |
Open in Studio · Source |
| Sentinel-2 orbit globe |
JavaScript |
Recovered globe-view script using Map.setViewStyle from the dynamic map branch. |
Open in Studio · Source |
| Dynamic computePixels globe |
JavaScript |
Renders raw Earth Engine pixels dynamically with a projection-aware palette on the globe. |
Open in Studio · Source |
| Custom shader globe |
JavaScript |
Defines a constrained GLSL color expression in Earth Engine code and curves it over the globe. |
Open in Studio · Source |
| Multiple maps |
JavaScript |
Recovered ui.Map demo that opens separate Alps and Patagonia map tabs. |
Open in Studio · Source |
| Innsbruck 3D terrain |
JavaScript |
Recovered SCENE3D GLO30 terrain and Sentinel-2 imagery preset. |
Open in Studio · Source |
| Torres del Paine terrain |
JavaScript |
Recovered globe terrain scene with Sentinel-2 and Landsat 9 imagery. |
Open in Studio · Source |
| Himalaya terrain |
JavaScript |
Recovered Everest globe terrain scene with Sentinel-2 and Landsat 9 imagery. |
Open in Studio · Source |
MapLibre 6
| Example |
Language |
What it shows |
Links |
| Relief and contour lines |
JavaScript |
Combines five-method hillshade, zoom-adaptive metric contours, Hybrid imagery, and Earth Engine 3D terrain. |
Open in Studio · Source |
| Heatmap and pulsing icons |
JavaScript |
Renders weighted local GeoJSON as a heatmap and reduced-motion-aware animated point icons. |
Open in Studio · Source |
| Animated routes |
JavaScript |
Progressively reveals LineString and MultiLineString paths with layer-card and script playback controls. |
Open in Studio · Source |
| ImageCollection timeline |
JavaScript |
Prepares a bounded MODIS collection for timestamped playback with frame, speed, loop, and callback controls. |
Open in Studio · Source |
| Camera and three-map sync |
JavaScript |
Demonstrates flyTo, easeTo, orbit control, and variadic center/zoom/bearing/pitch synchronization. |
Open in Studio · Source |
| Hybrid globe and MapLibre proxy |
JavaScript |
Combines Hybrid globe terrain with ordered raw sources, layers, state reads, and serializable click events. |
Open in Studio · Source |
Hazards & Response
| Example |
Language |
What it shows |
Links |
| FLOOD//RADAR |
JavaScript |
Maps the 2022 Sindh floods with Sentinel-1 change detection and an angled radar wipe. |
Open in Studio · Source |
| FIRE//PULSE |
JavaScript |
Combines Sentinel-2 burn severity, VIIRS detections, ERA5 wind, and a linked impact App. |
Open in Studio · Source |
| VOLCANO//THERMAL WATCH |
JavaScript |
Places MODIS thermal detections above Sentinel-2 imagery on a pitched Mount Etna terrain scene. |
Open in Studio · Source |
| AIR//QUALITY GLOBE |
JavaScript |
Renders Sentinel-5P NO2 with a custom globe shader and equal-area ERA5 wind arrows. |
Open in Studio · Source |
| COAST//TIME MACHINE |
JavaScript |
Compares 1990 and 2024 Landsat water extent across the Ganges-Brahmaputra delta. |
Open in Studio · Source |
Climate & Water
| Example |
Language |
What it shows |
Links |
| RESERVOIR//PULSE |
JavaScript |
Pairs a Lake Mead satellite map with two decades of annual surface-water measurements. |
Open in Studio · Source |
| SNOW//MELT |
JavaScript |
Shows MODIS Alpine snow cover over 3D terrain and opens a daily seasonal chart. |
Open in Studio · Source |
| DROUGHT//SIGNAL |
JavaScript |
Uses a compute-pixel shader and time series to explore European TerraClimate PDSI. |
Open in Studio · Source |
| ALPINE//PULSE |
JavaScript |
Creates an angled Aletsch comparison between natural color and a snow-and-ice index. |
Open in Studio · Source |
| BLUE//PLANET |
JavaScript |
Animates HYCOM surface currents above a shader-colored sea-surface-temperature globe. |
Open in Studio · Source |
Land Change
| Example |
Language |
What it shows |
Links |
| FOREST//LOSS DETECTIVE |
JavaScript |
Maps annual Hansen forest loss in Rondonia and charts the affected area by year. |
Open in Studio · Source |
| CITY//NIGHT SHIFT |
JavaScript |
Links a Sentinel-2 daylight map to a glowing VIIRS night-light portrait of Cairo. |
Open in Studio · Source |
| CORAL//REEF LENS |
JavaScript |
Wipes between Sentinel-2 reef imagery and Allen Coral Atlas benthic habitat. |
Open in Studio · Source |
Analysis Labs
| Example |
Language |
What it shows |
Links |
| Spectral Signature Lab |
JavaScript |
Turns map clicks into resolved Sentinel-2 band profiles in native Plotly tabs. |
Open in Studio · Source |
| Cloud Mask Shootout |
JavaScript |
Wipes between a deliberately cloudy tropical Sentinel-2 scene and its SCL cloud-and-shadow mask. |
Open in Studio · Source |
| Change Detection Workbench |
JavaScript |
Provides toggleable NDVI, NDWI, and NBR change layers from annual Landsat composites. |
Open in Studio · Source |
| Classification Studio |
JavaScript |
Trains a Sentinel-2 random forest, maps four classes, and reports validation accuracy. |
Open in Studio · Source |
| Multi-Region Comparison |
JavaScript |
Compares three years of MODIS vegetation histories across Vienna, Paris, and Madrid. |
Open in Studio · Source |
Complete Workflows
| Example |
Language |
What it shows |
Links |
| Satellite Movie Factory |
JavaScript |
Builds a year of colored NDVI frames and registers a reviewable video export task. |
Open in Studio · Source |
| Reproducible Research Package |
JavaScript |
Combines a local module, Earth Engine map, Plotly figure, Console summary, and CSV task. |
Open in Studio · Source |
Python & Interop
| Example |
Language |
What it shows |
Links |
| NumPy and Matplotlib |
Python |
Computes a NumPy array and opens a static Matplotlib figure tab. |
Open in Studio · Source |
| Earth Engine Python |
Python |
Queries Earth Engine through Python and adds a layer through the shared Map bridge. |
Open in Studio · Source |
| Plotly Python |
Python |
Uses signed-out Plotly Express and Studio ui.Plotly figures. |
Open in Studio · Source |
| 1. JavaScript publishes bindings |
JavaScript |
Publishes a JavaScript function and variable into the workspace registry. |
Open in Studio · Source |
| 2. Python consumes and publishes |
Python |
Calls JavaScript from Python, then publishes Python values and a function. |
Open in Studio · Source |
| 3. JavaScript verifies Python |
JavaScript |
Calls the Python function and reads Python values back in JavaScript. |
Open in Studio · Source |
Charts & Plots
| Example |
Language |
What it shows |
Links |
| Plotly JavaScript |
JavaScript |
Creates a native Plotly figure with a click listener and incremental update. |
Open in Studio · Source |
| Plotly.py graph objects |
Python |
Creates a signed-out Plotly.py graph-object figure. |
Open in Studio · Source |
| ui.Chart time axis |
JavaScript |
Converts Earth Engine epoch milliseconds into a readable Plotly date axis. |
Open in Studio · Source |
| Earth Engine ui.Chart |
JavaScript |
Demonstrates an authenticated image series, loading state, and click callback. |
Open in Studio · Source |
| Earth Engine Plotly Python |
Python |
Builds Python ui.Plotly content from nested Earth Engine values and registers an event. |
Open in Studio · Source |
Modules
| Example |
Language |
What it shows |
Links |
| Python imports JavaScript |
Python |
Imports the adjacent calculator module with Python import syntax. |
Open in Studio · Source |
| Python requires JavaScript |
Python |
Loads the adjacent calculator module with require(). |
Open in Studio · Source |
| JavaScript requires Python |
JavaScript |
Calls exported functions from the adjacent Python statistics module. |
Open in Studio · Source |
| Local Python package |
Python |
Imports a namespace package from a literal relative repository root. |
Open in Studio · Source |
| Remote repository paths |
Python |
Imports a Python package from a real public GitHub repository root. |
Open in Studio · Source |
| OEEL from Python |
Python |
Demonstrates a native GoogleSource OEEL import from Python. |
Open in Studio · Source |
| OEEL from JavaScript |
JavaScript |
Demonstrates a native GoogleSource OEEL import from JavaScript. |
Open in Studio · Source |
Catalog revision f8e698cd69d9.
Matches Earth Engine Studio as of 2026-11-21 (6abe1670914d) · View as Markdown