MSAVI

摘要

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

说明

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

MSAVI2 = (1/2) * (2 * (NIR +1) - sqrt((2 * NIR + 1)2-8(NIR - Red)))

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

栅格对象所引用的栅格数据集是临时性的。 要将其设置为永久,可以调用栅格对象的 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)

相关主题