Iso Cluster (Spatial Analyst)

Summary

Uses an isodata clustering algorithm to determine the characteristics of the natural groupings of cells in multidimensional attribute space and stores the results in an output ASCII signature file.

Learn more about how Iso Cluster works

Usage

Syntax

IsoCluster (in_raster_bands, out_signature_file, number_classes, {number_iterations}, {min_class_size}, {sample_interval})
ParameterExplanationData Type
in_raster_bands
[in_raster_band,...]

The input raster bands.

Raster Layer
out_signature_file

The output signature file.

A .gsg extension must be specified.

File
number_classes

Number of classes into which to group the cells.

Long
number_iterations
(Optional)

Number of iterations of the clustering process to run.

The default is 20.

Long
min_class_size
(Optional)

Minimum number of cells in a valid class.

The default is 20.

Long
sample_interval
(Optional)

The interval to be used for sampling.

The default is 10.

Long

Code Sample

IsoCluster example 1 (Python window)

This example creates a signature file for classifying the input multiband raster into five classes.

import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "C:/sapyexamples/data"
IsoCluster("redlands", "c:/sapyexamples/output/isosig.gsg", 5, 20, 50, 15)
IsoCluster example 2 (stand-alone script)

This example creates a signature file for classifying the input multiband raster into five classes.

# Name: IsoCluster_Ex_02.py
# Description: Uses an isodata clustering algorithm to determine the 
#    characteristics of the natural groupings of cells in multidimensional 
#    attribute space and stores the results in an output ASCII signature file.
# Requirements: Spatial Analyst Extension
# Author: ESRI

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

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

# Set local variables
inRaster = "redlands"
outSig = "redlndiso.gsg"
classes = 5
cycles = 20
minMembers = 50
sampInterval = 15

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

# Execute IsoCluster
IsoCluster(inRaster, outSig, classes, cycles, minMembers, sampInterval)

Environments

Related Topics

Licensing Information

ArcView: Requires Spatial Analyst
ArcEditor: Requires Spatial Analyst
ArcInfo: Requires Spatial Analyst

6/29/2011