Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

Google Earth Engine Authors and jgarcia525 v0.1.371
PiperOrigin-RevId: 567108984

Git stats


Failed to load latest commit information.
Latest commit message
Commit time
September 7, 2023 15:22
December 10, 2015 14:18
September 27, 2023 16:16
September 27, 2023 16:16
September 14, 2023 00:34
May 3, 2023 17:18
September 14, 2023 00:34

Google Earth Engine API

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

Important Note: Access to Google Earth Engine is currently only available to registered users. The API is in active development, and users should expect the API to change. When (not if) API changes occur, applications that use the API will likely need to be updated.

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.
var collection = ee.ImageCollection('NOAA/DMSP-OLS/NIGHTTIME_LIGHTS')

// 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.
    {min: 0, max: [0.18, 20, -0.18], bands: ['scale', 'offset', 'scale']},
    'stable lights trend');


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.