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

Home » Public Forums » archive » Re: how to draw streamline
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 to draw streamline [message #59186 is a reply to message #59141] Fri, 07 March 2008 05:55 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<92bef8cb-bd54-48b7-b54c-2ff9f4f75bf7@s8g2000prg.googlegroups.com>,
wenfang_zhao@hotmail.com wrote:

> Hi,all
> I want to draw the wind streamline map,and I try many methods
> described in the forum, but some are wind vectors not the streamline,
> which is the serial contour line with arrow on the contour plot.
>
> some one ever mentioned that there was a script sample on the web site
> http://www.metvis.com.au/idl/
> but i can't get access to it.
>
> so if there anybody who can load that web site and give a copy of both
> the script and the streamline image for me?
>
> I will appreciate your help!
>
> wenfang

Here is a sample code to plot 2-D streamlines using VEL.

By default VEL chooses the initial points randomly, but the
source code is available if you want to change that.

Ken Bowman



PRO STREAMLINE_DEMO

n = 50
x = FINDGEN(n)/(n-1)
y = FINDGEN(n)/(n-1)

xx = REBIN(x, n, n)
yy = REBIN(REFORM(y, 1, n), n, n)

u = -SIN(!PI*xx)*COS(!PI*yy)
v = COS(!PI*xx)*SIN(!PI*yy)

VEL, u, v, NVECS = 100, NSTEPS = 100, length = 0.5

END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Interactive Image Locations and Values
Next Topic: Re: Writing DICOM-Files

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

Current Time: Sun Oct 12 01:09:42 PDT 2025

Total time taken to generate the page: 1.20066 seconds