Purpose of comma in r.map calc in GRASS GIS 7.4

by Samuel Gachuhi   Last Updated October 09, 2018 20:22 PM

I would like to know the purpose of a comma in r.mapcalc of GRASS GIS. Consider this exampe - r.mapcalc "noise = if(landuse96_28m==1 || landuse96_28m==2, roads_buffers, null())"

In the above example I know the statement means if landuse96_28m is equal to 1 OR landuse96_28m is equal to 2 but after this last digit I get confused as to what the comma(,) stands for as well as the one after the roads_buffers.

If someone would explain to me in a straightforward manner what the comma(,) means I will receive a breakthrough in using r.mapcalc.

Tags : grass r.mapcalc

Related Questions


Updated December 07, 2018 13:22 PM

Understanding Batch Processing in GrassGIS

Updated April 24, 2019 05:22 AM

grass GIS + spyder python script error

Updated January 23, 2018 17:22 PM

Adding GRASS module to QGIS 2.18.21

Updated August 14, 2018 16:22 PM