In Raster Calculator I need to apply the next expression:
Con("raster1%","field3")==Integer, Lookup("%raster2%","field3"),Lookup("raster1%","field3"))
or more specifically:
Con("%alteracionMapeada_raster%"==8,Lookup("%swir%","CLASS_NAME"),Lookup("%alteracionMapeada_raster%","OCURREN16"))
The "%raster2%"
,"field3"
and "raster1%"
,"field3"
are categorical values so I need to get those values (form "%raster2%"
,"field3"
and "raster1%"
,"field3"
) in the output raster cells. The problem is that the results is just one numerical field (no other fields with categorical).
I have already checked Specify a field in attribute table with raster calculator and the answer about the lookup tool has very promising but didn't work.