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

Home » Public Forums » archive » 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 #51924 is a reply to message #51799] Sat, 09 December 2006 16:08 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Braedley wrote:
> And after some optimizations of your code, Mike, it's on par with mine,
> so I offer up the choice to you, Steven.

OK, I took out all the repetitive calls to N_ELEMENTS and fixed the bugs
on array2, array3, array4 which were all identical to array1.

I think the only real difference is stride notation versus creating an
index array.

array = findgen(21446656)
nlen = 1792

n = n_elements(array)
r = reform(array, nlen, n / nlen)
array1 = reform(r[*, 0:*:4], n / 4)
array2 = reform(r[*, 1:*:4], n / 4)
array3 = reform(r[*, 2:*:4], n / 4)
array4 = reform(r[*, 3:*:4], n / 4)

Mike
--
www.michaelgalloy.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to get a very large 2D projected surface image
Next Topic: IDL with command line like input, (in EFTS -EUMETSAT)

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

Current Time: Sun Oct 12 08:49:22 PDT 2025

Total time taken to generate the page: 0.08112 seconds