Skip to main content

VARI

汇总

计算多波段栅格对象的可视化大气阻抗指数 (VARI),并返回具有该指数值的栅格对象。

讨论

可见光大气阻抗指数 (VARI) 用于突出处于光谱中可见光部分的植被,同时减轻光照差异和大气效应。 非常适合 RGB 或彩色影像;利用全部三种彩色波段。

\(VARI \space = \space (Green \space - \space Red) \space / \space (Green \space + \space Red \space – \space Blue)\)

  • Green = 绿光波段的像素值

  • Red = 红光波段的像素值

  • Blue = 蓝光波段的像素值

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

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

语法

VARI(raster, {red_band_id}, {green_band_id}, {blue_band_id})

参数 说明 数据类型

raster

The input raster.

Raster

red_band_id

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

(默认值为 3)

Integer

green_band_id

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

(默认值为 2)

Integer

blue_band_id

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

(默认值为 1)

Integer

返回值

数据类型 说明

Raster

具有 VARI 值的输出栅格。

代码示例

VARI 示例

计算 Landsat 8 影像的可视化大气阻抗指数。

import arcpy

VARI_raster = arcpy.sa.VARI("Landsat8.tif",4,3,2)