I have downloaded US soil raster data by state from https://gdg.sc.egov.usda.gov/GDGOrder.aspx at 10m resolution.
I am now trying to add a modified raster attribute table to tif that was exported from the geodatabase using arcpy, but have been unable to do so. The existing tif has an attribute table with an ID that matches the IDs in the modified attribute table.
I have tried to (1) make the raster a layer (not sure this is the right approach), (2) add a table using AddJoin_management, and (3) export the results. Obviously, I am missing something.
import arcpy from arcpy import env env.workspace = "C:/Data" inFeatures = "InRaster.tif" ## This is tif raster exported from geodatabase layerName = "raster_layer" rat = "rat.dbf" ## attribute table for joining arcpy.MakeRaster_management(inFeatures,layerName) ## This doesn't work, with or without extension. tmp = arcpy.AddJoin_management(layerName,"Value",rat,"ID") # This works, but is a result and I am not sure how to export it.