Hello,
Many times I encounter an issue with the sentinel-1 images, when I get infInity value pixels. I have tried in the past to avoid it by adding 0.00001 to the vh bands, however it is not real solution.
I wonder what is the cause of these values in sentinel-1 and if there is any efficient way to deal with this issue.
It may be that I do something wrong with the pre-processing of the image because I wrote it long time ago before the lee filter was added.
This is the evalscript I use
//VERSION=3
function setup() {
return {
input: ["VV", "VH"],
output: {bands: 2, sampleType: "FLOAT32"}
}
}
function evaluatePixel(sample) {
const vv = 10 * Math.log(sample.VV) / Math.LN10;
const vh = 10 * Math.log(sample.VH + 0.00001) / Math.LN10;
return [vv, vh];
}
Best