I am trying to combine multiple rasters into one in ModelBuilder, and I keep getting these errors:
ERROR 010159: Unable to open VAT file of I:\nfleisch\Landsat5&8_Dataset\Vector_Rasters\DAMAGE_AREAS_FLAT_Rgn4_1997_Combination.tif.
ERROR 010067: Error in executing grid expression. Failed to execute (Combine)
What could be the problem?
Solved! Go to Solution.
could you check that this is really your path
pth = "I:\nfleisch\Landsat5&8_Dataset\Vector_Rasters\DAMAGE_AREAS_FLAT_Rgn4_1997_Combination.tif"
because when you print it, it gets split
print(pth)
I:
fleisch\Landsat5&8_Dataset\Vector_Rasters\DAMAGE_AREAS_FLAT_Rgn4_1997_Combination.tif
when it is 'raw' encoded, it seems fine
r"I:\nfleisch\Landsat5&8_Dataset\Vector_Rasters\DAMAGE_AREAS_FLAT_Rgn4_1997_Combination.tif"
But in any case it could be a number of things, but I would definitely begin with a shorter path and filename
could you check that this is really your path
pth = "I:\nfleisch\Landsat5&8_Dataset\Vector_Rasters\DAMAGE_AREAS_FLAT_Rgn4_1997_Combination.tif"
because when you print it, it gets split
print(pth)
I:
fleisch\Landsat5&8_Dataset\Vector_Rasters\DAMAGE_AREAS_FLAT_Rgn4_1997_Combination.tif
when it is 'raw' encoded, it seems fine
r"I:\nfleisch\Landsat5&8_Dataset\Vector_Rasters\DAMAGE_AREAS_FLAT_Rgn4_1997_Combination.tif"
But in any case it could be a number of things, but I would definitely begin with a shorter path and filename
Can you manually open the Value Attribute Table of the TIFF file?
There is a problem with that. When it fails, it does not create the file.
try an output like c:/temp/test.tif
You might want to move your inputs to a different folder to try to rule out location related issues
I am testing it. So far it seems to be working.
It works.
Paths are a tricky business Nathan
Some common pitfalls...
/blogs/dan_patterson/2016/08/14/filenames-and-file-paths-in-python
Two thoughts:
1. You really don't want anything besides [A-Z][0-9]_ in your path names, especially with the Spatial Analyst tools.
2. Dan is correct about long path and file names. The combine tool needs to create fields in the output VAT for each input raster. For this reason I'd avoid giving the tool inputs with really long names, especially if the first 10 characters are not unique. I try to keep raster names in general under 12 characters so I can successfully use them with all raster formats.