BAI

Resumen

Calculates the Burn Area Index (BAI) from a multiband raster object and returns a raster object with the index values.

Debate

El Índice de área calcinada (BAI) utiliza los valores de reflectancia de la parte roja y NIR del espectro para identificar las áreas del terreno afectadas por un incendio.

BAI = 1/((0.1 -RED)^2 + (0.06 - NIR)^2)
  • Rojo = valores de píxel de la banda roja
  • NIR = valores de píxel de la banda infrarroja cercana

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.

Sintaxis

BAI (raster, {red_band_id}, {nir_band_id})
ParámetroExplicaciónTipo de datos
raster

The input raster.

Raster
red_band_id

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

(El valor predeterminado es 3)

Integer
nir_band_id

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

(El valor predeterminado es 4)

Integer
Valor de retorno
Tipo de datosExplicación
Raster

The output raster object with the BAI values.

Muestra de código

BAI example

Calculates the Burn Area Index for a Landsat 8 image.

from arcpy.sa import *
out_bai_raster = BAI("landsat8.tif", 3, 4)
out_bai_raster.save("C:/arcpyExamples/outputs/BAI.tif")
BAI example

Calculates the Burn Area Index for a Landsat 8 image.

# Import system modules
import arcpy
from arcpy.sa import *

# Set the analysis environments
arcpy.env.workspace = "C:/arcpyExamples/data"

# Set the local variables
in_raster = "landsat8.tif"

# Execute BAI function
out_bai_raster = BAI(in_raster, 3, 4)

# Save the output
out_bai_raster.save("C:/arcpyExamples/outputs/BAI.tif")

Temas relacionados