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

Home » Public Forums » archive » Re: list manipulation
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: list manipulation [message #78799] Sun, 18 December 2011 10:46 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Dec 18, 10:29 am, greg.a...@googlemail.com wrote:
> I tried like this, which works:
>
> IDL> b=list(a[0],a[1],a[2],/extract)
> IDL> print,b
>        1
>        2
>        3
>        2
>        3
>        4
>        5
>
> ..but in real life, 'a' contains hundreds of short arrays, so that line's impractical. The following, which I could easily make - and would expect to be equivalent - doesn't work:
>
> IDL> b=list(a[[0,1,2]],/extract)
> IDL> print,b
>        1       2       3
>        2
>        3       4       5
>
> Am I missing something obvious?
>
> cheers,
> Greg

Now it is something that sound working!!
Cheers,
Dave
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: list manipulation
Next Topic: Extending or resizing array in IDL

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

Current Time: Wed Oct 08 15:39:42 PDT 2025

Total time taken to generate the page: 0.00425 seconds