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