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

Home » Public Forums » archive » Re: drop array elements
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: drop array elements [message #21463 is a reply to message #21461] Fri, 25 August 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Liam E. Gumley (Liam.Gumley@ssec.wisc.edu) writes:

> I just *had* to understand this one. Here's another way of implementing
> this method:
>
> ;- Get number of rows in a
> dims = (size(a, /dimensions))[1]
>
> ;- Create index array for rows of a (1=keep the row, 0=discard the row)
> index = replicate(1L, nrows)
> index[b] = 0L
>
> ;- Locate the indices of rows we wish to keep
> keep = where(index eq 1)
>
> ;- Extract the rows we wish to keep
> a = (temporary(a))[*, keep]

I think JD *must* have thought about the program
like this first. (I mean, he is flesh and bones,
right!?) He then just jammed it all together like
he did to scare anyone else thinking about taking
the IDL EPA exam.

Cheers,

David

P.S. Let's just say I'm glad I'm not up for
re-certification for another two years. :-(

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: PV-WAVE Runtime Mode Balks
Next Topic: PV-WAVE Runtime Mode Balks

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

Current Time: Sat Oct 11 03:42:05 PDT 2025

Total time taken to generate the page: 1.51941 seconds