[GRASS-dev] wxgui internal commands outputting to terminal in GRASS 7

Any wxgui action causes a lot of output to the terminal in the current svn version of GRASS 7. Here is an example from adding a raster and a vector to the layer manager.

GRASS 7.0.svn (Spearfish60_test):~ > D1/5: grass.script.core.start_command(): g.pnmcomp opacity=1.0 mask=/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmpTJy7BW.pgm height=546 width=798 background=255:255:255 input=/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmpTJy7BW.ppm output=/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmp0Ed5XZ.ppm
D1/5: grass.script.core.start_command(): g.findfile -n file=MASK element=cell
GRASS 7.0.svn (Spearfish60_test):~ > D1/5: grass.script.core.start_command(): r.in.gdal --q -f
D1/5: grass.script.core.start_command(): v.in.ogr --q -f
D2/5: G__read_Cell_head
D2/5: G__read_Cell_head_array
D3/5: region item: proj: 1
D3/5: region item: zone: 13
D3/5: region item: north: 4928000
D3/5: region item: south: 4914020
D3/5: region item: east: 609000
D3/5: region item: west: 590010
D3/5: region item: cols: 633
D3/5: region item: rows: 466
D3/5: region item: e-w resol: 30
D3/5: region item: n-s resol: 30
D3/5: region item: top: 1
D3/5: region item: bottom: 0
D3/5: region item: cols3: 633
D3/5: region item: rows3: 466
D3/5: region item: depths: 1
D3/5: region item: e-w resol3: 30
D3/5: region item: n-s resol3: 30
D3/5: region item: t-b resol: 1
D1/5: grass.script.core.start_command(): d.rast --q map=elevation.dem@PERMANENT
D1/5: grass.script.core.start_command(): g.pnmcomp opacity=1.0 mask=/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmpTJy7BW.pgm height=546 width=798 background=255:255:255 input=/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmpTJy7BW.ppm output=/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmp0Ed5XZ.ppm
D1/5: grass.script.core.start_command(): g.findfile -n file=MASK element=cell
D1/5: grass.script.core.start_command(): g.gisenv -n
D1/5: grass.script.core.start_command(): g.mapsets --q -p fs=newline
D1/5: grass.script.core.start_command(): g.mlist -m type=vect
D1/5: grass.script.core.start_command(): v.db.connect -g map=archsites@PERMANENT fs=;
D1/5: grass.script.core.start_command(): db.describe -c table=archsites2 driver=dbf database=/Users/Shared/grassdata/Spearfish60_test/PERMANENT/dbf/
D2/5: dbDbmscap(): opendir [/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/driver/db/]
D2/5: dbDbmscap(): opendir [/Applications/GRASS/GRASS-7.0.app/Contents/MacOS/driver/db/]
D2/5: DBF: db__driver_open_database() name = '/Users/Shared/grassdata/Spearfish60_test/PERMANENT/dbf/'
D2/5: db.name<http://db.name> = /Users/Shared/grassdata/Spearfish60_test/PERMANENT/dbf/
D2/5: add_table(): table = alldist name = alldist.dbf
D2/5: add_table(): table = archsites2 name = archsites2.dbf
D2/5: add_table(): table = bldg_2D name = bldg_2D.dbf
D2/5: add_table(): table = bldg_2D2 name = bldg_2D2.dbf
D2/5: add_table(): table = bugsites name = bugsites.dbf
D2/5: add_table(): table = contours100m name = contours100m.dbf
D2/5: add_table(): table = contours20m name = contours20m.dbf
D2/5: add_table(): table = contours50m name = contours50m.dbf
D2/5: add_table(): table = delete1 name = delete1.dbf
D2/5: add_table(): table = delete2 name = delete2.dbf
D2/5: add_table(): table = delete3 name = delete3.dbf
D2/5: add_table(): table = delete4 name = delete4.dbf
D2/5: add_table(): table = delete_streams name = delete_streams.dbf
D2/5: add_table(): table = delete_streams2 name = delete_streams2.dbf
D2/5: add_table(): table = delete_streams3 name = delete_streams3.dbf
D2/5: add_table(): table = deleteme name = deleteme.dbf
D2/5: add_table(): table = elev_pts100 name = elev_pts100.dbf
D2/5: add_table(): table = elev_pts1000 name = elev_pts1000.dbf
D2/5: add_table(): table = elev_pts1000_3D name = elev_pts1000_3D.dbf
D2/5: add_table(): table = elev_pts100_3D name = elev_pts100_3D.dbf
D2/5: add_table(): table = elev_pts500 name = elev_pts500.dbf
D2/5: add_table(): table = elev_pts500_3D name = elev_pts500_3D.dbf
D2/5: add_table(): table = Elkhorn_Peak_site name = Elkhorn_Peak_site.dbf
D2/5: add_table(): table = fields name = fields.dbf
D2/5: add_table(): table = interstates name = interstates.dbf
D2/5: add_table(): table = myarchsites name = myarchsites.dbf
D2/5: add_table(): table = road_boundary name = road_boundary.dbf
D2/5: add_table(): table = roads name = roads.dbf
D2/5: add_table(): table = sites246 name = sites246.dbf
D2/5: add_table(): table = soils name = soils.dbf
D2/5: add_table(): table = streams name = streams.dbf
D2/5: add_table(): table = test name = test.dbf
D2/5: add_table(): table = vecttmp_fillnulls_15268 name = vecttmp_fillnulls_15268.dbf
D2/5: find_table(): table = archsites2
D2/5: ? alldist
D2/5: ? archsites2
D2/5: load_table_head(): tab = 1, /Users/Shared/grassdata/Spearfish60_test/PERMANENT/dbf//archsites2.dbf
D2/5: ncols = 10
D2/5: DBFFieldType 1
D3/5: add_column(): tab = 1, type = 2, name = cat, width = 11, decimals = 0
D2/5: DBFFieldType 0
D3/5: add_column(): tab = 1, type = 1, name = name, width = 30, decimals = 0
D2/5: DBFFieldType 1
D3/5: add_column(): tab = 1, type = 2, name = age_num, width = 21, decimals = 0
D2/5: DBFFieldType 0
D3/5: add_column(): tab = 1, type = 1, name = age_text, width = 50, decimals = 0
D2/5: DBFFieldType 2
D3/5: add_column(): tab = 1, type = 3, name = size, width = 22, decimals = 3
D2/5: DBFFieldType 1
D3/5: add_column(): tab = 1, type = 2, name = type_code, width = 11, decimals = 0
D2/5: DBFFieldType 0
D3/5: add_column(): tab = 1, type = 1, name = type_name, width = 50, decimals = 0
D2/5: DBFFieldType 2
D3/5: add_column(): tab = 1, type = 3, name = water_dist, width = 20, decimals = 6
D2/5: DBFFieldType 2
D3/5: add_column(): tab = 1, type = 3, name = slope, width = 20, decimals = 6
D2/5: DBFFieldType 2
D3/5: add_column(): tab = 1, type = 3, name = aspect, width = 20, decimals = 6
D3/5: SQL statement parsed successfully: select * from archsites2
D2/5: find_table(): table = archsites2
D2/5: ? alldist
D2/5: ? archsites2
D2/5: load_table_head(): tab = 1, /Users/Shared/grassdata/Spearfish60_test/PERMANENT/dbf//archsites2.dbf
D3/5: Doing SQL command <4> on DBF table... (see include/sqlp.h)
D2/5: SELECT
D2/5: sel(): tab = 1
D2/5: load_table(): tab = 1
D2/5: ncols = 10 nrows = 25
D2/5: load_table_head(): tab = 1, /Users/Shared/grassdata/Spearfish60_test/PERMANENT/dbf//archsites2.dbf
D2/5: save_table 0
D2/5: save_table 1
D2/5: save_table 2
D2/5: save_table 3
D2/5: save_table 4
D2/5: save_table 5
D2/5: save_table 6
D2/5: save_table 7
D2/5: save_table 8
D2/5: save_table 9
D2/5: save_table 10
D2/5: save_table 11
D2/5: save_table 12
D2/5: save_table 13
D2/5: save_table 14
D2/5: save_table 15
D2/5: save_table 16
D2/5: save_table 17
D2/5: save_table 18
D2/5: save_table 19
D2/5: save_table 20
D2/5: save_table 21
D2/5: save_table 22
D2/5: save_table 23
D2/5: save_table 24
D2/5: save_table 25
D2/5: save_table 26
D2/5: save_table 27
D2/5: save_table 28
D2/5: save_table 29
D2/5: save_table 30
D2/5: save_table 31
D2/5: save_table 32
D1/5: grass.script.core.start_command(): v.db.connect --q -g map=archsites@PERMANENT fs=|
D1/5: grass.script.core.start_command(): v.db.connect --q -g map=archsites@PERMANENT fs=|
D1/5: grass.script.core.start_command(): d.rast --q map=elevation.dem@PERMANENT
D1/5: grass.script.core.start_command(): d.vect --q map=archsites@PERMANENT layer=-1 type=point,line,boundary,area,face
D1/5: grass.script.core.start_command(): g.pnmcomp opacity=1.0,1.0 mask=/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmpTJy7BW.pgm,/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmpaoS8Mi.pgm height=546 width=798 background=255:255:255 input=/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmpTJy7BW.ppm,/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmpaoS8Mi.ppm output=/var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-/tmp0Ed5XZ.ppm
D1/5: grass.script.core.start_command(): g.findfile -n file=MASK element=cell

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

