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 #26363 is a reply to message #26362] Tue, 21 August 2001 08:26 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Hi,

Did you try pulling out the NANs? Maybe something like the following.

Index1 = Where( Finite(float(vv_plot)) EQ 1)
Index2 = Where( Finite(float(vw_plot[Index1])) EQ 1)

VELOVECT, VV_PLOT[Index1[Index2]], VW_PLOT[Index1[Index2]], length = 2

Ben


Lasse Clausen wrote:
>
> Greetings.
>
> I get the following error message
>
> % Compiled module: VELOVECT.
> % Attempt to subscript U with GOOD is out of range.
> % Error occurred at: VELOVECT 123
> /opt/rsi/idl_5/lib/velovect.pro
> % VVF 68 vvf.pro
> % AUSLESEN 121 auslesen.pro
> % $MAIN$ 37 soudan.pro
> % Execution halted at: VVF 68 vvf.pro
>
> when using this call
>
> WINDOW,/FREE,XSIZE=1100,YSIZE=900
> !MTITLE = 'velocity vector field - vel'
> !XTITLE = 'time / UTC'
> !YTITLE = 'height (km)'
> VELOVECT,VV_PLOT,VW_PLOT,LENGTH=2
>
> Can it be that this problem has to do with the fact that I'm having
> !VALUES.F_NAN values in the arrays VV_PLOT and VW_PLOT?
>
> Thanks
> Lasse Clausen

--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
[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 19:57:17 PDT 2025

Total time taken to generate the page: 0.00441 seconds