You need quotes around the _expression_:

On 06/09/2018 13:47, Vidura Dantanarayana wrote:
Hi all,
I need to create a raster file with theĀ  if(fuel_class==4,3,if(fuel_class==8,15)) _expression_. I used the following command but it result a parse error.

r.mapcalc --overwrite _expression_=1hr_moisture = if(fuel_class==4,3,if(fuel_class==8,15))
r.mapcalc --overwrite _expression_="1hr_moisture = if(fuel_class==4,3,if(fuel_class==8,15))"

Also, what happens if feul_class is not 4 and not 8??

What could be the reason for the error?

BR,
Vidura Dantanarayana.



_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
+972-523-665918

_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to