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 #88288 is a reply to message #88287] Mon, 07 April 2014 19:28 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
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 16:06:42 PDT 2025

Total time taken to generate the page: 0.00408 seconds