sentinel-hub / EOBrowser

The Earth Observation Browser is a search tool for Sentinel-1, -2, -3, Landsat 5, 7, 8, Modis and Envisat satellite imagery
MIT License
78 stars 24 forks source link

TCI - Saturation level #9

Closed DDRASL closed 4 years ago

DDRASL commented 4 years ago

Hello,

I noticed a difference between the True Color image that I can see in your EOBrowser versus the TCI file that I download from Copernicus Open Access Hub, for Sentinel-2 products (example below is for 2A). For instance, if we take a look at Madrid's airport with a Sentinel-2 L2A True Color image taken on January 4, 2020:

A striking difference between the two images is the difference in saturation level. Notice, for instance, how the bottom part of the TCI image from Copernicus OAH is much brighter than on the EOBrowser.

Hence, the question is twofold: Do you apply another post-processing step on TCI image from ESA ? If yes, can you provide more details about this post-processing step?

Thank for your support

sinergise-anze commented 4 years ago

If you check the web browser console ("Network" tab), you should be able to inspect the scripts that we are using to render the images for this layer.

In this case the evalscript parameter is:

//VERSION=3
let minVal = 0.0;
let maxVal = 0.4;

let viz = new HighlightCompressVisualizer(minVal, maxVal);

function setup() {
   return {
    input: ["B04", "B03", "B02","dataMask"],
    output: { bands: 4 }
  };
}

function evaluatePixel(samples) {
    let val = [samples.B04, samples.B03, samples.B02,samples.dataMask];
    return viz.processList(val);
}

You can find more information about HighlightCompressVisualizer here and here.

However this is not really an issue about EO browser itself, it has more to do with Sentinel Hub. If you need a more detailed answer, I would kindly ask you to post this question to our forum where it will benefit a wider community (you are also more likely to get a better answer there). Thank you!