2.2.63. Raster calculator (GRASS)

The tool allows calculations with single band rasters. The tool is based on r.mapcalc.

Input:

  • Single band GDAL supported raster, e.g. GeoTIFF. Add at least one raster file (to the “A” field). You can upload up to 8 raster files.

    • A – obligatory field.

    • B – optional field.

    • C – optional field.

    • D – optional field.

    • E – optional field.

    • F – optional field.

    • G – optional field.

    • H – optional field.

  • Expression – obligatory field. Use arithmetic (+, -, /, * etc.) or logical (>, == etc.) operators, as well as functions (``log(x), if(x) `` etc.) to build an expression. The whole list is available here. Variables (rasters) should be specified as A, B, C etc. An example of expression: (A+B)/C

Output:

  • GeoTIFF file with the result of the calculation.

Launch the tool: https://toolbox.nextgis.com/t/r_mapcalc

Try it out using our sample:

Download input dataset to test the instrument. Step-by-step instructions included.

Get the output to additionally check the results.