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

Home » Public Forums » archive » Merits of different ways of 'extending' arrays
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: Merits of different ways of 'extending' arrays [message #85731 is a reply to message #85730] Thu, 29 August 2013 10:13 Go to previous messageGo to previous message
Andy Sayer is currently offline  Andy Sayer
Messages: 127
Registered: February 2009
Senior Member
Thanks; some of our machines are on IDL 7.1.1. though so I don't think we can use lists for code portability. :)

Andy

On Thursday, August 29, 2013 1:11:25 PM UTC-4, Chris Torrence wrote:
> Actually, if you use lists, then you can add each individual chunk of data to each list, and then use ToArray() with the DIMENSION keyword. For example:
>
>
>
> l = list(findgen(20))
>
> l.add, findgen(20) + 20
>
> help, l.ToArray(DIM=1)
>
> <Expression> FLOAT = Array[40]
>
>
>
> This will be both the fastest way and will use the least memory.
>
>
>
> Cheers,
>
> Chris
>
> ExelisVIS
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL X11 forwarding segmentation fault
Next Topic: defining structure after ascii template

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

Current Time: Sat Oct 11 06:34:41 PDT 2025

Total time taken to generate the page: 0.08241 seconds