Hello everyone!
Today I found that all my layers configured in v1 and v2 have converted to v3. Any layers that used Sentinel 2 L2A level of processing become unable for visualization.
Does anybody know how to configure Sentinel 2 L2A data?
Below is the non-working script after automatic conversion.
let minVal = 0.0;
let maxVal = 0.4;
let viz = new DefaultVisualizer(minVal, maxVal);
function evaluatePixel(samples) {
let val = [samples.B04, samples.B03, samples.B01];
val = viz.processList(val);
val.push(samples.dataMask);
return val;
}
function setup() {
return {
input: [{
bands: [
“B01”,
“B03”,
“B04”,
“dataMask”
]
}],
output: {
bands: 4
}
}
}