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

Home » Public Forums » archive » Help me understand this interpol bug in GDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Help me understand this interpol bug in GDL [message #88531] Thu, 08 May 2014 13:04 Go to previous message
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
I realise this is a GDL specific problem but also that there are quite a few experts on here.

GDL> test=interpol([96395,96406], [74.25, 73.50], 74.25)
1 2 0
% FINDEX: binary search failed
% Error occurred at: FINDEX 89 /cm/shared/apps/gdl/0.9.4/share/gnudatalanguage/lib/findex.p ro
% INTERPOL 102 /cm/shared/apps/gdl/0.9.4/share/gnudatalanguage/lib/interpol .pro
% BI_INTERPOL 33 bi_interpol.pro
% $MAIN$
% Execution halted at: BI_INTERPOL 33 bi_interpol.pro

If I reverse the order it doesn't give the error:

GDL> test=interpol([96406, 96395], [73.50, 74.25], 74.25)


I've tried to simplify it to this and can still reproduce it:

GDL> test=interpol([1,2], [2, 1], 2)
1 2 0
% FINDEX: binary search failed
% Error occurred at: FINDEX 89 /cm/shared/apps/gdl/0.9.4/share/gnudatalanguage/lib/findex.p ro
% INTERPOL 102 /cm/shared/apps/gdl/0.9.4/share/gnudatalanguage/lib/interpol .pro
% BI_INTERPOL 33 bi_interpol.pro


It seems if my x is decreasing and xout is the higher x value then it gives this error.

Any ideas if I'm doing something wrong or if this is a bug?

IDL seems to handle either way fine.
[Message index]
 
Read Message
Read Message
Previous Topic: Using VERT_COLORS=RGBA in PLOT()?
Next Topic: Install IDL 7.0 on Mac 10.8 Error

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

Current Time: Wed Oct 08 13:39:43 PDT 2025

Total time taken to generate the page: 0.00450 seconds