[GRASS-user] Find rasters by using a wildcard

Christian Schwartze christian.schwartze at uni-jena.de
Thu Feb 17 05:10:02 EST 2011

Depending on what you want to do in detail, grass.run_command(“g.mlist”, ...) may help ...


From: Pedro Roma 
Sent: Thursday, February 17, 2011 10:30 AM
To: GRASS user list 
Subject: [GRASS-user] Find rasters by using a wildcard


Currently, I'm using this expression to find a raster file (in a Python script):
grass.find_file(raster_map, element = 'cell', mapset=mapset)

My problem is that now I need to find files that are not called raster_maps but that incldues a specific string E.g. raster. So I would like to list all files with that string on its name in a defined MAPSET
How can I do that in a GRASS python script?

grass-user mailing list
grass-user at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110217/cd39a47d/attachment.html

More information about the grass-user mailing list