Skip to content

Latest commit

 

History

History
 
 

highlight_optimized_natural_color

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Highlight Optimized Natural Color Script

Show script or download{:target="_blank"} it.

{% highlight javascript %} {% include_relative script.js %} {% endhighlight %}

Evaluate and visualize

General description of the script

This script aims to display the Earth in beautiful natural color images. It uses highlight optimization to avoid burnt out pixels and to even out the exposure. The script needs only 3 code lines and was inspired by the Tonemapped Natural Color Script{:target="_blank"}.

For Sentinel-2 L2A, the script applies the cubic root of the lowered values of the true color bands:

return [Math.cbrt(0.6 * B04),
        Math.cbrt(0.6 * B03),
        Math.cbrt(0.6 * B02)]

For Sentinel-2 L1C, the contrast is additionally increased for better visualization:

return [Math.cbrt(0.6 * B04 - 0.035),
        Math.cbrt(0.6 * B03 - 0.035),
        Math.cbrt(0.6 * B02 - 0.035)]

Author of the script

Marko Repše

Description of representative images

Glacier Grey, Chile. Image acquired on 2019-05-08, processed by Sentinel Hub. Glacier Grey

Credits