NDWI

概要

Calculates the Normalized Difference Water Index (NDWI) from a multiband raster object and returns a raster object with the index values.

ディスカッション

Normalized Difference Water Index (NDWI) は、地表水の含有量の変化を表現および監視するための指標です。近赤外 (NIR) および緑色のバンドを使用して計算されます。

NDWI = (Green - NIR) / (Green + NIR)

For information about other multiband raster indexes, see the Band Arithmetic raster function.

The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.

構文

NDWI (raster, {nir_band_id}, {green_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.

(デフォルト値は次のとおりです 5)

Integer
green_band_id

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

(デフォルト値は次のとおりです 3)

Integer
戻り値
データ タイプ説明
Raster

The output raster object with the NDWI index values.

コードのサンプル

NDWI example

Calculates the Normalized Difference Water Index for a Sentinel-2 image.

import arcpy

NDWI_raster = arcpy.sa.NDWI("Sentinel2.tif", 8, 3)

関連トピック