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

Home » Public Forums » archive » plotting vectors in 3D
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: plotting vectors in 3D [message #22366 is a reply to message #22277] Mon, 06 November 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
M Carmen Gonzalez (mcgonzal@uv.es) writes:

> am new in IDL programming and I'm still a bit lost, so may be some of you
> can help me...
>
> I am trying to plot the measured wind speed (2 components) by a balloon in
> vertical ascension. At each point of the trajectory i want to plot a vector
> indicating the wind direction at that point.
>
> Does someone know how could I do it?

Oh, oh. I think there are probably a number of us
would know *how* to do this. The problem comes about
in trying to convey that information to a novice
IDL programmer in 10,000 words or less. :-)

But here is a general outline. I don't think
this is a particularly difficult problem for
an experienced IDL programmer. Perhaps a couple of
days work. But for an inexperienced programmer, it
could be an excellent way to pass the darks days
of winter. :-)

First, I would do this in the object graphics
system, because at the end of the day, you will
want to rotate this plot to get the maximum
amount of information out of it. It is unlikely
to be saliently "visible" otherwise.

I would probably create some kind of an "arrow"
object for myself, which would be subclassed on
a model object for ease of rotation and scaling.
The arrow would probably consist of a cylindrical
"shaft" and some kind of an arrow "head", both
constructed from filled polygon objects that I could
shade them with one or more light objects, to give the
scene some depth.

You could look at a program like FSC_SURFCE for
information on how to create and rotate a 3D
coordinate system in object graphics, but
placing the objects in the 3D environment (if you
get this far) will be trivial.

Hope this gives you some ideas. This is, unfortunately,
a fairly advanced "beginner" project. Good luck! :-)

Cheers,

David

P.S. Another approach, which I don't think is
as likely to give good results, but which might
be faster to implement, would be to do this in
direct graphics. Set up a 3D coordinate system
with something like SCALE3D, then modify the
ARROW procedure in the lib subdirectory to
work in 3D space. (If you can live with "flat"
arrows, then this may be no more complicated than
adding a Z value to the PLOTS command that draws
the arrows.)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HDF_Browser only works when SD data available ?
Next Topic: Re: java vs. IDL

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

Current Time: Wed Oct 08 20:05:17 PDT 2025

Total time taken to generate the page: 0.00970 seconds