[GRASS-user] Local variables

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.

Cheers,

Mike
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com

You need to run g.region to get them.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Michael Perdue <michael_perdue@yahoo.ca>
Date: Wed, 27 Sep 2006 17:44:02 -0600
To: GRASS Users Users <grassuser@grass.itc.it>
Subject: [GRASS-user] Local variables

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.

Cheers,

Mike
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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@gclements.plus.com>