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

Home » Public Forums » archive » bug in VELOVECT.PRO
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
bug in VELOVECT.PRO [message #7039] Wed, 11 September 1996 00:00
Joop Schaye is currently offline  Joop Schaye
Messages: 1
Registered: September 1996
Junior Member
Hi,

There is a bug in the IDL procedure VELOVECT.PRO (IDL version 4.0.1).
LENGTH=1.0 (the default) does not make the longest (U,V) vector the
length of a cell, as it should.

The following lines contain an error:

x_step=float(x1-x0)/float(s(1)) ; Convert to float. Integer math
y_step=float(y1-y0)/float(s(2)) ; could result in divide by 0

They should be corrected to:

x_step=float(x1-x0)/float(s(1)-1) ; Convert to float. Integer math
y_step=float(y1-y0)/float(s(2)-1) ; could result in divide by 0

The error becomes increasingly important for smaller input vectors U and
V. I have reported the error to Research Systems, Inc.

Best regards,

Joop Schaye
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: colormap problams on my SGI
Next Topic: Re: Warping or image fitting

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

Current Time: Wed Oct 08 17:36:55 PDT 2025

Total time taken to generate the page: 0.00541 seconds