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

Home » Public Forums » archive » Re: Reading in data question
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: Reading in data question [message #66137 is a reply to message #66136] Fri, 17 April 2009 09:10 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
tomandwilltamu08@gmail.com writes:

> Thanks David!
>
> That was very helpful, and it works great!

Woohoo!

> I must confess that it may take me a while to understand how this
> works. I have a little experience with structures, but pieces of the
> syntax still lose me. Is there any place where I can find good
> tutorials for this sort of stuff:

Well, I just sent you one. :-)

No one has written a good tutorial on structures, and I
don't know enough about them to do it. Maybe you will
write the article once you figure this program out. ;-)

> struct = {int_1:0L, int_2:0L, float_1:0.0, str:""}

This creates a structure.

> data = Replicate({name:"", ptr:Ptr_New()}, count+1)

This replicates the structure count+1 times, thereby
creating an array of structures.

> .go (for example, I hadn't seen the '.go' command before...)

The executive command .go is how you run a compiled main-level
program. I could easily have made this main-level program an
IDL function, but I thought the explanation was clearer this
way. And it allows you to experiment with data at the IDL
command line.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Is there a command which could tell a CDF file is good or not?
Next Topic: correlation d'images

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

Current Time: Thu Oct 16 04:48:27 PDT 2025

Total time taken to generate the page: 0.08182 seconds