Superposición ponderada (Spatial Analyst)

Nivel de licencia:BasicStandardAdvanced

Resumen

Superpone varios rásteres con una escala de medición común y pondera cada uno según su importancia.

Más información sobre cómo funciona la Superposición ponderada

Ilustración

Weighted Overlay illustration
In the illustration, the two input rasters have been reclassified to a common measurement scale of 1 to 3. Each raster is assigned a percentage influence. The cell values are multiplied by their percentage influence, and the results are added together to create the output raster. For example, consider the top left cell. The values for the two inputs become (2 * 0.75) = 1.5 and (3 * 0.25) = 0.75. The sum of 1.5 and 0.75 is 2.25. Because the output raster from Weighted Overlay is integer, the final value is rounded to 2.

Uso

Sintaxis

WeightedOverlay (in_weighted_overlay_table)
ParámetroExplicaciónTipo de datos
in_weighted_overlay_table

La herramienta Superposición ponderada permite el cálculo de un análisis de criterios múltiples entre varios rásteres.

Una clase deSuperposición se utiliza para definir la tabla. El objeto WOTable se utiliza para especificar los rásteres de criterios y sus respectivas propiedades.

El formato del objeto es:

  • WOTable([[inRaster, influence, field, remap],...], [from, to, by])

WOTable

Valor de retorno

NombreExplicaciónTipo de datos
out_raster

El ráster de adecuación de salida.

Raster

Ejemplo de código

Ejemplo 1 de WeightedOverlay (ventana de Python)

Este ejemplo crea un ráster IMG de adecuación que identifica posibles ubicaciones para una estación de esquí.

import arcpy
from arcpy import env  
from arcpy.sa import *
env.workspace = "C:/sapyexamples/data"

outsuit = WeightedOverlay(WOTable(
           [
            ["snow", 50, 'VALUE', RemapValue([[1,"Nodata"],[5,3],[9,10],["NODATA","NODATA"]])], 
            ["land", 20, '', RemapValue([["water","1"],["forest",5],["open field",9],["NODATA", "NODATA"]])],
            ["soil", 30, 'VALUE', RemapValue([[1,"Restricted"],[5,5],[7,7],[9,9],["NODATA", "Restricted"]])]
           ],[1,9,1]))
outsuit.save("C:/sapyexamples/output/outsuit.img")
Ejemplo 2 de WeightedOverlay (secuencia de comandos independiente)

Este ejemplo crea un ráster IMG de adecuación que identifica posibles ubicaciones para una estación de esquí.

# Name: WeightedOverlay_Ex_02.py
# Description: Overlays several rasters using a common scale and weighing 
#    each according to its importance.
# Requirements: Spatial Analyst Extension

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

# Set environment settings
env.workspace = "C:/sapyexamples/data"

# Set local variables
inRaster1 = "snow"
inRaster2 = "land"
inRaster3 = "soil"

remapsnow = RemapValue([[0,1],[1,1],[5,5],[9,9],["NODATA","NODATA"]])
remapland = RemapValue([[1,1],[5,5],[6,6],[7,7],[8,8],[9,9],["NODATA","Restricted"]])
remapsoil = RemapValue([[0,1],[1,1],[5,5],[6,6],[7,7],[8,8],[9,9],["NODATA", "NODATA"]])

myWOTable = WOTable([[inRaster1, 50, "VALUE", remapsnow],
                     [inRaster2, 20, "VALUE", remapland], 
                     [inRaster3, 30, "VALUE", remapsoil]
					          ], [1, 9, 1])    

# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("Spatial")

# Execute WeightedOverlay
outWeightedOverlay = WeightedOverlay(myWOTable)

# Save the output
outWeightedOverlay.save("C:/sapyexamples/output/weightover2")

Entornos

Temas relacionados

Información sobre licencias

ArcGIS for Desktop Basic: Requiere Spatial Analyst
ArcGIS for Desktop Standard: Requiere Spatial Analyst
ArcGIS for Desktop Advanced: Requiere Spatial Analyst
9/11/2013