MCPcopy
hub / github.com/google/earthengine-api

github.com/google/earthengine-api @v1.7.33 sqlite

repository ↗ · DeepWiki ↗ · release v1.7.33 ↗
3,868 symbols 15,730 edges 280 files 1,911 documented · 49%
README

Google Earth Engine API

Python and JavaScript client libraries for calling the Google Earth Engine API.

Here's an example screenshot and the corresponding Code Editor JavaScript code:

Trendy Lights Image

// Compute the trend of night-time lights.

// Adds a band containing image date as years since 1991.
function createTimeBand(img) {
  var year = ee.Date(img.get('system:time_start')).get('year').subtract(1991);
  return ee.Image(year).byte().addBands(img);
}

// Map the time band creation helper over the night-time lights collection.
// https://developers.google.com/earth-engine/datasets/catalog/NOAA_DMSP-OLS_NIGHTTIME_LIGHTS
var collection = ee.ImageCollection('NOAA/DMSP-OLS/NIGHTTIME_LIGHTS')
    .select('stable_lights')
    .map(createTimeBand);

// Compute a linear fit over the series of values at each pixel, visualizing
// the y-intercept in green, and positive/negative slopes as red/blue.
Map.addLayer(
    collection.reduce(ee.Reducer.linearFit()),
    {min: 0, max: [0.18, 20, -0.18], bands: ['scale', 'offset', 'scale']},
    'stable lights trend');

NOTICE

In order to be more responsive to bug reports and feature requests, we are currently using the Google Issue Tracker rather than the GitHub Issue tracker. Please see the Get Help page of the Earth Engine documentation for details on how to browse and submit issues to Issue Tracker.

Extension points exported contracts — how you extend this code

ApiClientRequestHook (Interface)
(no doc) [1 implementers]
javascript/src/eeapiclient/api_request_hook.ts
ApiClientHookFactoryCtor (Interface)
(no doc)
javascript/src/eeapiclient/api_request_hook.ts
ObjectMapMetadata (Interface)
(no doc)
javascript/src/eeapiclient/domain_object.ts
ClassMetadata (Interface)
(no doc)
javascript/src/eeapiclient/domain_object.ts
ISerializable (Interface)
(no doc)
javascript/src/eeapiclient/domain_object.ts

Core symbols most depended-on inside this repo

serialize
called by 1529
python/ee/function.py
call_
called by 864
python/ee/apifunction.py
name
called by 204
python/ee/image.py
get
called by 177
python/ee/ee_list.py
Point
called by 161
python/ee/geometry.py
select
called by 143
python/ee/image.py
lookup
called by 134
python/ee/apifunction.py
map
called by 129
javascript/src/apiclient.js

Shape

Method 3,009
Function 564
Class 251
Route 30
Interface 11
Enum 3

Languages

Python86%
TypeScript14%

Modules by API surface

python/ee/tests/image_test.py258 symbols
python/ee/image.py233 symbols
python/ee/cli/commands.py145 symbols
python/ee/tests/ee_array_test.py127 symbols
python/ee/ee_array.py121 symbols
python/ee/data.py103 symbols
python/ee/tests/data_test.py100 symbols
python/ee/tests/ee_number_test.py96 symbols
python/ee/ee_number.py94 symbols
python/ee/tests/reducer_test.py71 symbols
python/ee/tests/imagecollection_test.py70 symbols
python/ee/reducer.py68 symbols

Dependencies from manifests, versioned

@google-cloud/functions-emulator1.0.0-alpha.25 · 1×
@google/earthengine0.1 · 1×
@turf/hex-grid6.0.2 · 1×
browserify14.3.0 · 1×
budo10.0.4 · 1×
d3-scale2.1.2 · 1×
debounce1.2.0 · 1×
express4.17 · 1×
googleapis92.0.0 · 1×
grunt1.0.4 · 1×
grunt-contrib-concat1.0.1 · 1×
jasmine2.6.0 · 1×

For agents

$ claude mcp add earthengine-api \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact