[GRASS-user] GRASS pygrass - composite

Hello,

I am using Grass 7.0 through Python and Pygrass (from outside Grass without starting it) on Linux (Debian GNU/Linux 7.6 (wheezy)) .

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)

Here is the information message coming from Grass :

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 …
0…

I checked the process and memory usage and apparently Grass uses about 100% of the CPU time and only uses half of the memory available.

Would there be a way to have more debug / warning information to understand what Grass is doing?

Thanks

Dear Pierric,

On Wed, Feb 11, 2015 at 10:02 AM, Pierric de Laborie
<pierric.delaborie@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

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@PERMANENT green=B4@PERMANENT blue=B3@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 …
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@gmail.com>:

Dear Pierric,

On Wed, Feb 11, 2015 at 10:02 AM, Pierric de Laborie
<pierric.delaborie@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

On Wed, Feb 11, 2015 at 11:51 AM, Pierric de Laborie
<pierric.delaborie@gmail.com> wrote:

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
)

you can have more info setting g.gisenv set="DEBUG=1" up to 5 I guess.

http://grasswiki.osgeo.org/wiki/GRASS_Debugging

Pietro

Dear Pietro,

I ran the same command with the highest level of verbose. Unfortunately it didn’t give much more information when blocking at the problematic step.

I also started the same command from GRASS GUI on another debian machine and it got stuck also. It is like the installation on Debian Wheezy doesn’t fully work (?)

GRASS 7.0.0svn (222):~/Grass_test > g.gisenv set=“DEBUG=5”

D1/1: G_set_program_name(): g.gisenv
D1/5: G_set_program_name(): g.gisenv
D2/5: G_option_to_separator(): key = separator → sep = ‘/’

GRASS 7.0.0svn (222):~/Grass_test > r.composite red=B5@PERMANENT green=B4@PERMANENT blue=B3@PERMANENT output=mycompo

D1/5: G_set_program_name(): r.composite
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/mycompo
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/WIND
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/WIND
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 0
D3/5: region item: east: 841215
D3/5: region item: west: 0
D3/5: region item: cols: 841215
D3/5: region item: rows: 3948015
D3/5: region item: e-w resol: 1
D3/5: region item: n-s resol: 1
D3/5: region item: top: 1.000000000000000
D3/5: region item: bottom: 0.000000000000000
D3/5: region item: cols3: 1
D3/5: region item: rows3: 1
D3/5: region item: depths: 1
D3/5: region item: e-w resol3: 1
D3/5: region item: n-s resol3: 1
D3/5: region item: t-b resol: 1
D1/5: G_find_raster2(): name=B5 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 3716085
D3/5: region item: east: 841215
D3/5: region item: west: 613785
D3/5: region item: cols: 7581
D3/5: region item: rows: 7731
D3/5: region item: e-w resol: 30
D3/5: region item: n-s resol: 30
D3/5: region item: format: 1
D3/5: region item: compressed: 2
D1/5: G_find_raster2(): name=B5 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B5
D1/5: G_find_raster2(): name=B5 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D1/5: G_find_raster2(): name=B5 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D3/5: create window mapping (841215 columns)
D1/5: G_find_raster(): name=MASK mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/MASK
D1/5: G_find_raster2(): name=B5@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B5
D1/5: G_find_raster(): name=B5@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr2/PERMANENT/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B5
D2/5: file open: read (mode = r)
D3/5: adding rule 0=0.00 0 0 0 34457=34457.00 255 255 255
D1/5: G_find_raster2(): name=B4 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 3716085
D3/5: region item: east: 841215
D3/5: region item: west: 613785
D3/5: region item: cols: 7581
D3/5: region item: rows: 7731
D3/5: region item: e-w resol: 30
D3/5: region item: n-s resol: 30
D3/5: region item: format: 1
D3/5: region item: compressed: 2
D1/5: G_find_raster2(): name=B4 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B4
D1/5: G_find_raster2(): name=B4 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D1/5: G_find_raster2(): name=B4 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D3/5: create window mapping (841215 columns)
D1/5: G_find_raster(): name=MASK mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/MASK
D1/5: G_find_raster2(): name=B4@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B4
D1/5: G_find_raster(): name=B4@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr2/PERMANENT/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B4
D2/5: file open: read (mode = r)
D3/5: adding rule 0=0.00 0 0 0 26225=26225.00 255 255 255
D1/5: G_find_raster2(): name=B3 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 3716085
D3/5: region item: east: 841215
D3/5: region item: west: 613785
D3/5: region item: cols: 7581
D3/5: region item: rows: 7731
D3/5: region item: e-w resol: 30
D3/5: region item: n-s resol: 30
D3/5: region item: format: 1
D3/5: region item: compressed: 2
D1/5: G_find_raster2(): name=B3 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B3
D1/5: G_find_raster2(): name=B3 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D1/5: G_find_raster2(): name=B3 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D3/5: create window mapping (841215 columns)
D1/5: G_find_raster(): name=MASK mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/MASK
D1/5: G_find_raster2(): name=B3@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B3
D1/5: G_find_raster(): name=B3@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr2/PERMANENT/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B3
D2/5: file open: read (mode = r)
D3/5: adding rule 0=0.00 0 0 0 23258=23258.00 255 255 255
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/GDAL
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/.tmp/climvartest/5566.0
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/.tmp/climvartest/5566.1
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 …
0…

···

2015-02-11 12:15 GMT+01:00 Pietro <peter.zamb@gmail.com>:

On Wed, Feb 11, 2015 at 11:51 AM, Pierric de Laborie
<pierric.delaborie@gmail.com> wrote:

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
)

you can have more info setting g.gisenv set=“DEBUG=1” up to 5 I guess.

http://grasswiki.osgeo.org/wiki/GRASS_Debugging

Pietro

Dear Pierric,
can you please check your region settings?

g.region -p

It should be identical to the raster maps you are trying to compose.

g.region rast=B5

Best regards
Soeren

2015-02-11 13:55 GMT+01:00 Pierric de Laborie <pierric.delaborie@gmail.com>:

Dear Pietro,

I ran the same command with the highest level of verbose. Unfortunately it
didn't give much more information when blocking at the problematic step.

I also started the same command from GRASS GUI on another debian machine and
it got stuck also. It is like the installation on Debian Wheezy doesn't
fully work (?)

GRASS 7.0.0svn (222):~/Grass_test > g.gisenv set="DEBUG=5"

D1/1: G_set_program_name(): g.gisenv
D1/5: G_set_program_name(): g.gisenv
D2/5: G_option_to_separator(): key = separator -> sep = '/'

GRASS 7.0.0svn (222):~/Grass_test > r.composite red=B5@PERMANENT
green=B4@PERMANENT blue=B3@PERMANENT output=mycompo

