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

Home » Public Forums » archive » Re: SAVE again
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: SAVE again [message #71113 is a reply to message #71022] Wed, 26 May 2010 01:45 Go to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
pp wrote:
> Why don't you put all that stuff into a single array?

The original poster did not give any specifics, but the usual
way a beginning IDL programmer end up with lots of variables
is when when he has arrays of differents data types and/or
different sizes. One way of imposing some kind of structure
on them is to put the variables into a structure. This is a
good way to group together a set of variables that each describe
a different aspect of some object (like name, position, color...)
Then you have the dilemma of using an array of structs or a
struct of arrays.

The other way is using an array of pointers to the various arrays,
like alldata = PTRARR( numarr), then alldata[0] = PTR_NEW( v1) etc.
I use this a lot when I have a list of data files to read, and the
data arrays in the files do not all have the same dimensions.


chl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: rotate tickname and titles
Next Topic: Re: Matching data in different time resolution

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

Current Time: Wed Oct 08 19:21:44 PDT 2025

Total time taken to generate the page: 0.00428 seconds