Skip to main content

MSAVI

汇总

计算多波段栅格对象的修正型土壤调节植被指数 (MSAVI2),并返回具有该指数值的栅格对象。

讨论

“修正土壤调节植被指数”(MSAVI2) 方法将裸土对于 SAVI 的影响降至最小。

\(MSAVI2 \space = \space (1/2) * (2(NIR+1)-sqrt((2 * NIR+1) ^{2} -8(NIR-Red)))\)

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

  • Red = 红光波段的像素值

通过以空格分隔的列表,您将按以下顺序识别近红外和红光波段:NIR Red。 例如, 4 3

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

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

语法

MSAVI(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

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

代码示例

MSAVI 示例

计算 Landsat 8 影像的修正的土壤调节植被指数。

import arcpy

MSAVI_raster = arcpy.sa.MSAVI("Landsat8.tif", 5, 4)