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

Home » Public Forums » archive » Null terminated strings
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: Null terminated strings [message #28722 is a reply to message #28677] Wed, 09 January 2002 15:43 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Struan Gray <struan.gray@sljus.lu.se> writes:

> James Kuyper, kuyper@gscmail.gsfc.nasa.gov writes:
>
>> I'm still wonder how to best convert a null-delimited
>> list of strings into an IDL string array (it's just
>> curiousity, I don't have any immediate need for that
>> ability). My best solution so far is to convert it to a byte
>> array, find the null delimiting characters with where(), and
>> then write a loop to convert each subarray into a seperate
>> IDL string. This should work, but I'm always suspicious of
>> the efficiency of any solution for an IDL problem that
>> involves an explicit loop.
>
> </lurk>
>
> Sounds like a job for supersonic HISTOGRAM and his
> ever-eager sidekick REVERSE_INDICES.

That's a good idea, although I think you can't avoid a FOR loop. In
fact, it is my belief that by using REVERSE_INDICES to look at more
than one bin in a histogram, you are *guaranteed* to use a FOR loop or
equivalent.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: WIDGET REALIZATION BUG in 5.5 ?
Next Topic: Re: Spherical Contour Plotting

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

Current Time: Fri Oct 10 06:56:05 PDT 2025

Total time taken to generate the page: 0.00241 seconds