[GRASS-user] d.histogram in grass6.2

Dear all,

We’ve implemented new grass6.2 stable version and found a difference in
d.histogram use. Is there any possibility of not deleting the whole active
monitor and display the histogram in a chosen frame in the active monitor?

Thanks in advance

Javier Álvarez Rodríguez

Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX

Paseo Bajo de la Virgen del Puerto, 3

Madrid 28007. España

+34 91 335 79 38

+34 91 335 79 22

javier.alvarez@cedex.es

Javier,

Could you explain better what you would like to do? I think what you want is quite possible, but I don’t quite understand you.

Michael


Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


From: Javier Álvarez Rodríguez javier.alvarez@cedex.es
Date: Tue, 7 Nov 2006 12:26:59 +0100
To: GRASS grassuser@grass.itc.it
Subject: [GRASS-user] d.histogram in grass6.2

Dear all,

We’ve implemented new grass6.2 stable version and found a difference in d.histogram use. Is there any possibility of not deleting the whole active monitor and display the histogram in a chosen frame in the active monitor?

Thanks in advance

Javier Álvarez Rodríguez
Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX
Paseo Bajo de la Virgen del Puerto, 3
Madrid 28007. España
+34 91 335 79 38
+34 91 335 79 22
javier.alvarez@cedex.es

Javier Álvarez Rodríguez wrote:

We've implemented new grass6.2 stable version and found a difference
in d.histogram use. Is there any possibility of not deleting the whole
active monitor and display the histogram in a chosen frame in the
active monitor?

Oh, crap. Sorry about that.

To clear the screen I had it do:
  Dclearscreen();
  D_setup(0);

when it should just be:
  D_setup(1);

fixed in CVS & backported to the 6.2 branch.

Hamish

Sorry about it. I’ll try again. When using the new d.histogram version
(grass6.2), we found that the histogram is displayed after deleting the
whole active monitor. Previous version allows composing in the active
monitor several frames to display on them whatever the user wants. New
version doesn’t let us to divide the monitor (or don’t know how to do that)
in several frames to display at the same time other information apart from
the histogram, for example, the raster map, statistics and so on. I’m afraid
I haven’t clarified it at all ...

Best regards

Javier Álvarez Rodríguez

Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX

Paseo Bajo de la Virgen del Puerto, 3

Madrid 28007. España

+34 91 335 79 38

+34 91 335 79 22

javier.alvarez@cedex.es

  _____

De: Michael Barton [mailto:michael.barton@asu.edu]
Enviado el: martes, 07 de noviembre de 2006 23:47
Para: Javier Á lvarez Rodr í guez; GRASS
Asunto: Re: [GRASS-user] d.histogram in grass6.2

Javier,

Could you explain better what you would like to do? I think what you want is
quite possible, but I don’t quite understand you.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

  _____

From: Javier Álvarez Rodríguez <javier.alvarez@cedex.es>
Date: Tue, 7 Nov 2006 12:26:59 +0100
To: GRASS <grassuser@grass.itc.it>
Subject: [GRASS-user] d.histogram in grass6.2

Dear all,

We’ve implemented new grass6.2 stable version and found a difference in
d.histogram use. Is there any possibility of not deleting the whole active
monitor and display the histogram in a chosen frame in the active monitor?

Thanks in advance

Javier Álvarez Rodríguez
Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX
Paseo Bajo de la Virgen del Puerto, 3
Madrid 28007. España
+34 91 335 79 38
+34 91 335 79 22
javier.alvarez@cedex.es

It is sounding like there are 2 different issues.

One was a bug in recent updates to d.histogram that Hamish just fixed.

The second is d.frame. D.frame doesn’t work correctly with TclTk canvases; it is really designed to work with an xmonitor display. The d.frame module still exists, but you will need to run it from the command line with an xmonitor (called with d.mon). Note that xmonitors are only available in x11 versions of GRASS (not windows native or Mac aqua).

On the other hand, the new GUI structure allows you to have a histogram displayed in one window, raster map in another, statistics in yet another, etc. Each window now has its own independent layer tree and zoom settings, that are preserved regardless of what you do with other windows. So you can get much the same results—though not in a single display window.

Michael


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

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


From: Javier Álvarez Rodríguez javier.alvarez@cedex.es
Date: Wed, 8 Nov 2006 08:13:26 +0100
To: grassuser@grass.itc.it
Subject: RE: [GRASS-user] d.histogram in grass6.2

