Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have two rasters with the same extent, resolution, and projection, let's say raster A & B.
What I want to do is something like this:
IF A = 3 OR A = 11 THEN A+B
How can I do such a thing with a raster calculator?
Try this syntax:
(A@1 = 3 + A@1 = 11)* A@1 + B@1
A@1 = 3
(A@1 = 3 + A@1 = 11)
A@1 = 11
0 * A + B
Required, but never shown