Saturday 6 April 2019

arcgis desktop - How to Export Raster with same classification colors seen in ArcMap?


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:



  1. Add a single-band raster dataset to ArcMap.

  2. Right-click the raster dataset in the table of contents and click Properties.

  3. Click the Symbology tab.


  4. Choose the Unique Values renderer.

  5. 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.

  6. When you are ready to save the color scheme, click the Colormap button and click Export a Colormap.

  7. 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

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...