[GRASS-user] Using a variable inside GRASS commands with Python code/ grass.mapcalc
Helmut Kudrnovsky
hellik at web.de
Tue Jan 8 08:15:29 PST 2013
>grass.mapcalc("viewshed_cum = viewshed + viewshed_cum", overwrite = True,
quiet = True)
>
>It seems that expressions like sum = c + sum does not work inside
grass.mapcalc.Is there any alternative or other way around to get this done?
I am using GRASS 7 in Windows 7.
in the MS windows operating system, opened files can't be overwritten (a
operating system feature), therefore sum = c + sum isn't work in windows.
and AFAIK don't assume that it's always working correctly in linux.
-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Re-Using-a-variable-inside-GRASS-commands-with-Python-code-grass-mapcalc-tp5026161p5026223.html
Sent from the Grass - Users mailing list archive at Nabble.com.
More information about the grass-user
mailing list