I have a single band raster, but i like to export it with the same colors as in Arcmap.
Any help please.
Answer
You can create and save a color map to achieve what you want. Keep in mind that for geotiffs, colormaps are supported only with certain bit depths. ArcGIS Help 10.2 has excellent instructions on creating a color map (.clr) file:
Steps:
- Add a single-band raster dataset to ArcMap.
- Right-click the raster dataset in the table of contents and click Properties.
- Click the Symbology tab.
- Choose the Unique Values renderer.
- Edit the symbol color to the appropriate color for each value. You can edit each symbol color, or you can choose a preset color ramp.
- When you are ready to save the color scheme, click the Colormap button and click Export a Colormap.
- Choose the location and name to save the .clr file and click Save. Once a .clr file is created, the Add Colormap tool can be used to apply the color to a raster dataset. The .clr file can be edited in a text editor, but be sure to only use spaces between values in each row in the file.
No comments:
Post a Comment