Scripts : How to get values from the data (max / min) and colormaps associated

Hello,

I would like to retrieve the max / min value of an algorithm to adapt the colormap.

  1. Is there a function to access the value displayed (like a max() or min() of the matrix) ?

  2. Same question with frequency ? I know some clouds/complex areas could cause trouble. Is there a way to get the max value of 95% of the signal for example just to avoid outliers / unflagged data ?

  3. Also, the value (of Band 02 sentinel 2 for example) seems to be normalized between [0 - 1]. Any chance to get the real values rather than the normalized one ?

  4. Last question, is there a way to specify our own colormap ? I would like to apply colorblind friendly colormaps.

Cheers

For the min/max value within the chosen geometry I suggest you check Statistical API:
https://www.sentinel-hub.com/develop/documentation/api/fis-request

The band value [0,1] is reflectance, which is actually represented by 0-1…
If you want “digital number” (DN), I suggest you use our API:
https://docs.sentinel-hub.com/api/latest/#/data/Sentinel-2-L1C?id=available-bands-and-data

For the custom color map - sure, that is easy. Just configure your own custom script as shown here:
https://www.sentinel-hub.com/faq/how-create-eo-product

See also:
https://www.sentinel-hub.com/faq/which-functions-can-be-used-custom-script