[GRASSLIST:5920] Re: strange d.histogram mess-up and a question

Glynn Clements glynn.clements at virgin.net
Sun Mar 30 15:36:46 EST 2003


Andrew wrote:

> Symptoms: Invoke d.histogram with a selected monitor window set to the
> approriate region and STDOUT echoes
> "r.stats: nn%" where nn is the incremented percentage complete. When r.stats
> reaches 100% the next line reads "segmentation fault" and nothing is
> displayed in the monitor window.

I suspect that tracking this down would require either the use of a
debugger or a lot of trial-and-error.

> Unrelated question: What rules are applied to set the defaultcolor palette
> to a raster image? I would like to know if the yellow->blue->red palette set
> by default uses percentage of full scale, standard deviations or some other
> approach to setting the color scale.

The assignment is linear (percentage of full scale). IOW:

	k = (x - min) / (max - min)

with k = 0 -> yellow and k = 1 -> red.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list