Earth Engine Studio 指南

示例

可运行的 Earth Engine Studio 示例脚本(JavaScript 和 Python),每个都附有 Open in Studio 链接和源码。

下面的每个示例都可以直接从公共的示例代码仓库在 Studio 中打开。Open in Studio(在 Studio 中打开)会预览该代码仓库,请您确认,然后将文件作为只读的网页代码仓库打开;在更改之前,请先将副本保存到您自己的文件夹或代码仓库。运行示例需要已登录的 Google 账号和已启用 Earth Engine 的 Cloud 项目;请参阅开始使用。

同样的目录也出现在 Studio 的 Scripts → Built-in examples 下。

Studio basics

示例 语言 展示内容 链接
Sentinel-2 map layer JavaScript Adds NDVI, mosaics Sentinel-2, and draws a true-color layer. Open in Studio · 源代码
Collection summary JavaScript Prints count, scene IDs, cloud values, and first image. Open in Studio · 源代码
NDVI bands JavaScript Maps over images, adds NDVI, and selects derived bands. Open in Studio · 源代码
Plotly and ui.Chart JavaScript Opens native Plotly and Earth Engine time-series tabs with interactive callbacks. Open in Studio · 源代码
Map layer opacity JavaScript Adds visible and hidden layers with separate opacity values. Open in Studio · 源代码
Animated wind field JavaScript Renders ERA5 particles and zoom-adaptive equal-area globe arrows without polar clustering. Open in Studio · 源代码
Local folder downloads JavaScript Registers a tiny elevation raster and three-point table for local-download testing. Open in Studio · 源代码

UI Apps

示例 语言 展示内容 链接
Interactive Console widgets JavaScript Prints live UI controls in Console without opening an App. Open in Studio · 源代码
Styled App and header JavaScript Builds an App with a page header, reusable classes, scoped CSS, and callbacks. Open in Studio · 源代码
Map overlay App JavaScript Adds interactive controls over an App map while preserving Studio’s main Map. Open in Studio · 源代码
Cartographic display overlays JavaScript Explores rotating north symbols, adaptive graticules, WebGL scale styles, units, layouts, and decorative map annotations. Open in Studio · 源代码
Split-map App JavaScript Composes two independent ui.Map widgets in a horizontal SplitPanel. Open in Studio · 源代码
Linked-map App JavaScript Synchronizes two App maps so panning or zooming either viewport moves both. Open in Studio · 源代码
Angled SplitPanel App JavaScript Uses Studio’s draggable angled wipe to compare two linked maps. Open in Studio · 源代码
CORINE metadata legend JavaScript Builds a 44-class map legend automatically from homogeneous ImageCollection metadata. Open in Studio · 源代码
Continuous color bars JavaScript Reuses logarithmic map visualization parameters in horizontal custom-tick and vertical automatic-tick color bars. Open in Studio · 源代码
Embedded chart dashboard JavaScript Embeds a Plotly chart in an App and routes point clicks back to the Worker. Open in Studio · 源代码

Map Experiments

示例 语言 展示内容 链接
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 · 源代码
Sentinel-2 orbit globe JavaScript Recovered globe-view script using Map.setViewStyle from the dynamic map branch. Open in Studio · 源代码
Dynamic computePixels globe JavaScript Renders raw Earth Engine pixels dynamically with a projection-aware palette on the globe. Open in Studio · 源代码
Custom shader globe JavaScript Defines a constrained GLSL color expression in Earth Engine code and curves it over the globe. Open in Studio · 源代码
Multiple maps JavaScript Recovered ui.Map demo that opens separate Alps and Patagonia map tabs. Open in Studio · 源代码
Innsbruck 3D terrain JavaScript Recovered SCENE3D GLO30 terrain and Sentinel-2 imagery preset. Open in Studio · 源代码
Torres del Paine terrain JavaScript Recovered globe terrain scene with Sentinel-2 and Landsat 9 imagery. Open in Studio · 源代码
Himalaya terrain JavaScript Recovered Everest globe terrain scene with Sentinel-2 and Landsat 9 imagery. Open in Studio · 源代码

MapLibre 6

示例 语言 展示内容 链接
Relief and contour lines JavaScript Combines five-method hillshade, zoom-adaptive metric contours, Hybrid imagery, and Earth Engine 3D terrain. Open in Studio · 源代码
Heatmap and pulsing icons JavaScript Renders weighted local GeoJSON as a heatmap and reduced-motion-aware animated point icons. Open in Studio · 源代码
Animated routes JavaScript Progressively reveals LineString and MultiLineString paths with layer-card and script playback controls. Open in Studio · 源代码
ImageCollection timeline JavaScript Prepares a bounded MODIS collection for timestamped playback with frame, speed, loop, and callback controls. Open in Studio · 源代码
Camera and three-map sync JavaScript Demonstrates flyTo, easeTo, orbit control, and variadic center/zoom/bearing/pitch synchronization. Open in Studio · 源代码
Hybrid globe and MapLibre proxy JavaScript Combines Hybrid globe terrain with ordered raw sources, layers, state reads, and serializable click events. Open in Studio · 源代码

Hazards & Response

