comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » colour coded shaded relief DEM
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
colour coded shaded relief DEM [message #4740] Fri, 14 July 1995 00:00
Bob Janssen is currently offline  Bob Janssen
Messages: 2
Registered: July 1995
Junior Member
l.s.

I intend to produce a colour coded shaded relief DEM. The procedure
would be as follows:

dem=bytarr(x,x)
(1) apply a colour lookup table appropiate for representing topography
(eg. from light green to dark brown).
tvlct,r,g,b & tv,dem

(2) produce a monochrome shaded relief image (using topo.pro).
shades=topo(dem)

(3) decompose dem into h, s and v channels
dem_h, dem_s and dem_v

(4) replace the value channel dem_v by shades

(5) merge channels into a single image dem_hsv

(6) convert to rgb colour space and display !

This procedure works very well for GMT.
In IDL, steps (1) and (2) are straigthforward, however, I did not
manage to program steps (3) to (6). I fear that I hit a limit
to what IDL can do. I do hope that someone out there already
did it or is willing to pay some attention to this problem.

Yours,

Bob Janssen
Institut de Physique du Globe
5, rue Rene Descartes
67084 Strasbourg Cedex, France
bob@klakmuf.u-strasbg.fr
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Are handles garbage collected?
Next Topic: Problem with annotate.pro

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 01:15:42 PDT 2025

Total time taken to generate the page: 1.12093 seconds