[GRASSLIST:5390] r.mapcalc neighbourhood modifier

Paul Kelly paul-grass at stjohnspoint.co.uk
Mon Jan 27 17:32:09 EST 2003


I was wondering is it not possible to specify a variable in the
neighbourhood modifier [] in r.mapcalc. E.g. I can write map[2,-1] but if
I write something like map[offsetrow,offsetcolumn] I get:
parse error, unexpected `VARNAME', expecting `INTEGER' or `'-''
Parse error
Is there a good reason for this / would it be possible to change it, or
does anybody know a workaround for specifying the contents of any
arbitrary cell using variables?

Thanks in advance for any ideas

Paul




More information about the grass-user mailing list