Skip to main content

FerrousMinerals

汇总

计算多波段栅格对象的有色矿物 (FM) 比率,并返回具有该指数值的栅格对象。

讨论

有色矿物比会突出显示含铁材料。 它采用 SWIR 波段和 NIR 波段间的比值。

\(有色矿物比 \space = \space SWIR \space / \space NIR\)

  • SWIR = 短波红外波段的像素值

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

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

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

语法

FerrousMinerals(raster, {swir_band_id}, {nir_band_id})

参数 说明 数据类型

raster

The input raster.

Raster

swir_band_id

The band ID of the shortwave infrared (SWIR) band.

波段 ID 索引使用以一起始的索引。

(默认值为 6)

Integer

nir_band_id

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

(默认值为 5)

Integer

返回值

数据类型 说明

Raster

具有有色矿物比值的输出栅格对象。

代码示例

FerrousMinerals 示例

计算 Sentinel-2 影像的有色矿物比。

import arcpy

FerrousMinerals_raster = arcpy.sa.FerrousMinerals("Sentinel2.tif", 11, 8)