a1.s2

SetNull for multiple cases

Discussion created by a1.s2 on Nov 18, 2012
Latest reply on Nov 19, 2012 by a1.s2
Hello,

I have two overlapping raster, x.tif and y.tif. I want to assign NoData to x.tif pixels that correspond to y.tif pixels whose values are 65, 17, 85, etc. The code below does this but I have to run it multiple times for each of the pixel values (i.e. for 65, and then for 17, and for 85 and so on):
SetNull("2012-07-121.tif" , "Night-2012-07-122.tif" , "Value=65")

I tried to use the "|" operator but unsuccessfully.
Any ideas, please?

Outcomes