A repository of custom scripts that can be used with Sentinel-Hub services.

Highlight Optimized Natural Color Script

Show script or download it.

Evaluate and visualize

General description of the script

This script uses highlight optimization to avoid burnt out pixels and to even out the exposure. It is most useful for visualizing clouds, as they look natural and retain as much visual information as possible. With Sentinel-3 OLCI, imagery is large scale, making it possible to observe large cloud formations, such as for example hurricanes. The script is also available for Sentinel-2, but was modified to fit OLCI.

The script applies the square root of the OLCI true color bands, which have lowered brightness and increased contrast:

return [Math.sqrt(0.9*B08 - 0.055),
           Math.sqrt(0.9*B06 - 0.055),
           Math.sqrt(0.9*B04 - 0.055)]

It’s also possible to use a cubic root (Math.cbrt) instead of a square root. This will decrease the contrast, improve the vibrancy of the ocean and land, but decrease the visual information of the clouds.

Author of the script

Marko Repše

Description of representative images

Hurricane Douglas. Image acquired on 2020-07-23, processed by Sentinel Hub. Douglas

Clouds over Southern Argentina and Chile. Image acquired on 2020-08-28, processed by Sentinel Hub. Chile clouds

Clouds over Mexico. Image acquired on 2020-07-23, processed by Sentinel Hub. Mexico clouds