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


Leave a Reply

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

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

Facebook photo

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

Connecting to %s