Possibility to rename the pixel values from out1 --> myowntitle

Hi,

is it possible to rename the “out~” values when creating a new service with the configuration utility? And is it possible to change/remove some of the values, we don’t need all of them in our application.

This would be a cool function for us!

Greetings,

Harald

Which service specifically are you referring to? Is this WFS’ response example?

NDVI Index value. The example mentioned above is the corresponding WMS service

NDVI (Normalized Difference Vegetation Index) - INDEX

//VERSION=3

function evaluatePixel(samples) {
let val = index(samples.B08, samples.B04);
return [val, samples.dataMask];
}

function setup() {
return {
input: [{
bands: [
“B04”,
“B08”,
“dataMask”
]
}],
output: {
bands: 2
}
}
}

I imagine you are using “GetFeatureInfo” part of the WMS service, right? If so, that one is more or less fixed.

What you could however do is use our “processAPI” and its geojson output as shown here:
https://docs.sentinel-hub.com/api/latest/#/data/Examples_for_S2L1C?id=true-color-and-metadata-multi-part-response-geotiff-and-json

Check also tip 9 here:

With this you should be able to construct a response in line with your liking.