You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing issues when using Cubic interpoaltion of data that contains NaN values. Here's what I see:
using Interpolations
A =rand(100,100);
x =1:100;
y =1:100;
interp =Cubic();
itp = Interpolations.extrapolate(Interpolations.scale(Interpolations.interpolate(A, BSpline(interp)), x, y), NaN);
itp has no NaN values
julia>sum(isnan.(itp.itp))
0
add a NaN value
A[1,1] = NaN
itp = Interpolations.extrapolate(Interpolations.scale(Interpolations.interpolate(A, BSpline(interp)), x, y), NaN);
I would expect something similar to the behavior of when using Linear()... , if any point included within the footprint of the interpolation kernel (5x5 for Cubic) is a NaN then I would expect interpolations to return a NaN. I did not expect the existence of a single NaN in a 100x100 matrix to create NaNs everywhere
I'm seeing issues when using Cubic interpoaltion of data that contains NaN values. Here's what I see:
itp has no NaN values
add a NaN value
now all itp values are NaNs
change interp to Linear
now itp contains only a single NaN
The text was updated successfully, but these errors were encountered: