Re: struct tag definitions [message #46312] |
Fri, 18 November 2005 06:44 |
enod
Messages: 41 Registered: November 2004
|
Member |
|
|
Maybe you can define the struct elements as pointer type.
Regards,
Tian
Liberum wrote:
> Hi everyone,
>
> I have a structure that I want to put in several arrays in the tag
> definition. For example:
> d = create_struct('day', tag_def)
> Now I want tag_def to be a vector of arrays where the length of the
> vector (known) can be 29 days or 30 or 31 and the size of the arrays
> (unknown) per day may vary . Now this is just a similar problem to mine
> in terms of how I want the structure to function.
> So when I am later running for loop of differing lengths, I would like
> to assign
> d.day [ i ] = indgen(x,y)
> But this doesn't work.
>
> Any idea how to do this or a better way with IDL. I know that this
> works in python, for example.
>
> Sincerely,
> Sheldon
|
|
|