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

Home » Public Forums » archive » Re: plot structured data
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: plot structured data [message #24075] Fri, 09 March 2001 09:09
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Dirk Burose (dirk.burose@uni-bonn.de) writes:

> perhaps this is a typical newbie question, but I just started to use the
> read_ascii function. I like to know if there is an easy way to make a plot
> out of structured data espcially surface or contour plots. I have a ascii
> data set with 15 columns. I am able to extract the structure I like with
> struct_assign but what happens next. Perhaps somenone can help me

Well...

What happens next is that you probably have to tear that
structure apart, or at least know how to access the
data in it. What you want is a 2D array that you can
send to the SURFACE or CONTOUR command. Something like
this:

SURFACE, struct.mydata, struct.my_xvector, struct.my_yvector

If you don't have a 2D array, you might have to build one
by gridding the data you do have. Hard to say, without knowing
a LOT more than you have given us to go on.

Have you thought about a good book for learning how to
use IDL? :-)

Cheers,

David

--
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
Previous Topic: plot structured data
Next Topic: Strings as variables?

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

Current Time: Wed Oct 08 18:52:33 PDT 2025

Total time taken to generate the page: 0.00715 seconds