I'm currently using ArcGIS 10.2.2 (Advanced).
I need to generate a new raster from an existing raster by comparing the cell values to a list where an new cell value will be listed against the old value.
The existing unique list of values:
The new cell values are:
I'm looking for advice in how I can achieve creating a new raster based on comparing the existing cell values and replacing them with the new cell values using python. I could create a map algebra function to achieve the following using if statements, but feel that there should be a better method using Python. I was wondering if numpy arrays to achieve the following is suitable, but I have used them before so any help in getting started will be appreciated. Any other methods using python are also welcome.
Solved! Go to Solution.
these come to mind
Reclass by Table—Help | ArcGIS for Desktop
Reclass by ASCII File—Help | ArcGIS for Desktop
An overview of the Raster Reclass tools—Help | ArcGIS for Desktop or just about any in here. There is no need to use the raster calculator or if statements. These functions can be done in numpy, but if you have the spatial analyst extension, you may as well use the existing tools
these come to mind
Reclass by Table—Help | ArcGIS for Desktop
Reclass by ASCII File—Help | ArcGIS for Desktop
An overview of the Raster Reclass tools—Help | ArcGIS for Desktop or just about any in here. There is no need to use the raster calculator or if statements. These functions can be done in numpy, but if you have the spatial analyst extension, you may as well use the existing tools
Hi Dan
Thanks for reminding me about the reclass by table tool, clean forgot about it.
Regards, Peter Wilson