[GRASS-user] i.group error

Nikos Alexandris nik at nikosalexandris.net
Thu Apr 20 00:47:00 PDT 2017

* Joseph Kariuki <joehene at gmail.com> [2017-04-20 09:20:39 +0300]:

>I am trying to group raster layers using thre following
>from grass.pygrass.gis import Mapset
>m = Mapset('hempire')

Instead (did not try it!):

m = Mapset()
mapset = Mapset('hempire')

Then use the 'mapset' if/whenever required to feed the Mapset's name


>grass.run_command("i.group", group="lamu", subgroup="lamusubgrp",
>input=m.glist("raster", pattern="LE07_*"))
>However, this error is being raised
>ImportError: No module named mapset
>Am I supposed to import something else besides mapset??
>Kind Regards,
>*Joseph Kariuki*
>*Geospatial Engineer** | **GIS / Web Developer*

More information about the grass-user mailing list