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

Home » Public Forums » archive » Re: Split an int array into different arrays
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: Split an int array into different arrays [message #83402 is a reply to message #83401] Mon, 04 March 2013 04:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Krishnakumar M.A writes:

> I am writing a simulation in which I have to deal with a large 1D integer array and want to split it into different arrays of same length and add them one over the other, like folding. Are there any function of idl which will do it? It will be very helpful to me, if anyone can solve this.

array = RandomU(seed, 100000)
foldedArray = Rebin(array, 100, 100)

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
Previous Topic: Split an int array into different arrays
Next Topic: bug? or how to distinguish between a Hash and an array of Hashes ?

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

Current Time: Fri Oct 10 06:19:27 PDT 2025

Total time taken to generate the page: 0.97163 seconds