Skip to content

Latest commit

 

History

History
 
 

ndvi

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Normalized difference vegetation index

Show script or download{:target="_blank"} it.

{% highlight javascript %} {% include_relative script.js %} {% endhighlight %}

Evaluate and visualize

General description

The normalized difference vegetation index, abbreviated NDVI, is defined as
$$NDVI := \mathtt{Index}(B8,B4) = \frac{B8-B4}{B8+B4}.$$

It is a good proxy for live green vegetation; see [1] for details.

Color legend

NDVI range HTLM color code Color
NDVI < -0.2 #000000
-.2 < NDVI ≤ 0 #a50026
0 < NDVI ≤ .1 #d73027
.1 < NDVI ≤ .2 #f46d43
.2 < NDVI ≤ .3 #fdae61
.3 < NDVI ≤ .4 #fee08b
.4 < NDVI ≤ .5 #ffffbf
.5 < NDVI ≤ .6 #d9ef8b
.6 < NDVI ≤ .7 #a6d96a
.7 < NDVI ≤ .8 #66bd63
.8 < NDVI ≤ .9 #1a9850
.9 < NDVI ≤ 1.0 #006837

References

[1] Wikipedia, Normalized Difference Vegetation Index . Accessed on October 4th 2017.