D1/5: G_set_program_name(): r.composite
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/mycompo
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/WIND
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/WIND
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 0
D3/5: region item: east: 841215
D3/5: region item: west: 0
D3/5: region item: cols: 841215
D3/5: region item: rows: 3948015
D3/5: region item: e-w resol: 1
D3/5: region item: n-s resol: 1
D3/5: region item: top: 1.000000000000000
D3/5: region item: bottom: 0.000000000000000
D3/5: region item: cols3: 1
D3/5: region item: rows3: 1
D3/5: region item: depths: 1
D3/5: region item: e-w resol3: 1
D3/5: region item: n-s resol3: 1
D3/5: region item: t-b resol: 1
D1/5: G_find_raster2(): name=B5 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B5
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 3716085
D3/5: region item: east: 841215
D3/5: region item: west: 613785
D3/5: region item: cols: 7581
D3/5: region item: rows: 7731
D3/5: region item: e-w resol: 30
D3/5: region item: n-s resol: 30
D3/5: region item: format: 1
D3/5: region item: compressed: 2
D1/5: G_find_raster2(): name=B5 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B5
D1/5: G_find_raster2(): name=B5 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D1/5: G_find_raster2(): name=B5 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D3/5: create window mapping (841215 columns)
D1/5: G_find_raster(): name=MASK mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/MASK
D1/5: G_find_raster2(): name=B5@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B5
D1/5: G_find_raster(): name=B5@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr2/PERMANENT/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B5
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B5
D2/5: file open: read (mode = r)
D3/5: adding rule 0=0.00 0 0 0 34457=34457.00 255 255 255
D1/5: G_find_raster2(): name=B4 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B4
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 3716085
D3/5: region item: east: 841215
D3/5: region item: west: 613785
D3/5: region item: cols: 7581
D3/5: region item: rows: 7731
D3/5: region item: e-w resol: 30
D3/5: region item: n-s resol: 30
D3/5: region item: format: 1
D3/5: region item: compressed: 2
D1/5: G_find_raster2(): name=B4 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B4
D1/5: G_find_raster2(): name=B4 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D1/5: G_find_raster2(): name=B4 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D3/5: create window mapping (841215 columns)
D1/5: G_find_raster(): name=MASK mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/MASK
D1/5: G_find_raster2(): name=B4@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B4
D1/5: G_find_raster(): name=B4@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr2/PERMANENT/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B4
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B4
D2/5: file open: read (mode = r)
D3/5: adding rule 0=0.00 0 0 0 26225=26225.00 255 255 255
D1/5: G_find_raster2(): name=B3 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: file open: read (mode = r)
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cellhd/B3
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 3716085
D3/5: region item: east: 841215
D3/5: region item: west: 613785
D3/5: region item: cols: 7581
D3/5: region item: rows: 7731
D3/5: region item: e-w resol: 30
D3/5: region item: n-s resol: 30
D3/5: region item: format: 1
D3/5: region item: compressed: 2
D1/5: G_find_raster2(): name=B3 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B3
D1/5: G_find_raster2(): name=B3 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D1/5: G_find_raster2(): name=B3 mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D3/5: create window mapping (841215 columns)
D1/5: G_find_raster(): name=MASK mapset=PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/MASK
D1/5: G_find_raster2(): name=B3@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/fcell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/g3dcell/B3
D1/5: G_find_raster(): name=B3@PERMANENT mapset=
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr2/PERMANENT/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B3
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/colr/B3
D2/5: file open: read (mode = r)
D3/5: adding rule 0=0.00 0 0 0 23258=23258.00 255 255 255
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/GDAL
D2/5: G_file_name(): path =
/tmp/grassdata/222/PERMANENT/.tmp/climvartest/5566.0
D2/5: G_file_name(): path =
/tmp/grassdata/222/PERMANENT/.tmp/climvartest/5566.1
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..

2015-02-11 12:15 GMT+01:00 Pietro <peter.zamb@gmail.com>:

On Wed, Feb 11, 2015 at 11:51 AM, Pierric de Laborie
<pierric.delaborie@gmail.com> wrote:
> 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
> )

you can have more info setting g.gisenv set="DEBUG=1" up to 5 I guess.

http://grasswiki.osgeo.org/wiki/GRASS_Debugging

Pietro

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

This one input raster is huge. 840,000x394,000 = 331,000,000,000 pixels. That’s probably not what you want. If you have your region set to match this raster (rather than the others, which seem to be normal size) then that would certainly cause the machine to lock up.

···

On 11/02/2015 14:55, Pierric de Laborie wrote:

Dear Pietro,

I ran the same command with the highest level of verbose. Unfortunately it didn’t give much more information when blocking at the problematic step.

I also started the same command from GRASS GUI on another debian machine and it got stuck also. It is like the installation on Debian Wheezy doesn’t fully work (?)

GRASS 7.0.0svn (222):~/Grass_test > g.gisenv set=“DEBUG=5”

D1/1: G_set_program_name(): g.gisenv
D1/5: G_set_program_name(): g.gisenv
D2/5: G_option_to_separator(): key = separator → sep = ‘/’

GRASS 7.0.0svn (222):~/Grass_test > r.composite red=B5@PERMANENT green=B4@PERMANENT blue=B3@PERMANENT output=mycompo

D1/5: G_set_program_name(): r.composite
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/mycompo
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/WIND
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/WIND
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 0
D3/5: region item: east: 841215
D3/5: region item: west: 0
D3/5: region item: cols: 841215
D3/5: region item: rows: 3948015
D3/5: region item: e-w resol: 1
D3/5: region item: n-s resol: 1
D3/5: region item: top: 1.000000000000000
D3/5: region item: bottom: 0.000000000000000

Thanks for your input. This was probably the reason why. Grass defaulted the region to the raster with the highest resolution.

···

