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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how to draw streamline [message #59141] Tue, 11 March 2008 10:25 Go to next message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
On Mar 7, 12:06 am, David Fanning <n...@dfanning.com> wrote:
> mankoff writes:
>> The thunderstorm demo has code to calculate streamlines from u,v,w.
>
> I thought so, too. But I played with it for 15 minutes
> and didn't get anything like streamlines to appear,
> so perhaps you have to be more intuitive than me to
> see them. :-)
>

I double-tap on my MacBook touchpad. I think this is a right-click? Do
it on one of the image planes and you get "Ribbons" which are
streamlines + extra information.
Re: how to draw streamline [message #59186 is a reply to message #59141] Fri, 07 March 2008 05:55 Go to previous messageGo to next 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
Re: how to draw streamline [message #59203 is a reply to message #59186] Thu, 06 March 2008 20:06 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mankoff writes:

> The thunderstorm demo has code to calculate streamlines from u,v,w.

I thought so, too. But I played with it for 15 minutes
and didn't get anything like streamlines to appear,
so perhaps you have to be more intuitive than me to
see them. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: how to draw streamline [message #59204 is a reply to message #59203] Thu, 06 March 2008 20:04 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
wenfang_zhao@hotmail.com writes:

> 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 looked over there, but I didn't see anything that
looked like streamlines. Sorry. :-(

Cheers,

DAvid
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: how to draw streamline [message #59205 is a reply to message #59204] Thu, 06 March 2008 19:56 Go to previous messageGo to next message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
On Mar 6, 10:08 pm, wenfang_z...@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 sitehttp://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

The thunderstorm demo has code to calculate streamlines from u,v,w.

-k.
Re: how to draw streamline [message #59246 is a reply to message #59186] Thu, 13 March 2008 13:32 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Mar 7, 7:55 am, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article
> < 92bef8cb-bd54-48b7-b54c-2ff9f4f75...@s8g2000prg.googlegroups .com >,
>
>
>
> wenfang_z...@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

Following on from Ken's example, you might also try,

iVector, u, v, x, y, /STREAMLINES, STREAMLINE_NSTEPS=25

-Chris
ITTVIS
Re: how to draw streamline [message #59309 is a reply to message #59246] Sun, 16 March 2008 22:22 Go to previous message
wfzhao is currently offline  wfzhao
Messages: 11
Registered: March 2008
Junior Member
On 3月14日, 上午4时32分, Chris Torrence <gorth...@gmail.com> wrote:
> On Mar 7, 7:55 am, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
>
>
>
>
>
>> In article
>> < 92bef8cb-bd54-48b7-b54c-2ff9f4f75...@s8g2000prg.googlegroups .com >,
>
>> wenfang_z...@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
>
> Following on from Ken's example, you might also try,
>
> iVector, u, v, x, y, /STREAMLINES, STREAMLINE_NSTEPS=25
>
> -Chris
> ITTVIS- 隐藏被引用文字 -
>
> - 显示引用的文字 -

thanks for all response from you.
now I am a litttle comfused, what kind of line can be called as wind
streamline?
what I want is the consecutive line with arrow, something like the
contour plot line with arrow, not the small lines with arrow,I don't
know how to describe it more clear? I have a sample image of wind
streamline ,which is what I want, but how I can put it on the forum so
all of you can have a look and understand what I mean.

I have another question, when drawing a wind streamline, so the speed
of X,Y direction will decide the final appearance of wind streamline?
I menn, if wind is strong, so the result will be the contour plot line
with arrow(long streamline,consecutive), otherwise, the result will be
the discrete lines with arrow(shorted streamline, like what is draw by
the VEL procedure)?

wenfang
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Interactive Image Locations and Values
Next Topic: Re: Writing DICOM-Files

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

Current Time: Sat Oct 11 01:51:58 PDT 2025

Total time taken to generate the page: 1.91907 seconds