[GRASS-user] How to save raster histogram in png format from command line ?

Good day,

Is there any mogul of GRASS which will save histogram of a raster GeoTiff image in a png or jpeg file ?
As I understand, d.histogram is only displaying it, and you cannot use it in text mode.

Thank you in advance.

Andranik Hayrapetyan wrote:

Is there any mogul of GRASS which will save histogram of a raster GeoTiff
image in a png or jpeg file ?
As I understand, d.histogram is only displaying it, and you cannot use it
in text mode.

Most d.* commands can be made to generate an image by setting the
environment variable GRASS_RENDER_IMMEDIATE=TRUE. See the pngdriver
manual page for related environment variables.

--
Glynn Clements <glynn@gclements.plus.com>

Thank you very much for your suggested solution.

I did it a bit other way, but your solution helped me to find this on.
So, I did it this way

d.mon start=png output=test.png
d.histogram map=somemap

and got the histogram in test.png file.

On Mon, Nov 26, 2012 at 5:12 PM, Glynn Clements <glynn@gclements.plus.com> wrote:

GRASS_RENDER_IMMEDIATE