Hi Oswaldo,
Looking at you calls and layers, I have noted the following:
Your GetFeatureInfo
and GetMap
call are not calling the same layers: you have NDVI
and NDVI_NEW
NDVI
is a layer which returns a visualisation of NDVI for SCL= vegetation
+ RGB for other surface types,
NDVI_NEW
returns a visualisation (RGB) of NDVI, but you are only returning the first 2 values.
Therefore, in the URLS that you have posted, you are returning visualisation values and not actual NDVI values. If you want the “real” NDVI layer, I would recommend you add a layer in your configuration with the following Evalscript:
//VERSION=3
function setup() {
return {
input: u"B08", "B04"],
output: { bands: 1, sampleType: "FLOAT32"}
};
}
function evaluatePixel(sample) {
var ndvi = index(sample.B08, sample.B04);
return undvi];
}
Running GetFeatureInfo on this layer should return NDVI.