[Qgis-user] Raster calculator difference evaluation

Davide Di Mauro davide.dimauro at alluvium.com.au
Sun Oct 3 07:36:02 PDT 2021


Hi all,
I have two rasters.
I need to output cells of one raster that are not present in the other. How would I go in order to achieve that using the raster calculator (i.e. avoiding Python)?
My logic so far is:
if A - B = A then output cells from A deriving from that evaluation and NoData everywhere else.
The problem is that in the raster calculator I can only evaluate the subtraction and the equality does not evaluate in the same way of the subtraction, even if computed in a different instance.
Is there a secret ingredient? Can my logic be rewritten differently? or am I way off?

Cheers
Davide

Davide Di Mauro | Alluvium Consulting Australia
GIS Specialist & Flood Modeller
M  0422 634 107
E  davide.dimauro at alluvium.com.au<mailto:davide.dimauro at alluvium.com.au>
www.alluvium.com.au<http://www.alluvium.com.au/> | Suite 12 - 36 Agnes St, Fortitude Valley - 4006| LinkedIn<http://www.linkedin.com/company/alluvium-consulting>

[cid:image001.jpg at 01D7B8B3.7580C8B0]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20211003/10dc4b0a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 33908 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20211003/10dc4b0a/attachment-0001.jpg>


More information about the Qgis-user mailing list