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 #86972 is a reply to message #86971] Wed, 18 December 2013 06:02 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
zhangj.sdu@gmail.com writes:

> I have a string array representing date/time, for example, ['2008-
07-25T20:56', '2008-07-25T21:32']. Any idea to 'replicate' it into a
2x100 array in a way similar to that described in the 'Dimensional
Juggling Tutorial' (http://www.idlcoyote.com/tips/rebin_magic.html)?

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]

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 17:33:44 PDT 2025

Total time taken to generate the page: 0.00548 seconds