[GRASS-dev] pyGRASS return g.mlist() output into a python list

Anna Petrášová kratochanna at gmail.com
Mon Sep 9 05:54:36 PDT 2013


Hi,


On Mon, Sep 9, 2013 at 3:14 AM, Yann Chemin <ychemin at gmail.com> wrote:

> so the pattern returns to the CLI not to the output list "list"
>
> list=g.mlist(type='rast',pattern='interpolation_*') <= not working
>
> Any way to do it?
>

there is a function in python scripting library [1] and with pygrass you
can have a look at [2]. But Pietro can have a better idea, of course.

Anna


[1]
http://grass.osgeo.org/programming7/namespacepython_1_1script_1_1core.html#a02c49a538f1d123a07011ab14766d710
[2]
https://github.com/lucadelu/workshop-pygrass/blob/master/solutions/00_modules.py

>
> Thank you,
> Yann
>
> On 9 September 2013 12:42, Yann Chemin <ychemin at gmail.com> wrote:
> > Hi,
> >
> > I have a search pattern to use as an input list:
> >
> >
> > --
> > ----
>
>
>
> --
> ----
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130909/54231274/attachment-0001.html>


More information about the grass-dev mailing list