GithubHelp home page GithubHelp logo

c11 / ee-runner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gee-community/ee-runner

0.0 2.0 0.0 400 KB

Command-line runner for Google Earth Engine Playground scripts

JavaScript 100.00%

ee-runner's Introduction

ee-runner

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

Tested (Windows and Ubuntu) with io.js v2.2.1.

On Ubuntu make sure a proper version is selected: nvm use iojs-v2.2.1

Install

  • Download and install io.js.
  • Clone or download this repository.
  • Run: npm install

Usage

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

Example

  • node ee-runner.js hello.js
First image in LANDSAT 8 TOA collection was aquired on 2013-09-26
Downloading thumbnail ...
  • cat 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

ee-runner's People

Contributors

gena avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.