SWM Algorithm Specification

SWM

The SWM operator algorithm computes the Sentinel Water Mask from a given product.

The SWM results from the following equation:

SWM = (B + G) / (N + S1)

, where:

The bands are:

- B is the Blue band
- G is the Green band
- N is the NIR band
- S1 is the SWIR 1 band


SWM-Flags

Also the processor computes an additional flags band called 'swm_flags' with the following bit coding:

Bit Position Description
Bit 0 The computed value for SWM is NAN or is Infinite
Bit 1 The computed value for SWM is less than -1 (minus one)
Bit 2 The computed value for SWM is greater than 1 (one)