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

Home » Public Forums » archive » Re: How color my wind vectors?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How color my wind vectors? [message #41143] Wed, 29 September 2004 11:57 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Ce" <cecilik@yahoo.com> wrote in message news:5af4d059.0409290051.593c57e1@posting.google.com...
> Thanks, I'm trying velovect_color.pro and finally my vectors are
> coloured.
> I've another question about my coloured vectors:
> I run velovect_color with colortable 39 (rainbow+white) so wind low-->
> blue tonality wid high --> red.
> My vectors are colored with red tonality, but the velocity is very
> low. Where am I wrong? How do I obtain this colortable?
> Sorry but I'm beginner about IDL.
> Thanks a lot for you help.

Not sure what the problem is exactly, but I guess that the problem is
that the example code I sent scales the velocity from 0 to 255
(which are your color table indexes) so that color=255 (red) is the
maximum value of your velocities, regardless of what that velocity's
numerical value is.
If you want to have a certain scale (i.e. 0 m/s = blue and
100 m/s = red) then just scale the velocities in that way.
(i.e. speed = speed/100*255 or something like that, instead
of speed = speed/max(speed)*255)

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: relocation error: R_SPARC_WDISP30
Next Topic: Re: Hyperthreading and IDL?

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

Current Time: Fri Oct 10 13:13:57 PDT 2025

Total time taken to generate the page: 0.56185 seconds