https://github.com/gee-community/ee-runner
Command-line runner for Google Earth Engine Playground scripts
https://github.com/gee-community/ee-runner
cloud-computing gis google-earth-engine landsat remote-sensing
Last synced: 6 months ago
JSON representation
Command-line runner for Google Earth Engine Playground scripts
- Host: GitHub
- URL: https://github.com/gee-community/ee-runner
- Owner: gee-community
- License: apache-2.0
- Created: 2015-06-10T16:21:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-29T10:06:14.000Z (11 months ago)
- Last Synced: 2025-03-12T06:02:29.503Z (7 months ago)
- Topics: cloud-computing, gis, google-earth-engine, landsat, remote-sensing
- Language: JavaScript
- Homepage:
- Size: 420 KB
- Stars: 67
- Watchers: 10
- Forks: 18
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ee-runner
Command line runner of [Google Earth Engine Playground](https://ee-api.appspot.com/) scripts using Node.js.
[](https://gitter.im/gee-community/ee-runner?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
### Install or update globally and use as a script
* `npm install -g ee-runner@latest`
* Run Code Editor scripts as:
```javascript
> ee-runner --project=
```or
```javascript
> ee --project=
```### Install as a package
* `npm install ee-runner`
* in your scripts, use:
```javascript
require("ee-runner")gee.initialize(function() {
// ... your Google Earth Engine code comes here ...
}, project)```
### Install as a command-line tool from GitHub
* Clone this repository.
* Inside Repository
* `Run: npm run init`### Authenticate
If you don't have Python version of Earth Engine installed - install it and run `earthengine authenticate` command.
### Usage
* `node ee-runner.js --project=`### Example
* `node ee-runner.js examples/hello.js --project=ee-runner-test`
```
First image in LANDSAT 8 TOA collection was aquired on 2013-09-26
Downloading thumbnail ...
```* cat examples/hello.js
```javascript
var image = new ee.Image(new ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA').first());
var info = image.getInfo();var date = info.properties['DATE_ACQUIRED'];
print('First image in LANDSAT 8 TOA collection was aquired on ' + date);print('Downloading thumbnail ...');
var url = image
.visualize({bands:['B6','B5','B3'], gamma: 1.5})
.getThumbURL({dimensions:'1024x1024', format: 'jpg'});download(url, 'hello.jpg');
```
* hello.jpg

### Roadmap
- [ ] Fetch user scripts from https://earthengine.googlesource.com/
- [ ] Implement ui.Chart printing to PNG / SVG