Skip to main content

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:

docs.sentinel-hub.com
d3714e73b38a87afa3c31502a6696052a7395163.png


Sentinel Hub



Sentinel Hub is multi-spectral, temporal satellite imagery service for real-time processing of big remote sensing data.







Check also tip 9 here:

360db83263e79cba7951e7ba15aa4495131aa0f1.pngMedium – 15 Jun 21
f698a7e3e9c8a094ef9a83b2c615fb7ea6a69c30.png


Custom scripts: faster, cheaper, better!



15 tips for better scripts and more responsive requests




Reading time: 7 min read






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


Reply