Greetings
I’m doing to image processing and I have 2 questions regarding mapset management
1- How can I define an image destination mapset? I mean should I first define mapset (g.mapset) and run my functions or should I define in output the image@target_MAPSET?
2- How can I retrieve the current mapset? What is the grass modules to perform this?
Thanks for your help
Monica
Hi,
2010/6/22 Monica Buescu <monicabuescu1985@gmail.com>:
1- How can I define an image destination mapset? I mean should I first
define mapset (g.mapset) and run my functions or should I define in output
the image@target_MAPSET?
define target mapset as current using g.mapset. You have write access
only to the current mapset.
2- How can I retrieve the current mapset? What is the grass modules to
perform this?
in bash:
eval `g.gisenv`
echo $MAPSET
in python
import grass.script as grass
grass.gisenv()['MAPSET']
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa