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

Home » Public Forums » archive » Rebin for strings
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Rebin for strings [message #70105] Thu, 11 March 2010 13:31
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
Hi all,

I'm looking for a way to expand a 1-d string array into 2-d, just like
I would use rebin for almost any other data type. For example, I'd
like to do something like this:

IDL> o = ['d','b','m','q','t']
IDL> oo = rebin(transpose(o),14,5,/sample)

But obviously that won't work. Is there a better way than something
like this (which is okay here, but for more complicated examples might
not be feasible):

IDL> tmp = execute('oo = transpose([['+strjoin(replicate('o',14),'],[')
+']]'))

Any suggestions would be helpful!

--Gray
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: queryvizier error (astronomy library)
Next Topic: HDF5 crash on macOS

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

Current Time: Thu Oct 09 21:12:24 PDT 2025

Total time taken to generate the page: 0.56048 seconds