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

Home » Public Forums » archive » 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
IDL Way to Remove Rows of an Array [message #75986] Tue, 10 May 2011 05:27 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDL Way to Remove Rows of an Array
Next Topic: IDL fitting of piecewise continuous function

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

Current Time: Fri Oct 10 02:26:44 PDT 2025

Total time taken to generate the page: 1.68069 seconds