Key concepts of raster dataset color maps

A color map is a set of values that are associated with colors. Color maps are used to display a single-band raster consistently with the same colors. Each pixel value is associated with a color, defined as a set of red, green, and blue (RGB) values. Since each value has a distinct color associated with it, it will always display the same way each time you open it in a program that can read a raster with a color map. Color maps are capable of handling up to 16-bit data.

colormap table

By default, a raster dataset with a color map will always be displayed using the associated color map. If you want to change the raster dataset's appearance, simply change the colors in the Colormap renderer panel (accessible in the raster dataset's Layer Properties dialog box on the Symbology tab) or use the Unique Values renderer. See Renderers used to display raster data to learn more about the different types of renderers.

The easiest way to see if your raster dataset has a color map associated with it is to open the Raster Dataset Properties (in ArcCatalog) or the Layer Properties (in ArcMap); the colormap property will be present if there is a color map associated with the raster dataset.

Color maps are associated with the raster dataset in different ways, depending on the raster format. Some raster formats, such as .bil, .bip, or .bsq, have the color map information stored in an auxiliary file next to the raster. Other formats, such as .img, .tif, or ArcSDE, have the color map information stored internally within the raster dataset itself.

Using geoprocessing tools, you can copy or delete a color map for a raster dataset. The Add Colormap tool allows you to copy the color map schema from an existing color-mapped raster dataset, .clr file, or .act file to another raster dataset. The Delete Colormap tool allows you to delete the color map from an existing raster dataset. Not all raster formats are applicable for these two geoprocessing tools; please refer to the technical specifications to see which formats can support color maps. For more control over color maps, you can use ArcObjects programming.

Some applications write internal color maps in a way ArcGIS cannot alter. This may happen with some IMG or TIFF files. Therefore, the Delete Colormap tool will not be able to remove their color maps.

Raster attribute tables that contain Red, Green, and Blue fields are not valid color maps and cannot be deleted using the Delete Colormap tool.

Related Topics


8/21/2013