What is wrong with this code i want calculate ndvi from s2 in google earth engine?


#1

var image=ee.ImageCollection(‘COPERNICUS/S2’)
.filterBounds(table)
.filterDate(‘2016-12-31’, ‘2017-12-31’);
var ndvi = image.normalizedDifference([‘B8’, ‘B4’]);

Map.addLayer(ndvi,imageVisParam, ‘ndvi’);


#2

This question is not related to SNAP or the S2TBX. I guess this is Google Earth Engine. You should ask the question in their forum. You will get better answers.


#3