* Joseph Kariuki <joeh...@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
elsewhere.

Nikos

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*
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to