Re: streamlines over contour without iVector [message #64137] |
Wed, 03 December 2008 13:10 |
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
|
|
|