0.0.36 • Published 3 years ago

ee-runner v0.0.36

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

ee-runner

Command line runner of Google Earth Engine Playground scripts using Node.js.

Gitter

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 ...
})

Install as a command-line tool from GitHub

  • Clone this repository.
  • Inside Repository
    • Run: npm run init

You may have to remove any previous and no longer valid tokens, for example having played with ee-python. rm ~/.config/earthengine/credentials.

Usage

  • node ee-runner.js \<playground script file\>

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

hello.jpg

Roadmap

0.0.35

3 years ago

0.0.36

3 years ago

0.0.33

3 years ago

0.0.34

3 years ago

0.0.32

3 years ago

0.0.31

4 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago