| S2WI Algorithm Specification | ![]() |
The S2WI operator algorithm computes the
Sentinel-2 Water Index
from a given product.
The S2WI results from the following equation:
S2WI = (RE1 - S2) / (RE1 + S2)
, where:
The bands are:
- RE1 is the Red Edge 1 band
- R is the Red band
- S2 is the SWIR 2 band
Also the processor computes an additional flags band called 's2wi_flags' with the following bit coding:
| Bit Position | Description |
|---|---|
| Bit 0 | The computed value for S2WI is NAN or is Infinite |
| Bit 1 | The computed value for S2WI is less than -1 (minus one) |
| Bit 2 | The computed value for S2WI is greater than 1 (one) |