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

Home » Public Forums » archive » where on indices based on a variable condition without many loops
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: where on indices based on a variable condition without many loops [message #88289 is a reply to message #88288] Mon, 07 April 2014 20:50 Go to previous message
havok2063 is currently offline  havok2063
Messages: 24
Registered: December 2012
Junior Member
Excellent. That did the trick and was exactly what I was looking for. Thanks a bunch.

Thanks, Brian


On Monday, April 7, 2014 10:28:04 PM UTC-4, Heinz Stege wrote:
> Hi Brian,
>
>
>
> if I got it right, you don't need any loop. You can work with an
>
> 4000x700 array for radius and use exactly the good=... line as in the
>
> original code:
>
>
>
> etc=[0,32,61,100,400]
>
> ii=value_locate(etc,indgen(700))
>
> radius_vs_row=([2.0,2.0,3.0,2.0,4.0])[ii]
>
> radius=rebin(transpose(radius_vs_row),4000,700,/sample)
>
> good = where(error NE 999 AND abs(diff) LT radius, ngood)
>
>
>
> Cheers, Heinz
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL 8.3 crash on workspace switch
Next Topic: ENVI/IDL vegetation identification

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

Current Time: Wed Oct 08 14:08:25 PDT 2025

Total time taken to generate the page: 0.00165 seconds