ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Reclass by Table

Available with Spatial Analyst license.

Available with 3D Analyst license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Reclassifies (or changes) the values of the input cells of a raster using a remap table.

Usage

  • The input raster must have valid statistics. If the statistics do not exist, they can be created using the Calculate Statistics tool in the Data Management toolbox.

  • The From value field, To value field, and Output value field are the field names in the table that define the remapping.

  • To reclassify individual values, use a simple remap table of two items. The first item identifies the value to reclassify, and the other item identifies the value to assign to it. Set the To value field the same as the From value field. The value to assign to the output is Output value field.

  • To reclassify ranges of values, the remap table must have items defining the start and end of each range, along with the value to assign the range. The item defining the start of the range is the From value field, and the value defining the end of the range is the To value field. The value to assign to the output is Output value field.

  • The remap table can be a geodatabase table, a text file, an INFO table, or a dbase file.

  • The values in the from and to fields can be any numerical item. The assignment values in the output field must be integers.

  • Values in the From value field for .dbf, INFO, and Geodatabase tables do not need to be sorted. For text-file based tables, they must be sorted in ascending order. The values should not overlap in either case.

Syntax

arcpy.ddd.ReclassByTable(in_raster, in_remap_table, from_value_field, to_value_field, output_value_field, out_raster, {missing_values})
ParameterExplanationData Type
in_raster

The input raster to be reclassified.

Raster Layer
in_remap_table

Table holding fields defining value ranges to be reclassified and the values they will become.

Table View
from_value_field

Field holding the beginning value for each value range to be reclassified.

This is a numeric field of the input remap table.

Field
to_value_field

Field holding the ending value for each value range to be reclassified.

This is a numeric field of the input remap table.

Field
output_value_field

Field holding the integer values to which each range should be changed.

This is an integer field of the input remap table.

Field
out_raster

The output reclassified raster.

The output will always be of integer type.

Raster Dataset
missing_values
(Optional)

Denotes whether missing values in the reclass table retain their value or get mapped to NoData.

  • DATA —Signifies that if any cell location on the input raster contains a value not present or reclassed in a remap table, the value should remain intact and be written for that location to the output raster. This is the default.
  • NODATA —Signifies that if any cell location on the input raster contains a value not present or reclassed in a remap table, the value will be reclassed to NoData for that location on the output raster.
Boolean

Code sample

ReclassByTable example 1 (Python window)

This example uses a remap table to reclassify the input raster.

import arcpy
from arcpy import env  
env.workspace = "C:/data"
arcpy.ReclassByTable_3d("slope","remapslope","C:/sapyexamples/output/recslope",
                        "FROM","TO","OUT", "NODATA")
ReclassByTable example 2 (stand-alone script)

This example uses a remap table to reclassify the input raster.

# Name: ReclassByTable_Ex_02.py
# Description: Reclassifies the values of the input raster using a remap table.
# Requirements: 3D Analyst Extension

# Import system modules
import arcpy
from arcpy import env

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

# Set local variables
inRaster = "slope"
inRemapTable = "remapslope"
outRaster = "C:/output/recslope"

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

# Execute Reclassify
arcpy.ReclassByTable_3d(inRaster, inRemapTable, outRaster, "FROM","TO","OUT",
                        "NODATA")

Environments

  • Auto Commit
  • Cell Size
  • Cell Size Projection Method
  • Compression
  • Current Workspace
  • Extent
  • Geographic Transformations
  • Mask
  • Output CONFIG Keyword
  • Output Coordinate System
  • Scratch Workspace
  • Snap Raster
  • Tile Size

Licensing information

  • Basic: Requires 3D Analyst or Spatial Analyst
  • Standard: Requires 3D Analyst or Spatial Analyst
  • Advanced: Requires 3D Analyst or Spatial Analyst

Related topics

  • An overview of the Raster Reclass toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal