[GRASS-user] GRASS pygrass - composite

Pierric de Laborie pierric.delaborie at gmail.com
Wed Feb 11 02:51:37 PST 2015


I have just tried to start the same command from the GRASS shell  (same
machine and same GRASS database and location) and it gets stuck also.

GRASS 7.0.0svn (222):~/Grass_test > r.composite red=B5 at PERMANENT
green=B4 at PERMANENT blue=B3 at PERMANENT output=mycompo
Creating color table for output raster map...
0..6..12..18..25..31..37..43..50..56..62..68..75..81..87..93..100
Writing raster map <mycompo>...
0..

Running the same command in GRASS GUI (command shell) on Windows works fine
and creates a composite in a few seconds. I am starting to think that it is
due to the way I installed Grass on this Linux machine (I used the
following link
http://grasswiki.osgeo.org/wiki/Compile_and_Install#GRASS_7_on_Debian_Wheezy
)

Thanks


2015-02-11 10:42 GMT+01:00 Pietro <peter.zamb at gmail.com>:

> Dear Pierric,
>
> On Wed, Feb 11, 2015 at 10:02 AM, Pierric de Laborie
> <pierric.delaborie at gmail.com> wrote:
> > I don't understand why Grass seems to get stuck on the following Python
> > command :
> >
> >
> r.composite(red="B4",green="B3",blue="B2",output="mycomposite",quiet=QUIET,overwrite=OVR)
>
> Have you tried to run the same command in BASH in a normal GRASS
> shell? Does it work?
>
> if yes, can you run a python interpreter inside the GRASS shell and
> see if calling the module from pygrass it works or not.
>
> Just some ideas to understand where could be the problem.
>
> All the best
>
> Pietro
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150211/99c100b6/attachment.html>


More information about the grass-user mailing list