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 #92852 is a reply to message #76355] Sun, 13 March 2016 14:43 Go to previous messageGo to previous message
Adam Erickson is currently offline  Adam Erickson
Messages: 8
Registered: July 2015
Junior Member
On Tuesday, May 24, 2011 at 8:39:30 PM UTC+2, Barry Lesht wrote:
> 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

Yes, thank you for this! I hope the issue has been addressed. Efficient indexing is a very important feature to have.

Adam
[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 11:40:53 PDT 2025

Total time taken to generate the page: 0.00483 seconds