Sorry about it. I’ll try again. When using the new d.histogram version (grass6.2), we found that the histogram is displayed after deleting the whole active monitor. Previous version allows composing in the active monitor several frames to display on them whatever the user wants. New version doesn’t let us to divide the monitor (or don’t know how to do that) in several frames to display at the same time other information apart from the histogram, for example, the raster map, statistics and so on. I’m afraid I haven’t clarified it at all …

Best regards

Javier Álvarez Rodríguez
Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX
Paseo Bajo de la Virgen del Puerto, 3
Madrid 28007. España
+34 91 335 79 38
+34 91 335 79 22
javier.alvarez@cedex.es


De: Michael Barton [mailto:michael.barton@asu.edu]
Enviado el: martes, 07 de noviembre de 2006 23:47
Para: Javier Á lvarez Rodr í guez; GRASS
Asunto: Re: [GRASS-user] d.histogram in grass6.2

Javier,

Could you explain better what you would like to do? I think what you want is quite possible, but I don’t quite understand you.

Michael


Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


From: Javier Álvarez Rodríguez javier.alvarez@cedex.es
Date: Tue, 7 Nov 2006 12:26:59 +0100
To: GRASS grassuser@grass.itc.it
Subject: [GRASS-user] d.histogram in grass6.2

Dear all,

We’ve implemented new grass6.2 stable version and found a difference in d.histogram use. Is there any possibility of not deleting the whole active monitor and display the histogram in a chosen frame in the active monitor?

Thanks in advance

Javier Álvarez Rodríguez
Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX
Paseo Bajo de la Virgen del Puerto, 3
Madrid 28007. España
+34 91 335 79 38
+34 91 335 79 22
javier.alvarez@cedex.es

Thanks a lot for your help Michael and Hamish. I think that the point I
wasn’t able to explain better was the one Hamish fixed. What we want is to
draw statistics, a raster map and the histogram in only one window. We use
d.frame and d.mon in command mode to divide the monitor and display all
these layers in the same monitor. And if I have understood well from Hamish
answer, there is nothing to do because d.histogram have been compiled to
remove frames from the active monitor and we should wait for other versions.
Am I right?

Best regards

Javier Álvarez Rodríguez

Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX

Paseo Bajo de la Virgen del Puerto, 3

Madrid 28007. España

+34 91 335 79 38

+34 91 335 79 22

javier.alvarez@cedex.es

  _____

De: Michael Barton [mailto:michael.barton@asu.edu]
Enviado el: miércoles, 08 de noviembre de 2006 15:41
Para: Javier Á lvarez Rodr í guez; grassuser@grass.itc.it
Asunto: Re: [GRASS-user] d.histogram in grass6.2

It is sounding like there are 2 different issues.

One was a bug in recent updates to d.histogram that Hamish just fixed.

The second is d.frame. D.frame doesn’t work correctly with TclTk canvases;
it is really designed to work with an xmonitor display. The d.frame module
still exists, but you will need to run it from the command line with an
xmonitor (called with d.mon). Note that xmonitors are only available in x11
versions of GRASS (not windows native or Mac aqua).

On the other hand, the new GUI structure allows you to have a histogram
displayed in one window, raster map in another, statistics in yet another,
etc. Each window now has its own independent layer tree and zoom settings,
that are preserved regardless of what you do with other windows. So you can
get much the same results—though not in a single display window.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

  _____

From: Javier Álvarez Rodríguez <javier.alvarez@cedex.es>
Date: Wed, 8 Nov 2006 08:13:26 +0100
To: <grassuser@grass.itc.it>
Subject: RE: [GRASS-user] d.histogram in grass6.2

Sorry about it. I’ll try again. When using the new d.histogram version
(grass6.2), we found that the histogram is displayed after deleting the
whole active monitor. Previous version allows composing in the active
monitor several frames to display on them whatever the user wants. New
version doesn’t let us to divide the monitor (or don’t know how to do that)
in several frames to display at the same time other information apart from
the histogram, for example, the raster map, statistics and so on. I’m afraid
I haven’t clarified it at all ...

Best regards

Javier Álvarez Rodríguez
Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX
Paseo Bajo de la Virgen del Puerto, 3
Madrid 28007. España
+34 91 335 79 38
+34 91 335 79 22
javier.alvarez@cedex.es

  _____

De: Michael Barton [mailto:michael.barton@asu.edu]
<mailto:michael.barton@asu.edu%5d>
Enviado el: martes, 07 de noviembre de 2006 23:47
Para: Javier Á lvarez Rodr í guez; GRASS
Asunto: Re: [GRASS-user] d.histogram in grass6.2

Javier,

Could you explain better what you would like to do? I think what you want is
quite possible, but I don’t quite understand you.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

  _____

