The input raster must have valid statistics. If the statistics do not exist, you can create them using the Calculate Statistics tool in the Data Management toolbox.
The output raster will always be of integer type. If the output assignment values in the ASCII file are floating-point values, an error message will be returned and the program will halt.
ASCII remap file defining the single values or ranges to be reclassified and the values they will become.
Allowed extensions for the ASCII remap files are .rmp, .txt, and .asc.
File
Output raster
The output reclassified raster.
The output will always be of integer type.
Raster Dataset
Change missing values to NoData
(Optional)
Denotes whether missing values in the reclass file retain their value or get mapped to NoData.
Checked—Signifies that if any cell location on the input raster contains a value that is not present or reclassed in the remap file, the value will be reclassed to NoData for that location on the output raster.
Unchecked—Signifies that if any cell location on the input raster contains a value that is not present or reclassed in the remap file, the value should remain intact and be written for that location to the output raster. This is the default.
ASCII remap file defining the single values or ranges to be reclassified and the values they will become.
Allowed extensions for the ASCII remap files are .rmp, .txt, and .asc.
File
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 file retain their value or get mapped to NoData.
NODATA—Signifies that if any cell location on the input raster contains a value that is not present or reclassed in the remap file, 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 that is not present or reclassed in the remap file, the value should remain intact and be written for that location to the output raster. This is the default.
Boolean
Code sample
ReclassByASCIIFile example 1 (Python window)
This example uses an ASCII remap file to reclassify the input raster.