I have shared a gist on pygrass landsat processing. Error importing Mapset module which is under Pygrass>gis library. How can I import the module so as to run i.group without error?
The gist on github landsatprocessing_gist
···
Kind Regards,
Joseph Kariuki
Geospatial Engineer | GIS / Web Developer
On Fri, Apr 28, 2017 at 10:30 AM, Joseph Kariuki <joehene@gmail.com> wrote:
I have shared a gist on pygrass landsat processing. Error importing Mapset
module which is under Pygrass>gis library. How can I import the module so as
to run i.group without error?
The gist on github landsatprocessing_gist
https://gist.github.com/joehene/9225cff545776abdd1e4a934a3f6c11e
You need to add to use separator is "comma" to the g.list part in
order to provide i.group with a comma separated list of maps.
Example:
i.group group=vis_bands subgroup=vis_bands
input=lsat7_2000_10,lsat7_2000_20,lsat7_2000_30
Markus
--
Markus Neteler, PhD
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog
This is the exact error I am getting from running the script
Traceback (most recent call last):
File “/home/hempire/PycharmProjects/GRASSproject/landsatProcessing.py”, line 157, in
from grass.pygrass.gis import Mapset
File “/usr/local/grass-7.2.1svn/etc/python/grass/pygrass/gis/init.py”, line 13, in
import grass.lib.gis as libgis
File “/usr/local/grass-7.2.1svn/etc/python/grass/lib/gis.py”, line 23, in
_libs[“grass_gis.7.2.1svn”] = load_library(“grass_gis.7.2.1svn”)
File “/usr/local/grass-7.2.1svn/etc/python/grass/lib/ctypes_loader.py”, line 62, in load_library
return self.load(path)
File “/usr/local/grass-7.2.1svn/etc/python/grass/lib/ctypes_loader.py”, line 78, in load
raise ImportError(e)
ImportError: libgrass_datetime.7.2.1svn.so: cannot open shared object file: No such file or directory
···
On Mon, May 1, 2017 at 12:30 PM, Markus Neteler <neteler@osgeo.org> wrote:
On Fri, Apr 28, 2017 at 10:30 AM, Joseph Kariuki <joehene@gmail.com> wrote:
I have shared a gist on pygrass landsat processing. Error importing Mapset
module which is under Pygrass>gis library. How can I import the module so as
to run i.group without error?
The gist on github landsatprocessing_gist
https://gist.github.com/joehene/9225cff545776abdd1e4a934a3f6c11e
You need to add to use separator is “comma” to the g.list part in
order to provide i.group with a comma separated list of maps.
Example:
i.group group=vis_bands subgroup=vis_bands
input=lsat7_2000_10,lsat7_2000_20,lsat7_2000_30
Markus
–
Markus Neteler, PhD
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog
Kind Regards,
Joseph Kariuki
Geospatial Engineer | GIS / Web Developer
ImportError: libgrass_datetime.7.2.1svn.so: cannot open shared >object file:
No such file or directory
=> libgrass_datetime.7.2.1svn.so
- Is GRASS compilation ok?
- Does this file exist?
- Can this file be found (e.g. in path)?
-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-importing-Mapset-module-tp5318705p5319052.html
Sent from the Grass - Users mailing list archive at Nabble.com.
I have managed to group the raster bands following your command. And removed the Mapset import as it is redundant for there is a Mapset defined already. Thanks Helmut
···
On Tue, May 2, 2017 at 2:00 PM, Helmut Kudrnovsky <hellik@web.de> wrote:
ImportError: libgrass_datetime.7.2.1svn.so: cannot open shared >object file:
No such file or directory
=> libgrass_datetime.7.2.1svn.so
- Is GRASS compilation ok?
- Does this file exist?
- Can this file be found (e.g. in path)?
best regards
Helmut
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-importing-Mapset-module-tp5318705p5319052.html
Sent from the Grass - Users mailing list archive at Nabble.com.
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
Kind Regards,
Joseph Kariuki
Geospatial Engineer | GIS / Web Developer