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

Home » Public Forums » archive » 'Replicat' a string array
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: 'Replicat' a string array [message #86989 is a reply to message #86974] Thu, 19 December 2013 05:25 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Heinz Stege writes:

>
> On Wed, 18 Dec 2013 07:02:27 -0700, David Fanning wrote:
>
>> Maybe something like this:
>>
>> IDL> a = '2008-07-25T20:56' & b = '2008-07-25T21:32'
>> IDL> c = [Reform(Replicate(a, 20), 1, 20), $
>> Reform(Replicate(b,20), 1, 20)]
>> IDL> help, c
>> C STRING = Array[2, 20]
>>
> or this:
> IDL> a=['2008-07-25T20:56', '2008-07-25T21:32']
> IDL> c=a[*,intarr(100)]
> IDL> help,c
> C STRING = Array[2, 100]

OK, I just got back from cutting trees. How in God's name does *this*
work, and how did you ever stumble onto it? Strangest thing I have ever
seen in IDL, and I've seen a LOT of strange things!

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: second Y axis.
Next Topic: IDL 8.3 released

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

Current Time: Wed Oct 08 15:56:43 PDT 2025

Total time taken to generate the page: 0.00427 seconds