Hi,

2011/6/30 Michael Barton <Michael.Barton@asu.edu>:

Any wxgui action causes a lot of output to the terminal in the current svn version of GRASS 7. Here is an example from adding a raster and a vector to the layer manager.

probably you have debug level enabled?

g.gisenv get=DEBUG

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Michael wrote:

Any wxgui action causes a lot of
output to the terminal in the current svn version of GRASS
7. Here is an example from adding a raster and a vector to
the layer manager.

D1/5:

...

what goes `g.gisenv` say about the GRASS_DEBUG level? Is it set
to 0? (aka debug messages off)

H

2011/7/1 Hamish <hamish_b@yahoo.com>:

what goes `g.gisenv` say about the GRASS_DEBUG level? Is it set
to 0? (aka debug messages off)

it should be `DEBUG` not `GRASS_DEBUG`, right?

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hamish:

> what goes `g.gisenv` say about the GRASS_DEBUG level?
> Is it set to 0? (aka debug messages off)

Martin"

it should be `DEBUG` not `GRASS_DEBUG`, right?

right.

H

Michael Barton <Michael.Barton <at> asu.edu> writes:

Any wxgui action causes a lot of output to the terminal in the current svn

version of GRASS 7. Here is an

example from adding a raster and a vector to the layer manager.

With a just updated svn trunk tree, I get lots of

GUI D4/5: BufferedWindow.OnPaint(): redrawAll=True

and

GUI D3/5: LayerTree().AddLayer(): ltype=vector
GUI D3/5: Map.GetListOfLayers(): numberof=0
GUI D3/5: Layer.__init__(): type=vector, cmd='', name=None, active=1, opacity=1,
hidden=0
GUI D3/5: Map.AddLayer(): layer=None
GUI D3/5: LayerTree.PropertiesDialog(): ltype=vector

etc

GRASS 7.0.svn (nc_spm_06):~ > g.gisenv get=WX_DEBUG
0

and

GRASS 7.0.svn (nc_spm_06):~ > g.gisenv get=DEBUG
GRASS 7.0.svn (nc_spm_06):~ >

i.e. both are unset or set to 0 (I tried both settings without any differences
in results).

Moritz