[GRASS-dev] d.his vs. r.his

Hamish hamish_nospam at yahoo.com
Thu Oct 25 05:23:56 EDT 2007

> Hamish wrote:
> > I am trying to recreate the 'd.his brighten=' effect with r.his, but
> > with r.his along with the brightness I get extremely high contrast
> > output.

> You're forgetting the colour tables. Twice.
> First, r.mapcalc needs to use the intensities for elev.shad_relf, not
> its values.
> Second, r.his uses the intensities for elev.shad_relf_bright50, not
> its values. As you aren't setting a colour table, you get the default
> rainbow colours.
> Try this instead:
> 	r.mapcalc 'elev.shad_relf_bright50 = #elev.shad_relf * 1.5'
> 	r.colors elev.shad_relf_bright50 color=grey255
> > r.his h=elevation.dem i=elev.shad_relf_bright50 r=esr.r g=esr.g b=esr.b
> 	d.rgb r=esr.r g=esr.g b=esr.b
> It gives results similar to d.his.

Yes, right, thanks. I think I need to read a book on advanced color theory


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the grass-dev mailing list