Delete Colormap (Data Management)

License Level:BasicStandardAdvanced

Summary

Removes the color map associated with a raster dataset.

Usage

Syntax

DeleteColormap_management (in_raster)
ParameterExplanationData Type
in_raster

The raster dataset containing the color map to remove.

Raster Layer

Code Sample

DeleteColormap Example (Python Window)

This is a Python sample for the DeleteColormap tool.

import arcpy
arcpy.DeleteColormap_management("c:/data/delcolormap.tif")
DeleteColormap Example 2 (Stand-alone script)

This is a Python script sample for the DeleteColormap tool.

##====================================
##Delete Colormap
##Usage: CalculateStatistics_management in_raster
    
try:
    import arcpy
    arcpy.env.workspace = r"C:/Workspace"
    
    ##Delete the colormap of single band image if exist
    arcpy.DeleteColormap_management("nocolormap.img")

except:
    print "Delete Colormap example failed."
    print arcpy.GetMessages()

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013