Resumen
Creates a raster object by dividing an input raster into two distinct classes, where a high-value class is displayed with white pixels and a low-value class is displayed with black pixels.
Debate
For more information about how this function works, see the Binary Thresholding 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
Threshold (raster)
Parámetro | Explicación | Tipo de datos |
raster | The input raster. | Raster |
Tipo de datos | Explicación |
Raster | The output raster. |
Muestra de código
Divides a Landsat 8 image into two classes.
import arcpy
Binary_raster = arcpy.sa.Threshold("Landsat8.TIF")