Calculate NDVI from sentinel 2

This looks great!

Copy the code below and fill out the ??


// import image
var img = ee.Image("COPERNICUS/S2/20170410T022321_20170410T022324_T51PWP");
// calculate ndvi
var ndvi = img.normalizedDifference(["??","??"]);

// add image
Map.addLayer(img,{bands:"??,??,??",min:0,max:3000},"true color image");
// add NDVI
Map.addLayer(ndvi,{palette:"blue,red,yellow,green,darkgreen",min:??,max:??},"ndvi");

link

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s