[GRASS-user] Getting rows,cols of a region in a script
Nikos Alexandris
nikos.alexandris at felis.uni-freiburg.de
Tue Jun 23 15:11:35 EDT 2009
On Mon, 2009-05-04 at 18:48 +0200, Martin Landa wrote:
> Hi,
>
> 2009/5/4 Martin Landa <landa.martin at gmail.com>:
>
> [...]
>
> > ret = grass.read_command('g.region', flags = 'g')
> > reg = grass.parse_key_val(ret)
>
> in trunk and devbr6 a bit easier to parse command output
>
> reg = grass.read_command('g.region', flags = 'g', parse = True)
>
> Martin
>
Hi again!
I am experimenting a bit with Python so I returned in this "old" post.
Is the above command to be executed _only_ from within a script? How
about running it directly from the command line?
Nikos
More information about the grass-user
mailing list