- Notifications
You must be signed in to change notification settings - Fork997
Python and JavaScript bindings for calling the Earth Engine API.
License
google/earthengine-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Python and JavaScript client libraries for calling the Google Earth Engine API.
Important Note: Access to Google Earth Engine is currently only available toregistered users. The API is in active development, and users should expect theAPI to change. When (not if) API changes occur, applications that use the APIwill likely need to be updated.
Here's an example screenshot and the corresponding Code Editor JavaScript code:
// Compute the trend of night-time lights.// Adds a band containing image date as years since 1991.functioncreateTimeBand(img){varyear=ee.Date(img.get('system:time_start')).get('year').subtract(1991);returnee.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_LIGHTSvarcollection=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');
In order to be more responsive to bug reports and feature requests, we arecurrently using the Google Issue Tracker rather than the GitHub Issue tracker.Please see theGet Help pageof the Earth Engine documentation for details on how to browse and submit issuesto Issue Tracker.
About
Python and JavaScript bindings for calling the Earth Engine API.