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

Home » Public Forums » archive » Dealing with list created by STRSPLIT?
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: Dealing with list created by STRSPLIT? [message #76355 is a reply to message #76241] Tue, 24 May 2011 11:39 Go to previous messageGo to previous message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
On May 23, 3:54 pm, Chris Torrence <gorth...@gmail.com> wrote:
>> On May 20, 2:46 pm, Barry Lesht <ble...@gmail.com> wrote:
>
>>> Thanks, David.  I'll see if Chris replies again and in the meantime
>>> install 8.1.
>
>>> Regards, Barry
>
> Okay, in IDL 8.0.1, the List::ToArray() only worked if your List
> contained scalars. In IDL 8.1 it now works for lists that contain
> array elements, as long each array has the same number of elements.
>
> So, once you upgrade to IDL 8.1 you should be fine.
>
> Cheers,
> Chris

Thanks very much, all. I did install 8.1 a few days ago, but got
distracted from this problem by another project. Here is what happens
now (success!).

IDL> help, splitname
SPLITNAME LIST <ID=22 NELEMENTS=804>
IDL> help, splitname[0]
<Expression> STRING = Array[7]
IDL> newarray=splitname.ToArray()
IDL> help, newarray
NEWARRAY STRING = Array[804, 7]

Which is what I was originally hoping for. I really appreciate your
suggestions and help.

Barry
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: solving non linear equation
Next Topic: FINDGEN function - Question

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

Current Time: Wed Oct 08 18:59:36 PDT 2025

Total time taken to generate the page: 0.00411 seconds