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

Home » Public Forums » archive » Re: IDL Way to Remove Rows of an 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: IDL Way to Remove Rows of an Array [message #75985 is a reply to message #75984] Tue, 10 May 2011 06:01 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Tue, 10 May 2011, David Fanning wrote:

> Folks,
>
> I have other things demanding my attention this morning,
> so I thought I would offer an IDL challenge. What is
> the IDL Way to remove arbitrary rows of an array?
>
> For example, suppose I have this array:
>
> array = Indgen(3,6)
> print, array
>
> 0 1 2
> 3 4 5
> 6 7 8
> 9 10 11
> 12 13 14
> 15 16 17
>
> What is the IDL Way to remove rows 2 and 5?
>
> subarray = ???
> print, subarray
>
> 0 1 2
> 6 7 8
> 9 10 11
> 15 16 17

subarray=array[*,[0,2,3,5]]

regards,
Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: about jessica biel
Next Topic: IDL Way to Remove Rows of an Array

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

Current Time: Wed Oct 08 19:28:14 PDT 2025

Total time taken to generate the page: 0.00405 seconds