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

Home » Public Forums » archive » Re: arrays as subscripts
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: arrays as subscripts [message #30797 is a reply to message #30792] Fri, 17 May 2002 00:54 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Marshall Perrin (mperrin+news@arkham.berkeley.edu) writes:

> He said a new array, though, for the last one, so something like
>
> newarr = fltarr(n_elements(B)) ; or whatever type of arr it is
> I = Where(A GT 0, count)
> IF count GT 0 THEN BEGIN
> newarr[i] = c[b[i]]
> ENDIF
>
> I think that's what he was getting at...

Uh, right. I went a beer too far. :-(

Cheshers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@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: Digital maintenance handbook
Next Topic: Re: Digital maintenance handbook

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

Current Time: Sat Oct 11 08:02:44 PDT 2025

Total time taken to generate the page: 1.43913 seconds