forked from google/earthengine-api
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Max Heinritz
committed
Jun 20, 2015
1 parent
81ec4b4
commit 219936f
Showing
46 changed files
with
1,054 additions
and
994 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,36 @@ | ||
Python and JavaScript bindings for calling the Earth Engine API. | ||
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.**_ | ||
|
||
[Installation Instructions](INSTALL.md) | ||
- [Earth Engine Homepage](https://earthengine.google.org/) | ||
- [Playground Web IDE](https://ee-api.appspot.com/) | ||
- [Python Installation](python/README.md) | ||
|
||
Here's an example screenshot and the corresponding Playground JavaScript code: | ||
|
||
![Trendy Lights Image](https://raw.github.com/google/earthengine-api/master/trendy-lights.png) | ||
|
||
// Compute the trend of nighttime lights from DMSP. | ||
|
||
// Add 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); | ||
} | ||
|
||
// Fit a linear trend to the nighttime lights collection. | ||
var collection = ee.ImageCollection('NOAA/DMSP-OLS/NIGHTTIME_LIGHTS') | ||
.select('stable_lights') | ||
.map(createTimeBand); | ||
|
||
// Display trend in red/blue, brightness in green. | ||
Map.addLayer( | ||
collection.reduce(ee.Reducer.linearFit()), | ||
{min: 0, max: [0.18, 20, -0.18], bands: ['scale', 'offset', 'scale']}, | ||
'stable lights trend'); |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.