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

Home » Public Forums » archive » Structures and arrays of structures
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: Structures and arrays of structures [message #93822 is a reply to message #93821] Fri, 28 October 2016 06:54 Go to previous messageGo to previous message
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
Thanks

That's what I tried initially but didn't seem to work. It came up with an error that structure_name__Define was not defined.

On Friday, October 28, 2016 at 1:59:54 PM UTC+1, Matthew Argall wrote:
> To create an array of structures, use the replicate function:
>
> IDL> struct = {a: 0.0, b: 0.0}
> IDL> struct_arr = replicate(struct, 100)
> IDL>
> IDL>
> IDL> help, struct_arr
> STRUCT_ARR STRUCT = -> <Anonymous> Array[100]
> IDL>
> IDL> help, struct_arr[0]
> ** Structure <11a1608>, 2 tags, length=8, data length=8, refs=3:
> A FLOAT 0.00000
> B FLOAT 0.00000
> IDL> help, struct_arr.a
> <Expression> FLOAT = Array[100]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Smoothing Spline -- any existing efficient routines?
Next Topic: Technique to find maximum in 100x100 element moving box

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

Current Time: Wed Oct 08 15:56:36 PDT 2025

Total time taken to generate the page: 0.00426 seconds