2015-02-12 9:23 GMT+01:00 Micha Silver <micha@arava.co.il>:

On 11/02/2015 14:55, Pierric de Laborie wrote:

Dear Pietro,

I ran the same command with the highest level of verbose. Unfortunately it didn’t give much more information when blocking at the problematic step.

I also started the same command from GRASS GUI on another debian machine and it got stuck also. It is like the installation on Debian Wheezy doesn’t fully work (?)

GRASS 7.0.0svn (222):~/Grass_test > g.gisenv set=“DEBUG=5”

D1/1: G_set_program_name(): g.gisenv
D1/5: G_set_program_name(): g.gisenv
D2/5: G_option_to_separator(): key = separator → sep = ‘/’

GRASS 7.0.0svn (222):~/Grass_test > r.composite red=B5@PERMANENT green=B4@PERMANENT blue=B3@PERMANENT output=mycompo

D1/5: G_set_program_name(): r.composite
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/mycompo
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/WIND
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/WIND
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 0
D3/5: region item: east: 841215
D3/5: region item: west: 0
D3/5: region item: cols: 841215
D3/5: region item: rows: 3948015
D3/5: region item: e-w resol: 1
D3/5: region item: n-s resol: 1
D3/5: region item: top: 1.000000000000000
D3/5: region item: bottom: 0.000000000000000

This one input raster is huge. 840,000x394,000 = 331,000,000,000 pixels. That’s probably not what you want. If you have your region set to match this raster (rather than the others, which seem to be normal size) then that would certainly cause the machine to lock up.

I wonder if there is any idea/intention to built in kind of a check mechanism for modules applicable to raster data. This, and the Εxtent concept as well, are most frequent problems/inattentions.

Nikos

On 12.02.2015 10:33, Pierric de Laborie wrote:

Thanks for your input. This was probably the reason why. Grass defaulted
the region to the raster with the highest resolution.

2015-02-12 9:23 GMT+01:00 Micha Silver <micha@arava.co.il>:

On 11/02/2015 14:55, Pierric de Laborie wrote:

Dear Pietro,

I ran the same command with the highest level of verbose. Unfortunately
it didn't give much more information when blocking at the problematic step.

I also started the same command from GRASS GUI on another debian machine
and it got stuck also. It is like the installation on Debian Wheezy doesn't
fully work (?)

GRASS 7.0.0svn (222):~/Grass_test >* g.gisenv set="DEBUG=5" *

D1/1: G_set_program_name(): g.gisenv
D1/5: G_set_program_name(): g.gisenv
D2/5: G_option_to_separator(): key = separator -> sep = '/'

GRASS 7.0.0svn (222):~/Grass_test > * r.composite red=B5@PERMANENT
green=B4@PERMANENT blue=B3@PERMANENT output=mycompo*

D1/5: G_set_program_name(): r.composite
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/cell/mycompo
D2/5: G_file_name(): path = /tmp/grassdata/222/PERMANENT/WIND
D2/5: file open: read (mode = r)
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 32
D3/5: region item: north: 3948015
D3/5: region item: south: 0
D3/5: region item: east: 841215
D3/5: region item: west: 0
D3/5: region item: cols: 841215
D3/5: region item: rows: 3948015
D3/5: region item: e-w resol: 1
D3/5: region item: n-s resol: 1
D3/5: region item: top: 1.000000000000000
D3/5: region item: bottom: 0.000000000000000

This one input raster is huge. 840,000x394,000 = 331,000,000,000 pixels.
That's probably not what you want. If you have your region set to match
this raster (rather than the others, which seem to be normal size) then
that would certainly cause the machine to lock up.

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Nikos

On Thu, Feb 12, 2015 at 3:33 AM, Pierric de Laborie <
pierric.delaborie@gmail.com> wrote:

Grass defaulted the region to the raster with the highest resolution.

GRASS is not doing anything like that. The computation region is always set
by the user (typically using g.region) except for the case when Location or
Mapset are created and used for the first time. When Location is created
based on data, the region is set to match the data (when requested). This
applies to computational region in PERMANENT Mapset and Location's default
computational region. Alternative is, for example, a manual settings in
Location Wizard when creating new Location manually. For new Mapsets,
Location's default region is used.