[GRASS-user] Checking if a raster is in current MAPSET
Monica Buescu
monicabuescu1985 at gmail.com
Fri Oct 15 10:22:37 EDT 2010
Hello Glynn
Hum it sounds interesting. How can I parameterize it? I mean, what is the
order of the parameters?
About the current mapset I'm already using it thanks :)
PS- Where can I find a list of avaliable functions in grass.python?
Monica
On Fri, Oct 15, 2010 at 2:59 PM, Glynn Clements <glynn at gclements.plus.com>wrote:
>
> Monica Buescu wrote:
>
> > I have a Py script where I do some processing. But, I want to limit it to
> > the files that are available in my current mapset. How can I do this? I
> > mean, I just to evaluate if the input is in the current/active MAPSET?
>
> grass.script.find_file() is a wrapper for g.findfile. Either check the
> returned mapset or use the mapset= argument. You can use
> grass.script.gisenv() to determine the current mapset.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101015/3e3426ae/attachment-0001.html
More information about the grass-user
mailing list