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

Home » Public Forums » archive » Re: simple question (I hope)
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: simple question (I hope) [message #53269 is a reply to message #53268] Fri, 30 March 2007 12:56 Go to previous messageGo to previous message
Ryan. is currently offline  Ryan.
Messages: 77
Registered: March 2006
Member
Thanks everyone for responding.

It seems it turned out to be not as simple as I thought but I have
settled on a method. Without testing it yet, I have settled on the
following code:

values_2_remove = (huge_array[groupidx])
[indices_2_remove_in_group_array]
nvalues = N_ELEMENTS(values_2_remove)
full_idx = INTARR(nvalues)

FOR k=0, nvalues-1 DO full_idx[k] = WHERE(huge_array EQ
values_2_remove[k])

REMOVE, full_idx, huge_array

In general, the items to remove is quite small (~30) so I am content
with using the for-loop for cleanliness. And for my purposes the
WHERE function will always return only 1 value. If anyone has any
further suggestions on how to do this better, feel free to post, I'd
love to know =)

I didn't know that through all of this I would be able to learn so
much about the magic of IDL =)

Thanks Again,
Ryan.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Multiplication turning array into scalar -- who wants to try?
Next Topic: Computer Job Available!

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

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

Total time taken to generate the page: 0.00272 seconds