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

Home » Public Forums » archive » Re: Array indexing: what is IDL doing?
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: Array indexing: what is IDL doing? [message #60722 is a reply to message #60711] Sat, 07 June 2008 06:12 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
> So I want to pull out a small subsection from within a larger idl
> array. I want to do something like this:
>
> bigarr = findgen(500,100000)
> bigx = [indgen(50)+100,indgen(25)+200]
> bigy = indgen(10000)+50000
>
> res = bigarr[bigx,bigy]

In the particular case above, I would expect that this would be most
efficient:

res = [bigarr[100:149,50000:59999], bigarr[200:224,50000:59999]]

Of course, that's only going to work when you know a priori that
everything will be in a relatively small number of chunks.

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how get value from combobox
Next Topic: Workbench problem following update

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

Current Time: Thu Oct 09 23:55:16 PDT 2025

Total time taken to generate the page: 0.00271 seconds