Add Colormap (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Allows you to add a color map to a raster dataset, if it does not already exist. If the color map already exists, it will replace the color map with the one specified.
Usage tips
This tool allows you to either create or update a color map table for a raster dataset.
The color map, from a raster dataset, that already exists will be applied to the input raster dataset.
This tool will not work when the colormap is internally stored in the attribute table of an IMG or TIFF dataset. If the attribute table contains the fields "Red", "Green", and "Blue", that means this tool cannot be used.
The following environment setting affects this tool: current workspace.
Command line syntax
An overview of the Command Line window
AddColormap_management <in_raster> <in_template_raster>
Parameter | Explanation | Data Type |
<in_raster> |
The input raster dataset to which you want to add a color map. |
Raster Layer |
<in_template_raster> |
A raster dataset with a color map that will be applied to the input raster dataset. |
Raster Layer |
Addcolormap c:/redlands_data/Redlands.tif c:/Redlands_data/Redlands_colormap.tif
Scripting syntax
About getting started with writing geoprocessing scripts
AddColormap_management (in_raster, in_template_raster)
Parameter | Explanation | Data Type |
in_raster (Required) |
The input raster dataset to which you want to add a color map. |
Raster Layer |
in_template_raster (Required) |
A raster dataset with a color map that will be applied to the input raster dataset. |
Raster Layer |
#Create the geoprocessing object import arcgisscripting gp = arcgisscripting.create() gp.workspace = "c:/redlands_data" gp.addcolormap_management("redlands.tif","redlands_colormap.tif")