0.0.37 • Published 7 months ago
ee-runner v0.0.37
ee-runner
Command line runner of Google Earth Engine Playground scripts using Node.js.
Install or update globally and use as a script
npm install -g ee-runner@latest
Run Code Editor scripts as:
> ee-runner <script-file>
or
> ee <script-file>
Install as a package
npm install ee-runner
- in your scripts, use:
require("ee-runner")
gee.initialize(function() {
// ... your Google Earth Engine code comes here ...
}, opt_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 \<playground script file\> --project=<YOUR_PROJECT_NAME>
Example
node ee-runner.js examples/hello.js
First image in LANDSAT 8 TOA collection was aquired on 2013-09-26
Downloading thumbnail ...
- cat examples/hello.js
var image = new ee.Image(new ee.ImageCollection('LANDSAT/LC8_L1T_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
0.0.37
7 months ago
0.0.35
4 years ago
0.0.36
4 years ago
0.0.33
4 years ago
0.0.34
4 years ago
0.0.32
4 years ago
0.0.31
5 years ago
0.0.30
7 years ago
0.0.29
7 years ago
0.0.28
7 years ago
0.0.27
7 years ago
0.0.26
7 years ago
0.0.25
7 years ago
0.0.24
7 years ago
0.0.23
7 years ago
0.0.22
7 years ago
0.0.21
7 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago