[GRASS-user] Local variables

Glynn Clements glynn at gclements.plus.com
Thu Sep 28 11:08:54 EDT 2006


Michael Perdue wrote:

> Just a quick question. Are the parameters of a region available as  
> variables to be called from a shell script or do I need to use  
> g.region to assign them to variables from within the script.

You need to run g.region, like:

	eval `g.region -g`

That will set the following variables:

	n s w e nsres ewres rows cols

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




More information about the grass-user mailing list