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

Home » Public Forums » archive » Re: Working with lists
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: Working with lists [message #84753 is a reply to message #84393] Fri, 07 June 2013 10:40 Go to previous message
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
Yes, this works for a single line '1000 1000.1515 400 40', but my dataset is actually composed by a bunch of lines like this, where the numbers actually vary. So you have something like replicate('1000 1000.1515 400 40', 10), but where the lines are not really replicates.

Thanks!

>
> The error is probably due to your version of IDL.
>
> Anyway, here is a solution without 8.0 features:
>
>
>
> s = '1000 1000.1515 400 40'
>
> array = rebin(float(strsplit(s, /extract)), 4, 10)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: points on a plot
Next Topic: Subscript by -1 HARD to Track Down

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

Current Time: Sat Nov 29 22:22:14 PST 2025

Total time taken to generate the page: 0.23788 seconds