How are the values calculated within Sentinel Hub and how are they returned as an output for NDWI?
I am assuming you are using Sentinel Hub OGC services, not one of our applications (it should not be too difficult to apply the answer to EO Browser either).
If you want to get NDWI as a value rather than a color, you should do the following steps:
In data processing field click “Edit data processing”.
You need to find the appropriate band combination for NDWI. We have one option listed on this page:
return [(B03 - B08) / (B03 + B08)];
If you are using our Statistical API, you can get values directly in JSON.
In case you are using some other tool, you might want to check this post to see, how values are then reflected in the output depending on the format.
The reference calculation for NDWI should be (NIR-SWIR)/(NIR+SWIR). How is the use of the green band and the formula (Green-NIR)/(Green+NIR) providing a proper NDWI index? Is this a documentation issue?
There are actually two common implementation of NDWI, check the script for more info: