calculate EVI

calculate EVI from landsat 8

Copy the code below and fill out the right the bands and scaling factor, min and max.

// import the image
var image = ee.Image("LANDSAT/LC08/C01/T1_SR/LC08_141054_20170113");

// calculate the evi
var evi = image.expression("2.5*((nir-red)/(nir+6*red-7.5*blue+1))",
{
nir : image.select(??).multiply(??),
red : image.select(??).multiply(??),
blue: image.select(??).multiply(??)
});

// add the evi to the map
Map.addLayer(evi,{min:??,max:??,palette:"blue,red,yellow,green,darkgreen"});

link

Leave a Reply