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

Delete Colormap

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

Summary

Removes the color map associated with a raster dataset.

Usage

  • 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, that means this tool cannot be used.

Syntax

arcpy.management.DeleteColormap(in_raster)
ParameterExplanationData Type
in_raster

The raster dataset that containing the color map you want to remove.

Raster Layer

Derived Output

NameExplanationData Type
out_raster

The output raster dataset.

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
    
import arcpy
arcpy.env.workspace = r"C:/Workspace"

##Delete the colormap of single band image if exist
arcpy.DeleteColormap_management("nocolormap.img")

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics

  • An overview of the Raster toolset
  • Environment settings for raster data
  • Key concepts of raster dataset color maps
  • Options when mosaicking with colormaps
  • Creating a color map (.clr) file

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