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

Home » Public Forums » archive » operator fails?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
operator fails? [message #72616] Wed, 22 September 2010 13:34
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
Can anyone explain this?

IDL> nsrc = n_elements(srcy)
IDL> s = size(img,/dim)
IDL> bs = rebin([-10,10],2,nsrc,/sample)
IDL> yb = 0. > rebin(transpose(srcy),2,nsrc,/sample)+bs < s[1]-1
IDL> print, n_elements(where(yb lt 0))
5

How does yb ever become less than 0? Isn't the > operator in this
usage supposed to prevent this?? Thanks.

--Gray
[Message index]
 
Read Message
Previous Topic: Mapping in IDL 8 Challenge
Next Topic: Re: Image and Maps with IDL8

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

Current Time: Sat Oct 11 08:58:22 PDT 2025

Total time taken to generate the page: 0.88677 seconds