[GRASS-user] Getting rows,cols of a region in a script

Martin Landa landa.martin at gmail.com
Mon May 4 12:48:38 EDT 2009


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

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-user mailing list