-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpolation difference between float and da with dims #287
Comments
This seems to be an issue with scipy introduced in 1.10.0 (pydata/xarray#7701 (comment)). Temporarily set Testcase in: dfm_tools/tests/test_external_packages.py Lines 50 to 87 in 32833bf
|
Also reproduced with scipy only, but there the scipy version does not matter: scipy/scipy#19318 |
Can be solved by combining linear and nearest interpolation like this, this will result in an array with as much valid data as possible, but nans where there were only nans:
This was implemented in dfm_tools in #561 |
method='nearest'
, but that is not a desireable method.Example code,
interp_with_da
has one extra nan compared tointerp_with_floats
:The text was updated successfully, but these errors were encountered: