Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

SetNull for multiple cases

$
0
0
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?

Viewing all articles
Browse latest Browse all 2485

Trending Articles