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