Python and JavaScript bindings for calling the Earth Engine API.
JavaScript Python Other
Christopher Brown
Christopher Brown v0.1.145
Latest commit 4d61ca2 Jul 26, 2018
Permalink
Failed to load latest commit information.
demos Add node.js demos. Jun 11, 2018
docker v0.1.123 Sep 21, 2017
images v0.1.70 Dec 10, 2015
javascript v0.1.145 Jul 27, 2018
python v0.1.145 Jul 27, 2018
CONTRIBUTING v0.1.51. Apr 22, 2015
LICENSE v0.1.51. Apr 22, 2015
README.md v0.1.118 Jul 7, 2017
trendy-lights.png Updating to version 0.1.57 Jun 20, 2015

README.md

Google Earth Engine API

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

Important Note: Access to Google Earth Engine is currently only available to trusted testers. 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.
// https://earthengine.google.org/#detail/NOAA%2FDMSP-OLS%2FNIGHTTIME_LIGHTS
var collection = ee.ImageCollection('NOAA/DMSP-OLS/NIGHTTIME_LIGHTS')
    .select('stable_lights')
    .map(createTimeBand);

// Visualize brightness in green and a linear fit trend line in red/blue.
Map.addLayer(
    collection.reduce(ee.Reducer.linearFit()),
    {min: 0, max: [0.18, 20, -0.18], bands: ['scale', 'offset', 'scale']},
    'stable lights trend');