| Label | Explanation | Data Type |
Input Raster | The raster dataset that containing the color map you want to remove. | Raster Layer |
Derived Output
| Label | Explanation | Data Type |
| Updated Input Raster | The output raster dataset. | Raster Layer |
Removes the color map associated with a raster dataset.
This tool will not work when the color map is internally stored in the attribute table of an IMG or a TIFF dataset. If the attribute table contains the fields Red, Green, and Blue, this tool cannot be used.
| Label | Explanation | Data Type |
Input Raster | The raster dataset that containing the color map you want to remove. | Raster Layer |
| Label | Explanation | Data Type |
| Updated Input Raster | The output raster dataset. | Raster Layer |
arcpy.management.DeleteColormap(in_raster)
| Name | Explanation | Data Type |
in_raster | The raster dataset that containing the color map you want to remove. | Raster Layer |
| Name | Explanation | Data Type |
| out_raster | The output raster dataset. | Raster Layer |
This is a Python sample for the DeleteColormap tool.
import arcpy
arcpy.DeleteColormap_management("c:/data/delcolormap.tif")This is a Python script sample for the DeleteColormap tool.
##====================================
##Delete Colormap
##Usage: CalculateStatistics_management in_raster
import arcpy
arcpy.env.workspace = r"C:/Workspace"
##Delete the colormap of single band image if exist
arcpy.DeleteColormap_management("nocolormap.img")