Select to view content in your preferred language

# SET NULL VALUES WITH CONDITIONAL STATEMENT

1718
2
01-16-2014 05:50 AM
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.

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]
Tags (3)
1 Solution

Accepted Solutions
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)
2 Replies
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)
Occasional Contributor II
Thanks!. That was useful.