[GRASS-dev] Location and mapset name variables

Glynn Clements glynn at gclements.plus.com
Thu Feb 4 15:19:26 EST 2010


Pedro Roma wrote:

> So it's possible also to use in r.mapcalc expressions? That is great.
> I have tested in Bash Script If conditions and it works just fine.

r.mapcalc knows nothing about GRASS varibles, shell variables or
environment variables. However, the shell will substitute shell
variables and environment variables in double quoted strings. 
r.mapcalc just sees the end result.

> By the way, is it also possible to use g.gisenv in a Script to change MAPSET
> or LOCATION without loosing messing image processing, I mean loosing path
> the Input and output data?

I would advise against changing location/mapset in a script.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list