[Qgis-user] Two different raster calculators in QGIS and negative value handling - any explanation?

Michael Dufty MDufty at mbsenvironmental.com.au
Wed Sep 7 02:43:01 PDT 2022


It appears that there are two different native raster calculator tools in QGIS
One is found in at the top of the raster menu
The other is in the processing toolbox in the raster analysis group

(Not to mention the GDAL raster calculator and SAGA raster calculator)

Can anyone explain the reason for there being two, and what the differences are?
I've been very confused by it, mainly because the one in the raster menu does not appear to handle negative values correctly.  I'd been wondering why NDVI type expressions with negatives randomly worked or not, and discovered it just depended on which raster calculator I used.
Is it expected that the one in the raster menu doesn't handle negative values correctly?  It looks like it might do calculations based on unsigned integers regardless of the input and output raster formats.

Michael Dufty

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220907/0da92e25/attachment.htm>


More information about the Qgis-user mailing list