[GRASS-user] How to obtain list of all raster maps

Markus Neteler neteler at osgeo.org
Sat Dec 12 03:31:04 PST 2020


Hi

BHARATH RAM <br11 at iitbbs.ac.in> schrieb am Sa., 12. Dez. 2020, 12:07:

> Hello,
>
>      I have a list of raster files inside a mapset that I need to
> interpolate to a different size. I am aware of the command *g.list
> type='raster' mapset='.'*
> and its equivalent python version. But the command prints the filenames
> out on screen instead of returning it as a list (I am talking wrt python
> API).
>


Would this work for you?

https://grasswiki.osgeo.org/wiki/GRASS_Python_Scripting_Library#Interface_to_listing_maps_.28g.list.29

Best
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20201212/22999c0d/attachment-0001.html>


More information about the grass-user mailing list