选中—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.
未选中—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.
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.
# 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"
# Run Reclassify
arcpy.ddd.ReclassByTable(inRaster, inRemapTable, outRaster, "FROM","TO","OUT",
"NODATA")