Skip to content

Files

Latest commit

1d0db61 · Jan 12, 2023

History

History
This branch is 410 commits behind sentinel-hub/custom-scripts:main.

ndwi

NDWI Normalized Difference Water Index, PlanetScope

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

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

Evaluate and visualize

As PlanetScope is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser and Sentinel Playgorund links are not possible due to the personalized data credentials.

General description of the script

The NDWI is useful for water body mapping, as water bodies strongly absorb light in visible to infrared electromagnetic spectrum. NDWI uses green and near infrared bands to highlight water bodies. It is sensitive to built-up land and can result in over-estimation of water bodies.

NDWI = (B02 - B04) / (B02 + B04)

Values description: Index values greater than 0.5 usually correspond to water bodies. Vegetation usually corresponds to much smaller values and built-up areas to values between zero and 0.2.

Description of representative images

NDWI (for water content in leaves) of Rome.

NDWI of Rome

References

Source: https://en.wikipedia.org/wiki/Normalized_difference_water_index