IronOxide
汇总
计算多波段栅格对象的氧化铁 (IO) 比率,并返回具有该指数值的栅格对象。
讨论
氧化铁比率为红光波长和蓝光波长的比值。 层状褐铁硅酸盐矿物以及褐铁矿的氧化蚀变产物会吸收蓝光波段并反射红光波段。 这会使铁蚀严重的区域显示为亮色。 该比值的特性使该指数可减轻由地形阴影导致的光照差异。
\(氧化铁比例 \space = \space Red \space / \space Blue\)
Red = 红光波段的像素值
Blue = 蓝光波段的像素值
有关其他多波段栅格索引的信息,请参见 Band Arithmetic 栅格函数。
栅格对象所引用的栅格数据集是临时性的。 要将其设置为永久,可以调用栅格对象的 save 方法。
语法
IronOxide(raster, {red_band_id}, {blue_band_id})
| 参数 | 说明 | 数据类型 |
|---|---|---|
|
raster |
The input raster. |
Raster |
|
red_band_id |
The band ID of the red band. The ID index uses one-based indexing. (默认值为 4) |
Integer |
|
blue_band_id |
The band ID of the blue band. The ID index uses one-based indexing. (默认值为 2) |
Integer |
返回值
| 数据类型 | 说明 |
|---|---|
|
Raster |
具有氧化铁比率值的输出栅格对象。 |
代码示例
IronOxide 示例
计算 Sentinel-2 影像的氧化铁比率。
import arcpy
IronOxide_raster = arcpy.sa.IronOxide("Sentinel2.tif", 4, 2)