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

Home » Public Forums » archive » Re: struct tag definitions
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: struct tag definitions [message #46312] Fri, 18 November 2005 06:44
enod is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: Writing Large Tiff Image file with Write_tiff
Next Topic: Reading various HDF files

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

Current Time: Sat Oct 11 07:17:00 PDT 2025

Total time taken to generate the page: 0.63719 seconds