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

Home » Public Forums » archive » Re: Data elimination from 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: Data elimination from array [message #51798 is a reply to message #51797] Fri, 08 December 2006 10:04 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
StevenM wrote:
> Firstly, thanks to those of you who have replied to my posts, the
> replies have been very helpful and I really appreciate the time that
> has been taken on them.
>
> I am trying to re-organise an array of numbers into 4 new arrays. The
> array has 21446656 data points, and I would like to split it up into
> four arrays of 5361664 data points. I would like the first 1792 data
> points in the first new array, the second 1792 data points in the
> second new array and so on. I would then like for the 5th set of 1792
> data points (ie starting at data point 8959) to be put in the first new
> array and so on.
>
> To make this a bit clearer here is an example
> array{0,12,14,16,22,43,12,35,67,88,12,11}
>
> would become
>
> array1{0,22,67}
> array2{12,43,88}
> array3{14,12,12}
> array4{16,35,11}
>

How about this?

array = randomu(seed, 64)
array1 = array[0:*:4]
array2 = array[1:*:4]
array3 = array[2:*:4]
array4 = array[3:*:4]

Mike
--
www.michaelgalloy.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Average over odd/even lines
Next Topic: IDLWAVE (Mac) launching IDL as PPC rather than Intel

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

Current Time: Sun Oct 12 04:46:29 PDT 2025

Total time taken to generate the page: 1.19877 seconds