My First Playground

node v8.17.0
version: 1.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
var ee = require('@google/earthengine'); var privateKey = JSON.parse(process.env.gee_private_key); ee.data.authenticateViaPrivateKey(privateKey); ee.initialize(null, null, function() { var collection = new ee.ImageCollection('LANDSAT/LC8_L1T_TOA'); var image = new ee.Image(collection.first()); var url = image .visualize({bands:['B6','B5','B3'], gamma: 1.5}) .getThumbURL({dimensions:'1024x1024', format: 'jpg'}); console.log(url); });
Loading…

no comments

    sign in to comment