[GRASS-user] g.remove multiple files in python
Margherita Di Leo
diregola at gmail.com
Fri Jan 25 06:54:38 PST 2013
On Fri, Jan 25, 2013 at 3:46 PM, Moritz Lennert <
mlennert at club.worldonline.be> wrote:
> On 25/01/13 15:28, Margherita Di Leo wrote:
>
>> Hi,
>>
>> how to convert something like:
>>
>> g.remove rast=`g.mlist pat=r_start* sep=,`
>>
>> in python?
>>
>
> Try with g.mremove:
>
> grass.run_command('g.mremove', rast='r_start*', flags='f')
YESS!
Thanks!
>
>
> Moritz
>
--
Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261
Tel. +39 0332 78 3600
margherita.di-leo at jrc.ec.europa.eu
Disclaimer: The views expressed are purely those of the writer and may not
in any circumstance be regarded as stating an official position of the
European Commission.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130125/6b7c8218/attachment.html>
More information about the grass-user
mailing list