示例 语言 展示内容 链接
FLOOD//RADAR JavaScript Maps the 2022 Sindh floods with Sentinel-1 change detection and an angled radar wipe. Open in Studio · 源代码
FIRE//PULSE JavaScript Combines Sentinel-2 burn severity, VIIRS detections, ERA5 wind, and a linked impact App. Open in Studio · 源代码
VOLCANO//THERMAL WATCH JavaScript Places MODIS thermal detections above Sentinel-2 imagery on a pitched Mount Etna terrain scene. Open in Studio · 源代码
AIR//QUALITY GLOBE JavaScript Renders Sentinel-5P NO2 with a custom globe shader and equal-area ERA5 wind arrows. Open in Studio · 源代码
COAST//TIME MACHINE JavaScript Compares 1990 and 2024 Landsat water extent across the Ganges-Brahmaputra delta. Open in Studio · 源代码

Climate & Water

示例 语言 展示内容 链接
RESERVOIR//PULSE JavaScript Pairs a Lake Mead satellite map with two decades of annual surface-water measurements. Open in Studio · 源代码
SNOW//MELT JavaScript Shows MODIS Alpine snow cover over 3D terrain and opens a daily seasonal chart. Open in Studio · 源代码
DROUGHT//SIGNAL JavaScript Uses a compute-pixel shader and time series to explore European TerraClimate PDSI. Open in Studio · 源代码
ALPINE//PULSE JavaScript Creates an angled Aletsch comparison between natural color and a snow-and-ice index. Open in Studio · 源代码
BLUE//PLANET JavaScript Animates HYCOM surface currents above a shader-colored sea-surface-temperature globe. Open in Studio · 源代码

Land Change

示例 语言 展示内容 链接
FOREST//LOSS DETECTIVE JavaScript Maps annual Hansen forest loss in Rondonia and charts the affected area by year. Open in Studio · 源代码
CITY//NIGHT SHIFT JavaScript Links a Sentinel-2 daylight map to a glowing VIIRS night-light portrait of Cairo. Open in Studio · 源代码
CORAL//REEF LENS JavaScript Wipes between Sentinel-2 reef imagery and Allen Coral Atlas benthic habitat. Open in Studio · 源代码

Analysis Labs

示例 语言 展示内容 链接
Spectral Signature Lab JavaScript Turns map clicks into resolved Sentinel-2 band profiles in native Plotly tabs. Open in Studio · 源代码
Cloud Mask Shootout JavaScript Wipes between a deliberately cloudy tropical Sentinel-2 scene and its SCL cloud-and-shadow mask. Open in Studio · 源代码
Change Detection Workbench JavaScript Provides toggleable NDVI, NDWI, and NBR change layers from annual Landsat composites. Open in Studio · 源代码
Classification Studio JavaScript Trains a Sentinel-2 random forest, maps four classes, and reports validation accuracy. Open in Studio · 源代码
Multi-Region Comparison JavaScript Compares three years of MODIS vegetation histories across Vienna, Paris, and Madrid. Open in Studio · 源代码

Complete Workflows

示例 语言 展示内容 链接
Satellite Movie Factory JavaScript Builds a year of colored NDVI frames and registers a reviewable video export task. Open in Studio · 源代码
Reproducible Research Package JavaScript Combines a local module, Earth Engine map, Plotly figure, Console summary, and CSV task. Open in Studio · 源代码

Python & Interop

示例 语言 展示内容 链接
NumPy and Matplotlib Python Computes a NumPy array and opens a static Matplotlib figure tab. Open in Studio · 源代码
Earth Engine Python Python Queries Earth Engine through Python and adds a layer through the shared Map bridge. Open in Studio · 源代码
Plotly Python Python Uses signed-out Plotly Express and Studio ui.Plotly figures. Open in Studio · 源代码
1. JavaScript publishes bindings JavaScript Publishes a JavaScript function and variable into the workspace registry. Open in Studio · 源代码
2. Python consumes and publishes Python Calls JavaScript from Python, then publishes Python values and a function. Open in Studio · 源代码
3. JavaScript verifies Python JavaScript Calls the Python function and reads Python values back in JavaScript. Open in Studio · 源代码

Charts & Plots

示例 语言 展示内容 链接
Plotly JavaScript JavaScript Creates a native Plotly figure with a click listener and incremental update. Open in Studio · 源代码
Plotly.py graph objects Python Creates a signed-out Plotly.py graph-object figure. Open in Studio · 源代码
ui.Chart time axis JavaScript Converts Earth Engine epoch milliseconds into a readable Plotly date axis. Open in Studio · 源代码
Earth Engine ui.Chart JavaScript Demonstrates an authenticated image series, loading state, and click callback. Open in Studio · 源代码
Earth Engine Plotly Python Python Builds Python ui.Plotly content from nested Earth Engine values and registers an event. Open in Studio · 源代码

Modules

示例 语言 展示内容 链接
Python imports JavaScript Python Imports the adjacent calculator module with Python import syntax. Open in Studio · 源代码
Python requires JavaScript Python Loads the adjacent calculator module with require(). Open in Studio · 源代码
JavaScript requires Python JavaScript Calls exported functions from the adjacent Python statistics module. Open in Studio · 源代码
Local Python package Python Imports a namespace package from a literal relative repository root. Open in Studio · 源代码
Remote repository paths Python Imports a Python package from a real public GitHub repository root. Open in Studio · 源代码
OEEL from Python Python Demonstrates a native GoogleSource OEEL import from Python. Open in Studio · 源代码
OEEL from JavaScript JavaScript Demonstrates a native GoogleSource OEEL import from JavaScript. Open in Studio · 源代码

目录修订版本 f8e698cd69d9。

对应的 Earth Engine Studio 版本日期: 2026-11-21 (6abe1670914d) · 以 Markdown 查看