Skip to main content

NDVI

汇总

计算多波段栅格对象的归一化差值植被指数 (NDVI),并返回具有该指数值的栅格对象。

讨论

归一化差值植被指数 (NDVI) 方法是一个标准化指数,用于生成显示植被量(相对生物量)的影像。 该指数对多光谱栅格数据集中两个波段的特征进行对比,即红光波段中叶绿素的色素吸收率 NIR 波段中植物体的高反射率。

\(NDVI \space = \space ((NIR \space - \space Red)/(NIR \space + \space Red))\)

  • NIR = 近红外波段的像素值

  • Red = 红光波段的像素值

此指数的输出值介于 -1.0 和 1.0 之间。

有关其他多波段栅格索引的信息,请参见 Band Arithmetic 栅格函数。

栅格对象所引用的栅格数据集是临时性的。 要将其设置为永久,可以调用栅格对象的 save 方法。

语法

NDVI(raster, {nir_band_id}, {red_band_id})

参数 说明 数据类型

raster

The input raster.

Raster

nir_band_id

The band ID of the near-infrared band. The ID index uses one-based indexing.

(默认值为 4)

Integer

red_band_id

The band ID of the red band. The ID index uses one-based indexing.

(默认值为 3)

Integer

返回值

数据类型 说明

Raster

具有 NDVI 指数值的输出栅格对象。

代码示例

NDVI 示例

计算 Landsat 8 图像的归一化差植被指数。

import arcpy

NDVI_raster = arcpy.sa.NDVI("Landsat8.tif", 5, 4)