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 
Switch to threaded view of this topic Create a new topic Submit Reply
Help me understand this interpol bug in GDL [message #88531] Thu, 08 May 2014 13:04 Go to next 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.
Re: Help me understand this interpol bug in GDL [message #88573 is a reply to message #88531] Tue, 13 May 2014 15:51 Go to previous message
munka is currently offline  munka
Messages: 36
Registered: December 2009
Member
On Thursday, May 8, 2014 1:04:04 PM UTC-7, rj...@le.ac.uk wrote:
> 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.

It works fine in IDL...

IDL> test=interpol([1,2], [2, 1], 2)
% Compiled module: INTERPOL.
IDL> print,test
1
  Switch to threaded view of this topic Create a new topic Submit Reply
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 09:12:04 PDT 2025

Total time taken to generate the page: 0.00414 seconds