Hello there
Can you please indicate to me where to add the harmonizeValues=true in this NIR script:
//VERSION=3
let minVal = 0.0;
let maxVal = 0.4;
let viz = new HighlightCompressVisualizer(minVal, maxVal, 1.4, 0.0, 1.0);
function evaluatePixel(samples) {
let val = [samples.B08, samples.B04, samples.B03];
val = viz.processList(val);
val.push(samples.dataMask);
return val;
}
function setup() {
return {
input: [{
bands: [
“B03”,
“B04”,
“B08”,
“dataMask”,
]
}],
output: {
bands: 4
}
}
}
I can see we need to add it to the input section, but what is the syntax? units: sharmonizeValues = true] ?
Attached 2 NDVI images - it is supposed to look the same.
Thank you