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

Home » Public Forums » archive » Re: streamlines over contour without iVector
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: streamlines over contour without iVector [message #64137] Wed, 03 December 2008 13:10
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Dec 3, 3:07 am, "EMV" <pilou...@msn.com> wrote:
> I would like to overplot streamlines of (u_vel,v_vel) on a contour of
> another variable without using the iVector,u_vel,v_vel,/streamlines.
> Is there a way to do this ?

The builtin IDL library doesn't do much with vector fields. VEL is the
closest for what you need, but doesn't overplot. I have a routine
VIS_VEL that can do this:

http://michaelgalloy.com/wp-content/uploads/2008/11/vis_vel. pro

For instance:

IDL> restore, filepath('globalwinds.dat', subdir=['examples','data'])
IDL> contour, u, x, y, xstyle=1,
ystyle=1
IDL> device, decomposed=0
IDL> vis_vel, u, v, x, y, /overplot,
nvecs=500
IDL> contour, u, x, y, xstyle=1,
ystyle=1
IDL> loadct, 3, /silent
IDL> vis_vel, u, v, x, y, /overplot, nvecs=500

This should produce:

http://michaelgalloy.com/wp-content/uploads/2008/11/vis_vel. png

You will need VIS_RGB2INDEX to use VIS_VEL:

http://michaelgalloy.com/wp-content/uploads/2008/11/vis_rgb2 index.pro

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Associate Research Scientist
[Message index]
 
Read Message
Previous Topic: Bug in N_PARAMS?
Next Topic: Obtain Pixel values in ENVI and report those to IDL

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

Current Time: Fri Oct 10 01:40:40 PDT 2025

Total time taken to generate the page: 0.71854 seconds