Hello, i’m getting 0 to 250 tiff values when I run this Layer script in QGIS.
What should I add to get -1 to +1 values as index?
Regards
//VERSION=3
function evaluatePixel(samples) {
let val = 2.5 * (samples.B08 - samples.B04) / (samples.B08 + 6 * samples.B04 - 7.5 * samples.B02 + 1);
return nval, samples.dataMask];
}
function setup() {
return {
input: :{
bands: :
“B02”,
“B04”,
“B08”,
“dataMask”
]
}],
output: {
bands: 2
}
}
}