The Lookup tool only supports integer output. Does anyone have a workaround for floating point data in another field?
I, too, have a similar problem as stated in this thread. I tried using the lookup function on my raster
what happens if i have to make a add opperation like the one i mentioned earlier e. soil.Ph + vegetation.Ph can i do this on the calculator or do i have to make more steps?
Lookup("soil","ph") + Lookup("vegetation","ph")
from arcpy.sa import * arcpy.env.workspace = "D:/myfolder" # "soil.img" and "vegetation.img" are in this folder # the Raster function is used to convert the path strings to a raster object phsum = Lookup(Raster("soil.img"),"Ph") + Lookup(Raster("vegetation.img"),"ph") phsum.save("phgrid") # save to Esri grid \myfolder\phgrid
"Lookup" usually fails in raster calculator
Mosaic([Lookup("grid1","FIELD1"), Lookup("grid2","FIELD2")], "mergeraster")
. In raster calculator it would be nice to be able to chose the "Lookup" function (and other functions) so that "case" is not an issue, as well as being able to select the "item" to use in the lookup.
>>> from arcpy.sa import * >>> ras = Con
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.