Skip to content

Command-line runner for Google Earth Engine Playground scripts

Notifications You must be signed in to change notification settings

CSTARS/ee-runner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ee-runner

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

Install

  • Clone or download 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

About

Command-line runner for Google Earth Engine Playground scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%