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

Home » Public Forums » archive » Re: problems with VELOVECT
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: problems with VELOVECT [message #26358] Tue, 21 August 2001 09:34 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Lasse Clausen wrote:
...
> if n_elements(missing) le 0 then missing = 1.0e30
>
> isn't IDL type-sensitive?

No.


> if n_elements(missing) gt 0 then begin
> good = where(mag lt missing)
> if keyword_set(dots) then bad = where(mag ge missing, nbad)
> endif else begin
> good = lindgen(n_elements(mag))
> endelse
>
> Strange! this if-block is totally unessesary, i believe how can
> 'missing' not be greater than 0? if it's not set (or set to a negative

It is 'n_elements(missing)' that is being compared with 0, not 'missing'
itself.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: STRMID question
Next Topic: Local max filter

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

Current Time: Wed Oct 08 15:53:08 PDT 2025

Total time taken to generate the page: 0.00410 seconds