An example how to use OR ( | ) formula in Raster Calculator is reclassification. For example, we have 4 classes landcover (1, 2, 3, and 4). We want to change class1 and 2 become 0, on the other hand, class 3 and 4 are left as the same as previous. Here is an example how to do so.
1. Open ArcMap, Add raster data

On the picture above, there is one raster data (layer named class) with class 1 – 4
2. Run Raster Calculator in ArcToolbox
3. Do classification like the following
If 1 then 0
If 2 then 0
If 3 then 3
If 4 then 4
On the dialog we type like the following

Note that the formula involves CON and OR. Read this tutorial.

The formula above shows
“If the class value are 1 and 2, then 0, else no change”
Search :
Pages: 1 2