From: Javier Álvarez Rodríguez <javier.alvarez@cedex.es>
Date: Tue, 7 Nov 2006 12:26:59 +0100
To: GRASS <grassuser@grass.itc.it>
Subject: [GRASS-user] d.histogram in grass6.2

Dear all,

We’ve implemented new grass6.2 stable version and found a difference in
d.histogram use. Is there any possibility of not deleting the whole active
monitor and display the histogram in a chosen frame in the active monitor?

Thanks in advance

Javier Álvarez Rodríguez
Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX
Paseo Bajo de la Virgen del Puerto, 3
Madrid 28007. España
+34 91 335 79 38
+34 91 335 79 22
javier.alvarez@cedex.es

Javier,

I have triggered the GRASS 6.2.relbranch snapshot:
http://grass.itc.it/grass62/source/snapshot/

This will become 6.2.1, so testing is welcome.
Fixed done there are listed here:
http://grass.gdf-hannover.de/wiki/GRASS_6.2_Feature_Plan#6.2.1

Markus

On Wed, Nov 08, 2006 at 05:24:25PM +0100, Javier Álvarez Rodríguez wrote:

   
   Thanks a lot for your help Michael and Hamish. I think that the point I
   wasn't able to explain better was the one Hamish fixed. What we want is to
   draw statistics, a raster map and the histogram in only one window. We use
   d.frame and d.mon in command mode to divide the monitor and display all
   these layers in the same monitor. And if I have understood well from
   Hamish answer, there is nothing to do because d.histogram have been
   compiled to remove frames from the active monitor and we should wait for
   other versions. Am I right?

   Best regards

   Javier Alvarez Rodriguez

   Area de Hidrologia del Centro de Estudios Hidrograficos del CEDEX

   Paseo Bajo de la Virgen del Puerto, 3

   Madrid 28007. Espana

   +34 91 335 79 38

   +34 91 335 79 22

   javier.alvarez@cedex.es

   --------------------------------------------------------------------------

   De: Michael Barton [mailto:michael.barton@asu.edu]
   Enviado el: miercoles, 08 de noviembre de 2006 15:41
   Para: Javier A lvarez Rodr i guez; grassuser@grass.itc.it
   Asunto: Re: [GRASS-user] d.histogram in grass6.2

   It is sounding like there are 2 different issues.

   One was a bug in recent updates to d.histogram that Hamish just fixed.

   The second is d.frame. D.frame doesn't work correctly with TclTk canvases;
   it is really designed to work with an xmonitor display. The d.frame module
   still exists, but you will need to run it from the command line with an
   xmonitor (called with d.mon). Note that xmonitors are only available in
   x11 versions of GRASS (not windows native or Mac aqua).

   On the other hand, the new GUI structure allows you to have a histogram
   displayed in one window, raster map in another, statistics in yet another,
   etc. Each window now has its own independent layer tree and zoom settings,
   that are preserved regardless of what you do with other windows. So you
   can get much the same results--though not in a single display window.

   Michael
   __________________________________________
   Michael Barton, Professor of Anthropology
   School of Human Evolution & Social Change
   Center for Social Dynamics & Complexity
   Arizona State University

   phone: 480-965-6213
   fax: 480-965-7671
   www: [1]http://www.public.asu.edu/~cmbarton

     ----------------------------------------------------------------------

   From: Javier Alvarez Rodriguez <javier.alvarez@cedex.es>
   Date: Wed, 8 Nov 2006 08:13:26 +0100
   To: <grassuser@grass.itc.it>
   Subject: RE: [GRASS-user] d.histogram in grass6.2

   Sorry about it. I'll try again. When using the new d.histogram version
   (grass6.2), we found that the histogram is displayed after deleting the
   whole active monitor. Previous version allows composing in the active
   monitor several frames to display on them whatever the user wants. New
   version doesn't let us to divide the monitor (or don't know how to do
   that) in several frames to display at the same time other information
   apart from the histogram, for example, the raster map, statistics and so
   on. I'm afraid I haven't clarified it at all ...
    
   Best regards
    
   Javier Alvarez Rodriguez
   Area de Hidrologia del Centro de Estudios Hidrograficos del CEDEX
   Paseo Bajo de la Virgen del Puerto, 3
   Madrid 28007. Espana
   +34 91 335 79 38
   +34 91 335 79 22
   javier.alvarez@cedex.es

   --------------------------------------------------------------------------

   De: Michael Barton [[2]mailto:michael.barton@asu.edu]
   Enviado el: martes, 07 de noviembre de 2006 23:47
   Para: Javier A lvarez Rodr i guez; GRASS
   Asunto: Re: [GRASS-user] d.histogram in grass6.2
   Javier,

   Could you explain better what you would like to do? I think what you want
   is quite possible, but I don't quite understand you.

   Michael
   __________________________________________
   Michael Barton, Professor of Anthropology
   School of Human Evolution & Social Change
   Center for Social Dynamics and Complexity
   Arizona State University

   phone: 480-965-6213
   fax: 480-965-7671
   www: [3]http://www.public.asu.edu/~cmbarton

     ----------------------------------------------------------------------

   From: Javier Alvarez Rodriguez <javier.alvarez@cedex.es>
   Date: Tue, 7 Nov 2006 12:26:59 +0100
   To: GRASS <grassuser@grass.itc.it>
   Subject: [GRASS-user] d.histogram in grass6.2

   Dear all,
    
   We've implemented new grass6.2 stable version and found a difference in
   d.histogram use. Is there any possibility of not deleting the whole active
   monitor and display the histogram in a chosen frame in the active monitor?
    
   Thanks in advance
    
   Javier Alvarez Rodriguez
   Area de Hidrologia del Centro de Estudios Hidrograficos del CEDEX
   Paseo Bajo de la Virgen del Puerto, 3
   Madrid 28007. Espana
   +34 91 335 79 38
   +34 91 335 79 22
   javier.alvarez@cedex.es

