Triangle Water Index - A spectral index for water applications.

Used in water detection.

When to use

  • Permanent and seasonal water body delineation
  • Flood mapping and emergency response
  • Wetland inventory and change detection
  • Reservoir and lake water level monitoring
  • Coastal shoreline change analysis

Limitations

  • Dark surfaces (shadows, asphalt, dark soils) can produce false positives
  • Suspended sediments and algae alter spectral response in shallow water
  • Mixed pixels at water boundaries reduce edge accuracy
  • Atmospheric correction quality directly impacts threshold selection
  • Sun glint over open water can saturate sensors and bias values
  • Requires four or more bands — limits portability across simpler sensors

What the values mean

-1 Definitely not water
-0.3 Dry / built-up surface
0 Possible moisture / wet soil
0.3 Open water
0.6 Deep / clear water
Surface typeTypical TWI
Built-up, asphalt-0.5 to -0.2
Bare soil, vegetation-0.2 to 0
Wet soil, flooded fields0 to 0.3
Open water, lakes0.3 to 0.7

General Formula

RE1 705
RE2 740
G 550
S2 2190
B 450
N 850

Sensor-Specific Formulas

Most-used sensors — click to show code below

SensorProviderFormulaBand Mapping

Code Examples

twi_generic.py

TWI vs other water indices

IndexNameHow it differs
LSWILand Surface Water IndexAlternative water index — different band combination
LWVI-1Leaf Water Vegetation Index 1Alternative water index — different band combination
LWVI-2Leaf Water Vegetation Index 2Alternative water index — different band combination
MNDWIModified Normalized Difference Water IndexRefined formulation for specific conditions

Related Water Indices

References

https://doi.org/10.3390/rs14215289

Need help choosing?

Ask our AI assistant for sensor recommendations, code examples, or how TWI compares to other indices for your specific use case.

Ask AI →