SET NULL VALUES WITH CONDITIONAL STATEMENT

1589
2
Jump to solution
01-16-2014 05:50 AM
anTonialcaraz
Occasional Contributor II
Hi,

I wonder if anybody knows of the right conditional statement to be used in Raster Calculator to set to "Null" (NoData) the raster cells of Raster 1 that coincide (overlap) with cells in Raster 2.

Please see images:

Raster 1 in red
Raster 2 in blue

The areas in red that coincide with the areas in blue should become "Null". Using ArcView10

Many thanks

[ATTACH=CONFIG]30569[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
RamB
by
Occasional Contributor III
Hi,

lets say R1 = red raster, R2 = blue raster , do following two steps


1>> OutRaster = Raster("R1") & Raster("R2")

2>> Final_output = SetNull(OutRaster < 0, OutRaster)

View solution in original post

0 Kudos
2 Replies
RamB
by
Occasional Contributor III
Hi,

lets say R1 = red raster, R2 = blue raster , do following two steps


1>> OutRaster = Raster("R1") & Raster("R2")

2>> Final_output = SetNull(OutRaster < 0, OutRaster)
0 Kudos
anTonialcaraz
Occasional Contributor II
Thanks!. That was useful.
0 Kudos