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 #60711 is a reply to message #60710] Mon, 09 June 2008 05:56 Go to previous messageGo to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Jun 7, 9:12 am, Jeremy Bailin <astroco...@gmail.com> wrote:
>> 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.

Interesting, thanks!
[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: Fri Oct 10 00:51:22 PDT 2025

Total time taken to generate the page: 1.03882 seconds