arcpy.ia.Colormap is not working on the .tif file or cannot be save by save method.

456
2
Jump to solution
12-02-2021 10:16 PM
ElizabetJaneRoot
New Contributor II

Hi team,

I'm trying to use arcpy.ia.Colormap function to change the color of Tiff file that is reclassified by arply.sas.Reclassify function.

After I execute the function, it doesn't show the error but when I tried to save by save method of Raster object, it gives an error back.

 

recolored.save(save_path)
RuntimeError: Unspecified error

 


but when I use the code below to the Tiff dataset, it can be recolored with no errors.

 

arcpy.management.AddColormap(save_path, "#", colormap)

 

 

I have attached Tiff image as zip file that supposed to be pointed at save_path

 

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

did you try

Copy Raster (Data Management)—ArcGIS Pro | Documentation

and experiment with the Colormap to RGB parameter


... sort of retired...

View solution in original post

2 Replies
DanPatterson
MVP Esteemed Contributor

did you try

Copy Raster (Data Management)—ArcGIS Pro | Documentation

and experiment with the Colormap to RGB parameter


... sort of retired...
ElizabetJaneRoot
New Contributor II

Thanks for the comment!

 

0 Kudos