References

   Visible links
   1. http://www.public.asu.edu/~cmbarton
   2. mailto:michael.barton@asu.edu%5d
   3. http://www.public.asu.edu/~cmbarton

Javier Álvarez Rodríguez wrote:

Thanks a lot for your help Michael and Hamish. I think that the point
I wasn't able to explain better was the one Hamish fixed. What we want
is to draw statistics, a raster map and the histogram in only one
window. We use d.frame and d.mon in command mode to divide the monitor
and display all these layers in the same monitor.

others have answered all questions I think, so a tip:

check out the "d.frame.quarter" script from the Add-ons section of the
GRASS Wiki site. It quickly splits the xmonitor up into 4 named
quadrants.

http://grass.gdf-hannover.de/wiki/GRASS_AddOns#Display_add-ons

Hamish

Thanks Hamish,

We use similar scripts to divide the monitor in different frames. And this
is what doesn't work with new d.histogram. If I've understood, the reason is
what you stated in your previous email. Is there any possibility of using a
modified d.histogram command, without this monitor-removing-everything
option, in grass6.2 version?

Best regards

Javier Álvarez Rodríguez
Área de Hidrología del Centro de Estudios Hidrográficos del CEDEX
Paseo Bajo de la Virgen del Puerto, 3
Madrid 28007. España
+34 91 335 79 38
+34 91 335 79 22
javier.alvarez@cedex.es

-----Mensaje original-----
De: Hamish [mailto:hamish_nospam@yahoo.com]
Enviado el: jueves, 09 de noviembre de 2006 3:31
Para: Javier Álvarez Rodríguez
CC: grassuser@grass.itc.it
Asunto: Re: [GRASS-user] d.histogram in grass6.2

Javier Álvarez Rodríguez wrote:

Thanks a lot for your help Michael and Hamish. I think that the point
I wasn't able to explain better was the one Hamish fixed. What we want
is to draw statistics, a raster map and the histogram in only one
window. We use d.frame and d.mon in command mode to divide the monitor
and display all these layers in the same monitor.

others have answered all questions I think, so a tip:

check out the "d.frame.quarter" script from the Add-ons section of the
GRASS Wiki site. It quickly splits the xmonitor up into 4 named
quadrants.

http://grass.gdf-hannover.de/wiki/GRASS_AddOns#Display_add-ons

Hamish

Javier Álvarez Rodríguez wrote:

We use similar scripts to divide the monitor in different frames. And
this is what doesn't work with new d.histogram. If I've understood,
the reason is what you stated in your previous email. Is there any
possibility of using a modified d.histogram command, without this
monitor-removing-everything option, in grass6.2 version?

you need to build new binaries with the corrected source code, e.g. from
the 6.2..cvs preview snapshot:
  http://grass.itc.it/grass62/source/snapshot/

there is no "run-time" solution. you need to get/create a new version of
that program. it's easy to do the edit yourself in a text editor:

http://freegis.org/cgi-bin/viewcvs.cgi/grass6/display/d.histogram/main.c.diff?r1=2.2.4.1&r2=2.2.4.2

and then run "make"

Hamish