#512 INTERPOL fails with NAN values

closed-fixed
nobody
None
5
2013-02-18
2013-01-31
Kalith
No

> print, interpol([0,1, 2], [4, 6, 7], alog10(-99.0))

Fails :
% FINDEX: binary search failed
% Error occurred at: FINDEX 89 /usr/local/share/gnudatalanguage/lib/findex.pro
% INTERPOL 78 /usr/local/share/gnudatalanguage/lib/interpol.pro

The function simply returns NAN in IDL.

Discussion

  • Alain C.

    Alain C. - 2013-02-18
    • status: open --> closed-fixed
     
  • Alain C.

    Alain C. - 2013-02-18

    Sorry for the delay. A revised version of "interpol.pro" is in the CVS, under src/pro
    (you can just copy it in the right place without compiling GDL)

    Unfortunately I am not sure to cover all the cases, then please submit a new bug report if other troubles,
    with examples ! (I will also checked what happen when V input vector ot X absices contains NaN/Inf)

    Alain

     

Log in to post a comment.