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

Home » Public Forums » archive » struct tag definitions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
struct tag definitions [message #46314] Fri, 18 November 2005 05:25
Liberum is currently offline  Liberum
Messages: 48
Registered: September 2005
Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Plotting 3D spheres
Next Topic: Re: Writing Large Tiff Image file with Write_tiff

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

Current Time: Wed Oct 08 20:01:02 PDT 2025

Total time taken to generate the page: 0.00653 seconds